Questions tagged [info.plist]

Info.plist (information property list) is a structured text file (XML) used in Apple's developer environment and operating systems that contains essential configuration information for a bundled executable.

670 questions
774
votes
78 answers

Xcode 10 Error: Multiple commands produce

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…
make
  • 7,185
  • 3
  • 6
  • 13
170
votes
10 answers

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

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…
Murat Ozgul
  • 9,397
  • 6
  • 24
  • 29
169
votes
19 answers

Error Appstore connect : Missing Purpose String in Info.plist File

I've submitted my app for review to the App Store Connect. Although the app is still under review, I've received an email to inform me that I have to fix an error. Here is the content of the message: Dear Developer, We identified one or more…
John doe
  • 3,025
  • 4
  • 20
  • 44
108
votes
5 answers

iOS: Access app-info.plist variables in code

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…
sherlock
  • 1,441
  • 2
  • 11
  • 17
93
votes
5 answers

Read version from Info.plist

I want to read the bundle version info from Info.plist into my code, preferably as a string. How can I do this?
John Smith
  • 11,467
  • 16
  • 59
  • 105
84
votes
5 answers

Changing the development language in Xcode

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 >…
AppsDev
  • 11,441
  • 20
  • 81
  • 163
77
votes
25 answers

Info.plist Utility Error: "Info.plist couldn't be opened because there is no such file"

I'm running into what seems to be common error, in that Xcode can't seem to find my 'Info.plist' file. I've checked the answers to these two StackOverflow questions (Could not read from Info.plist and Objective C/Xcode error: The file “Info.plist”…
narner
  • 2,729
  • 3
  • 22
  • 54
67
votes
2 answers

How do I comment lines in .plist file?

How do I comment out lines in my .plist file in my iOS/Mac projects? I want to comment out the settings that I don't want to expose for this version of the project, but I may want to expose it later.
Enrico Susatyo
  • 18,061
  • 17
  • 89
  • 153
66
votes
13 answers

Xcode can't open Info.plist -- error says "there is no such file"

I switched to Xcode 4 and loaded my project, which worked perfectly in Xcode 3. When I run it, I get an error that says: The file “Info.plist” couldn’t be opened because there is no such file. I have looked at the file in Xcode and it is there. So…
Octavia Togami
  • 3,638
  • 4
  • 29
  • 42
63
votes
1 answer

What is the meaning of the "Application Requires iPhone Environment" key in info.plist?

I'm having trouble understanding the specific requirements in the info.plist file in my app. Should I change it at all, or are the default settings typically the "correct" options? Specifically, the entry: APPLICATION REQUIRES IPHONE ENVIRONMENT If…
wayway
  • 6,439
  • 5
  • 44
  • 84
54
votes
21 answers

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

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…
user1542348
  • 583
  • 1
  • 4
  • 6
44
votes
8 answers

Xcode Buildtime Error: 'Unable to load contents of file list: '.../Info.plist' (in target 'xxxx')

Xcode started throwing this error in a project today, and I'm having trouble figuring out what it means and how to troubleshoot it, and it's not coming up in any searches. It happens immediately after trying to build to a device (no scripts compile,…
stephenspann
  • 1,593
  • 1
  • 12
  • 30
37
votes
3 answers

What is the meaning of "Localization native development region" entry in info.plist?

I don't know if I really understood the function of the "Localization native development region" entry in info.plist file. Somewhere I read that this entry allows to specify the app language when there is no matching with a language resource dir. I…
Sefran2
  • 3,410
  • 12
  • 69
  • 102
36
votes
5 answers

NSLocationWhenInUseUsageDescription warning, but I have already added it

While I have already added: NSLocationWhenInUseUsageDescription I keep receiving this warning: This app has attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an…
Mohamed
  • 437
  • 1
  • 4
  • 9
33
votes
4 answers

Bundle creator OS Type code ??? in Xcode 4

I just realized that Bundle Creator OS Type code in my iOS app's Info.plist value is ????? in Xcode 4. What is the value supposed to be?
moon
  • 1,362
  • 3
  • 15
  • 29
1
2 3
44 45