info.plist

Alternate Icon in iOS 10.3

谁说胖子不能爱 提交于 2019-11-26 18:14:27
问题 I have the info on how to set up alternate icons in iOS 10.3 adding the key in the Info.plist. However, what I am not sure of is which sizes are needed for each alternate. I use assets folders right now, and have to put in about 12 different sized icons for spotlight, different iphone and ipad sizes, etc. What's the rule on the alternate ones? 回答1: Since the biggest problem is how to configure the icon image source and info.plist, here is a sample to tell you how to set alternate icons in iOS

Fixing file 'project.pch' has been modified since the precompiled header was built error in Xcode

怎甘沉沦 提交于 2019-11-26 11:59:19
问题 I was recently working on my application messing around in the info.plist section, and since that my application will not run on my test device: file \'project.pch\' has been modified since the precompiled header was built Something to note is that the app runs fine in the simulator. Edit: Now I am getting this error instead of the other one: No such file or directory (/Users/Me/Library/Developer/Xcode/DerivedData/MyProject-abcdefghijklmnopqrstuvwxyz/Build/Products/Debug-iphoneos/MyApp./MyApp

Xcode 10 Error: Multiple commands produce

限于喜欢 提交于 2019-11-26 11:28:39
error: Multiple commands produce '/Users/uesr/Library/Developer/Xcode/DerivedData/OptimalLive-fxatvygbofczeyhjsawtebkimvwx/Build/Products/Debug-iphoneos/OptimalLive.app/Info.plist': 1) Target 'OptimalLive' has copy command from '/Users/uesr/Desktop/workSpace/SEALIVE/SeaLive1.1/OptimalLive/Info.plist' to '/Users/uesr/Library/Developer/Xcode/DerivedData/OptimalLive-fxatvygbofczeyhjsawtebkimvwx/Build/Products/Debug-iphoneos/OptimalLive.app/Info.plist' 2) Target 'OptimalLive' has copy command from '/Users/uesr/Desktop/workSpace/SEALIVE/SeaLive1.1/OptimalLive/Server/Masonry/Info.plist' to '/Users

iOS: Access app-info.plist variables in code

不问归期 提交于 2019-11-26 09:19:55
问题 I am working on a Universal app & would like to access the values stored in app-info.plist file in my code. Reason: I instantiate a UIViewController dynamically from a storyboard using: UIStoryboard* storyboard = [UIStoryboard storyboardWithName:@\"MainStoryboard_iPhone\" bundle:nil]; self = [storyboard instantiateViewControllerWithIdentifier:@\"ExampleViewController\"]; Now, having the storyboard name @\"MainStoryboard_iPhone\" above is ugly. I want to do something like: UIStoryboard*

Changing the development language in Xcode

烂漫一生 提交于 2019-11-26 08:05:48
问题 I need to set Spanish as development language for an iOS app. I\'m already using Xcode 6, and I changed the Localization native development region entry in app\'s Info.plist ( CFBundleDevelopmentRegion ) from \"en\" to \"es\". However, in Project > Info > Localizations, English remains set as Development Language. As said in Information Property List Key Reference, CFBundleDevelopmentRegion specifies the default language. I need to set Spanish to the default language, what am I missing?

NSPhotoLibraryUsageDescription key must be present in Info.plist to use camera roll

寵の児 提交于 2019-11-26 06:53:56
问题 Recently I started to get this error: NSPhotoLibraryUsageDescription key must be present in Info.plist to use camera roll. I am using React Native to build my app (I am not familiar with ios native development) and I don\'t know how to add this key to Info.plist Can you post an example? Thanks I am using npm package \"react-native-camera-roll-picker\": \"^1.1.7\" 回答1: Thanks @rmaddy, I added this just after other key-string pairs in Info.plist and fixed the problem: <key

Xcode 10 Error: Multiple commands produce

浪子不回头ぞ 提交于 2019-11-26 01:43:51
问题 error: Multiple commands produce \'/Users/uesr/Library/Developer/Xcode/DerivedData/OptimalLive-fxatvygbofczeyhjsawtebkimvwx/Build/Products/Debug-iphoneos/OptimalLive.app/Info.plist\': 1) Target \'OptimalLive\' has copy command from \'/Users/uesr/Desktop/workSpace/SEALIVE/SeaLive1.1/OptimalLive/Info.plist\' to \'/Users/uesr/Library/Developer/Xcode/DerivedData/OptimalLive-fxatvygbofczeyhjsawtebkimvwx/Build/Products/Debug-iphoneos/OptimalLive.app/Info.plist\' 2) Target \'OptimalLive\' has copy