info-plist

Info.plist not in correct format

你说的曾经没有我的故事 提交于 2019-12-05 19:35:19
问题 I was working through my iOS Xcode project just fine, and then all of a sudden when I tried to run it, I started getting the error below: error: couldn't parse contents of '/Users/pavitarsidhu/Desktop/AmigoDash/SidebarDemo/AmigoDash-Info.plist': The data couldn’t be read because it isn’t in the correct format. I'm really confused. I've looked at the past StackOverflow questions and still have not been able to fix this. Is there anyway to just generate a new infoplist? What do you guys think?

Opt into app thinning for icons in asset catalog in existing project

久未见 提交于 2019-12-04 05:15:46
At WWDC 2017 Session 201 What's New in Cocoa Touch , around the 33:50 mark, it is stated that "By incorporating [icons] in Asset Catalogs, we're now able to have them participate in the app thinning, which will significantly lower your app's footprint. So, this is a really exciting thing to adopt, and it will be adopted by default in new projects in iOS 11. You can opt into it in existing projects by adding a key to your Info.plist." What is the key you need to add in your Info.plist to enable app thinning for icons in Assets Catalogs in your existing projects? I'm not seeing it defined in the

Info.plist not in correct format

老子叫甜甜 提交于 2019-12-04 02:39:00
I was working through my iOS Xcode project just fine, and then all of a sudden when I tried to run it, I started getting the error below: error: couldn't parse contents of '/Users/pavitarsidhu/Desktop/AmigoDash/SidebarDemo/AmigoDash-Info.plist': The data couldn’t be read because it isn’t in the correct format. I'm really confused. I've looked at the past StackOverflow questions and still have not been able to fix this. Is there anyway to just generate a new infoplist? What do you guys think? A plist file is an XML document in a tightly specified format; both XML and the Property List structure

Don't automatically switch to the higher-end discrete GPU

江枫思渺然 提交于 2019-12-03 08:51:18
问题 As written in this Technical Q&A: By default, once your application creates an OpenGL context (by either calling OpenGL directly or an API that relies on OpenGL such as Core Animation, Core Image, etc), the MacBook Pro automatically switches to the higher-end discrete GPU for performance concerns and won't switch back until the application quits. There is a way to prevent this? The discrete GPU, on newer MacBook Pros, wastes power and shortens battery life. The simple insertion of the

Configuration dependent value in Info.plist file

夙愿已清 提交于 2019-12-03 04:55:37
I have three configurations in my iOS project: Debug Adhoc Release Now I want to change the name of the App as follows: MyAppDebug MyAppAdhoc MyApp (Note that this one does not have a suffix) Is there a way I can easily achieve this in Xcode with some type of "compiler-if-else-macro-thing" ? Youraj Changing display name of app for respective configurations: one way to achieve this is by using the same info plist file that you have. Part 1: create an user defined variable Click on target project file. Then at bottom right corner locate button "+" Add Build Setting. Click that button "Add Build

Don't automatically switch to the higher-end discrete GPU

半世苍凉 提交于 2019-12-02 21:26:15
As written in this Technical Q&A : By default, once your application creates an OpenGL context (by either calling OpenGL directly or an API that relies on OpenGL such as Core Animation, Core Image, etc), the MacBook Pro automatically switches to the higher-end discrete GPU for performance concerns and won't switch back until the application quits. There is a way to prevent this? The discrete GPU, on newer MacBook Pros, wastes power and shortens battery life. The simple insertion of the NSSupportsAutomaticGraphicsSwitching key in Info.plist (suggested in the Technical Q&A), apparently, is not

Localized project with several targets with localized app names

余生长醉 提交于 2019-11-30 14:31:10
问题 I have recently merged together 5 of my stand-alone projects into one project to have a common code base. So now I have one project with 5 targets instead. Each target has the same fileset, except for some files which differ for each target (such as Default.png, and icons files amongst others). My application is translated to 7 languages with English as default. The other languages are: Swedish, Dutch, German, French, Polish and Spanish. Now I would also like to translate the name of the

Localized project with several targets with localized app names

馋奶兔 提交于 2019-11-30 11:09:00
I have recently merged together 5 of my stand-alone projects into one project to have a common code base. So now I have one project with 5 targets instead. Each target has the same fileset, except for some files which differ for each target (such as Default.png, and icons files amongst others). My application is translated to 7 languages with English as default. The other languages are: Swedish, Dutch, German, French, Polish and Spanish. Now I would also like to translate the name of the application depending the language used. For instance, for my Swedish aviation app, the app should be

how to get XCode to add build date & time to Info.plist file

本小妞迷上赌 提交于 2019-11-30 00:27:29
Finally... after a couple years of watching and a month of participating, I have a chance to ask you guys a question of my own. My boss doesn't trust me (or any process) to increment a build number, he also wants to have a build date & time baked into the app. I'd like to put this into the usual Info.plist file. I found this related question: Build information in iOS Application (date/time app was built) and based on the answers there, I went into the Scheme Editor and added the script below to the "Post-Action" section of the Build phase: infoplist="$BUILT_PRODUCTS_DIR/$INFOPLIST_PATH"

Could not localize iOS app bundle display name

回眸只為那壹抹淺笑 提交于 2019-11-29 16:23:44
I have followed the answers to some SO question to localize my app's name. InfoPlist.strings (Base): CFBundleDisplayName = "Name In English"; CFBundleName = "Name In English"; InfoPlist.strings (Arabic (Saudi Arabia)): CFBundleDisplayName = "Name In Arabic"; CFBundleName = "Name In Arabic"; I have also tried adding quotation marks around CFBundleDisplayName and CFBundleName InfoPlist.strings file is located at the root directory of my app.next to Info.plist file, but after localized, it was moved to Base.lproj dir and ar-SA.lproj dir. However, my app is not using the localized name under its