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.
info.plist
760
questions
1040
votes
104
answers
821k
views
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 '...
215
votes
12
answers
249k
views
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 ...
204
votes
19
answers
152k
views
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:
...
115
votes
5
answers
81k
views
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:
...
101
votes
6
answers
102k
views
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) ...
94
votes
5
answers
45k
views
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?
87
votes
2
answers
28k
views
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.
81
votes
27
answers
103k
views
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 ...
69
votes
13
answers
95k
views
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 ...
68
votes
1
answer
26k
views
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 ...
66
votes
10
answers
47k
views
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 ...
58
votes
5
answers
93k
views
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....
54
votes
21
answers
41k
views
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 ...
43
votes
1
answer
11k
views
In Xcode, under Info tab, what's Role for in URL Types section?
In Xcode, under Info tab, what's Role dropdown in URL Types section for? The valid value for this is Editor, Viewer, None.
40
votes
3
answers
69k
views
ITMS-90683: Missing Purpose String in Info.plist NSCameraUsageDescription
I upload my app in app store successfully.
App store send me an email like this:
App Store Connect
Dear Developer,
We identified one or more issues with a recent delivery for your app, "...
38
votes
3
answers
31k
views
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 ...
36
votes
4
answers
36k
views
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?
35
votes
7
answers
63k
views
The app's Info.plist file should contain a NSBluetoothAlwaysUsageDescription key while the key is in the plist file
First of all, I would like to state that I already looked at Stack Overflow post here and adding either the one mentioned by either iCoder & Deepak didn't solve the problem for me.
I'm using ...
29
votes
2
answers
7k
views
Alternate Icon in iOS 10.3
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 ...
25
votes
1
answer
7k
views
How to stop Xcode 11 from changing CFBundleVersion and CFBundleShortVersionString to $(CURRENT_PROJECT_VERSION) and $(MARKETING_VERSION)?
Since version 11, Xcode sets my CFBundleVersion value to $(CURRENT_PROJECT_VERSION) and my CFBundleShortVersionString to value $(MARKETING_VERSION) whenever I enter Version or Build values in the ...
24
votes
1
answer
12k
views
What does "InfoDictionary version" signify in information property list (plist file)?
What does "InfoDictionary version" signify? It is definitely different from the bundle version, but what is the role of "InfoDictionary version"?
20
votes
4
answers
12k
views
The app's Info.plist can't contain values for the UIRequiredDeviceCapabilities key
"The app's Info.plist can't contain values for the UIRequiredDeviceCapabilities key that would prevent this app from opening on any iOS device. For more information, see Understanding the ...
19
votes
3
answers
31k
views
Where is info.plist for React Native projects run in Expo for the purpose of callback URLs?
I am handling OAuth requests in my iOS React Native application. This application is contained and launched through Expo. I want to add in a custom callback url, so that I can return back to the ...
19
votes
3
answers
5k
views
Is there an info.plist key for advertising identifier use
There is an entry for itsappusesnonexemptencryption (ITSAppUsesNonExemptEncryption export compliance while internal testing?), but is there one for the Advertising identifier, and if so, what is it?
18
votes
5
answers
10k
views
Flutter: Runner.app/Info.plist does not exist. The Flutter "Thin Binary" build phase must run after "Copy Bundle Resources"
After upgrading flutter to flutter 1.22.4. I am getting the below error while building the Xcode Project.
Runner.app/Info.plist does not exist. The
Flutter "Thin Binary" build phase must ...
18
votes
7
answers
56k
views
How to add properties in info.plist in iOS
I want to open PDF attachment via email in my own application: I refer two link here:
How do I associate file types with an iPhone application?
and here on Raywenderlich
where it shows some XML ...
18
votes
1
answer
22k
views
How to change/add/edit Info.plist in Flutter
I have a serious question that I didn't find the answer to.
I have a Flutter app and needed to use a dependency and in its docs, it says this
Setup iOS Info.plist And the docs have this code:-
<...
18
votes
10
answers
21k
views
Can't localize info.plist strings
I need to localize two keys of info.plist: NSLocationUsageDescription and NSCameraUsageDescription. So I tried to create a new file called InfoPlist.strings and then I localized it, but app always ...
17
votes
5
answers
5k
views
Adding a custom font to macOS app using Swift
I followed a bunch of tutorials but it doesn’t work: I simply want to add a custom font to a macOS app.
What I tried essentially:
Added the .ttf font-files to my project: Target Membership is set ...
17
votes
5
answers
10k
views
Flutter not using build number from pubspec.yaml
When I run flutter build run I expect the version and build number to user my version in pubspec.yaml 1.1.5+10
However the 10 is always reverting to 1. This is set correctly in info.plist
<key&...
16
votes
3
answers
15k
views
UIImagePickerController not asking for permission
I have implemented the following code in an app to allow the user to add an image to the app. However the user is never asked for permission to access photo's. What am I missing here?
in my info....
16
votes
2
answers
12k
views
Xcode cannot locate localized info.plist
After adding a few Localizations:
and localized the (AppName)-info.plist file:
and checked Bundle Resources (also tried to remove Go-info.plist from the Copy Resources Bundle list:
and the file ...
16
votes
3
answers
17k
views
NSLocationWhenInUseUsageDescription localization using .strings file not working
I've completed translating my app to Turkish using Base Localization. However, I also need to translate NSLocationWhenInUseUsageDescription key in my Info.plist file. I did exactly what I did for ...
16
votes
2
answers
21k
views
Setting NSAllowsArbitraryLoads in iOS 9 - Will Apple reject the app? [duplicate]
I suddenly get a message on iOS 9 :
The resource could not be loaded because the App Transport Security
policy requires the use of a secure connection
Searched a bit and found that setting ...
14
votes
2
answers
6k
views
Add entries to Info.plist in Qt
In Qt, it is possible to specify an Info.plist file to use when building on Mac, as follows:
QMAKE_INFO_PLIST = MyInfo.plist
This replaces the Qt auto-generated Info.plist file with another one.
...
14
votes
2
answers
2k
views
Specifying app name for iCloud "Manage Storage" list
Where does iCloud source the app name that it displays in the iCloud preferences?
iOS: Settings.app > iCloud > Storage & Backup > Manage Store > Documents & Data
OSX: System ...
13
votes
2
answers
8k
views
Output current app's build version as a string - Xamarin.iOS
I want to output the app's current build version as a string onto my app's about view.
Is there a method of reading this dynamically from the info.plist file or elsewhere rather than hardcoding it in?...
13
votes
6
answers
8k
views
<Error>: FT_Open_Face failed: error 85
I am trying to install a custom font into my iPhone application. When I add the 'Fonts provided by application’ key into my info.plist file I get the following error ': FT_Open_Face failed: error 85.’
...
13
votes
5
answers
4k
views
The package is missing an Info.plist or the CFBundlePackageType is not ‘APPL’ or ‘FMWK’. Unable to validate your application. (-21017)
I'm trying to upload bundle to Appstore with Github Actions for an app with multiple targets (one per environment: internal, client and retail). I'm getting this error:
*** Error: Error uploading '...
13
votes
1
answer
1k
views
Can you dynamically assign CFBundleDocumentTypes to your Cocoa application?
Can you dynamically assign CFBundleDocumentTypes to your Cocoa application? Meaning during run time can I assign more extensions for my app to handle.
Currently I set some extensions for my app to ...
12
votes
4
answers
14k
views
iPhone application name on iTunes
Is there any way to set the display name of the application which is shown on iPhone and on iTunes different? The name that I wrote to "Display bundle name" in info.plist is shown both on iTunes and ...
12
votes
3
answers
3k
views
Is there an easy way to find packages that use permissions in flutter? Missing Purpose String in Info.plist submission problem
During the submission to Apple of the application I was notified of the following ITMS-90683: Missing Purpose String in Info.plist.
NSBluetoothPeripheralUsageDescription
...
11
votes
1
answer
5k
views
SceneDelegate function is never called
I have a SwiftUI/SpriteKit project. In an error-laden quest to change the bundle identifier, I decided to create a new project and copy my files over.
Now I've got this new project with all my old ...
11
votes
8
answers
29k
views
Ensure that the application's Info.plist contains a value for CFBundleIdentifier. Print: Entry, ":CFBundleIdentifier", Does Not Exist
I am attempting to build my first iOS app using this repo:
https://github.com/pmusaraj/discourse-mobile-single-site-app
When building, I receive an error and cannot move forward. I am an absolute ...
11
votes
1
answer
994
views
Visual Studio Cordova Missing Info.plist key
I´m using visual studio for developing cordova applications.
If I upload my App to the Store with Xcode8, I get the following error mail.
Missing Info.plist key - This app attempts to access privacy-...
11
votes
1
answer
9k
views
Xcode adding DTXcode key and others to Info.plist
Recently Xcode started adding keys to the Info.plist of my Cocoa app:
DTXcode
DTXcodeBuild
DTCompiler
DTPlatformBuild
DTPlatformName
DTPlatformVersion
DTSDKBuild
DTSDKName
What are those keys used ...
10
votes
2
answers
9k
views
canOpenURL not working in ios 10 [duplicate]
The above code is always returning false
if {(UIApplication.shared.canOpenURL(URL(string:"comgooglemaps://")!))}
I guess this a problem found in iOS10.
I am trying to open google maps app if there ...
10
votes
2
answers
27k
views
Creating and writing into .plist with Terminal or bash script
I need to create a .plist file during post install and the only option I can use is a bash script. I have to create a foo.plist into /Library/launchAgents with a bash script and I've used the ...
10
votes
4
answers
3k
views
.app does not have an executable path after installing over an old build
I have a TestFlight build that one user has downloaded, then we released a new version and they installed over that build. They got this error when trying to launch the app:
Wed Aug 31 20:13:28 ...
9
votes
3
answers
6k
views
Bash script to edit CFBundleVersion field of PROJECT-Info.plist file
In order to put in place a continuous integration system, Hudson, I wrote a bash script to build Xcode project automatically.
Moreover, in Debug configuration, It was asked to me, to insert the svn ...