info.plist

How to programmatically register a custom URL scheme?

﹥>﹥吖頭↗ 提交于 2019-11-29 06:44:45
Is it possible to add/remove custom URL schemes for my application while it's running? Right now the CFBundleURLSchemes property is set in Info.plist. smokris According to this discussion on Cocoa Dev the answer is no, custom URL schemes can't be registered programmatically. You must specify them in Info.plist . (but using LSRegisterURL , you can ask Launch Services to reload your application's Info.plist if you programmatically change it. But that's ugly.). Launch Services will do that. Have a look at the Launch Services Programming Guide and the Launch Services Reference for details. (Edit:

CFBundleDocumentTypes & UIFileSharingEnabled issues

≡放荡痞女 提交于 2019-11-29 03:54:45
问题 Has anyone gotten UIFileSharingEnabled or CFBundleDocumentTypes to work? I added UIFileSharingEnabled as true to my plist and used Apple's example from the link below for CFBundleDocumentTypes, but can't seem to get it to work. I don't see my app under file sharing in iTunes, and I do not get the option to open documents I registered in my app when I click on them in the mail.app http://developer.apple.com/iphone/library/documentation/General/Conceptual/iPadProgrammingGuide/CoreApplication

iPhone application name on iTunes

旧时模样 提交于 2019-11-29 02:49:56
问题 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 iPhone, is there any way to separate them? My second question is: how can I change the genre of my application? Now it's "Unknown Genre". 回答1: The name that is displayed on the iPhone beneath the icon is set in the "Product Name" build setting for your apps target. You can set this to whatever you

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

感情迁移 提交于 2019-11-28 20:45:36
问题 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” couldn’t be opened because there is no such file)...I am using a relative path, and the plist file is in the correct absolute location. The type and location are correct as shown in the image below: My biggest concern is that this is now happening

Xcode can't open Info.plist — error says “there is no such file”

二次信任 提交于 2019-11-28 18:06:30
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 why can't it be opened? That the file exists in your Xcode project folder isn't enough. Have you verified the file is properly referenced in your application target's build settings so it's properly copied into the app bundle? It's not quite the same as a standard resource (ie, it's not made a member of the target in the set of target membership

HTTP load failed (kCFStreamErrorDomainSSL, -9806 ( IOS9)

核能气质少年 提交于 2019-11-28 11:34:35
问题 I am getting the NSURLSession/NSURLConnection HTTP load failed on iOS 9 while running app on Simulator. Here is how my info.plist file looks like <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> <key>NSIncludesSubdomains</key> <true/> <!--Include to allow insecure HTTP requests--> <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key> <true/> <!--Include to specify minimum TLS version--> <key>NSTemporaryExceptionMinimumTLSVersion</key> <string>TLSv1.1</string

LSUIElement not working

筅森魡賤 提交于 2019-11-28 09:23:47
I have an application that has LSUIElement = 1 in the Info.plist. When I run the application, a dock item and toplevel menu bar is created for it. Why? EDIT: I was using a library that was calling TransformProcessType(), clobbering my Info.plist configuration. Go to your Info.plist file, and add a new key-value pair, or type Boolean. Start typing in the key the phrase "Application is agent". It should auto-complete for you. Then check the checkbox. This is how I create my agent applications, and it works every time! drawnonward The 1 must be a string, not a number (according to the

My iPhone app needs a persistent network connection…how to specify UIRequiredDeviceCapabilities?

吃可爱长大的小学妹 提交于 2019-11-28 09:00:26
问题 I'm trying to set the UIRequiredDeviceCapabilities properties in my Info.plist file. My app requires a persistent network connection. If I look at the definition for the "wifi" key, it says: Include this key if your application requires access to the networking features of the device. So: does the "wifi" key indicate that I need WiFi, as the key name would suggest? Or does it mean that I simply need network access, as the key definition would suggest? 回答1: Without this key, the iPhone will

Unable to create UIBackgroundModes key in Info.plist for iOS4

强颜欢笑 提交于 2019-11-27 19:56:06
I have an audio application which works great for iPhone 3.1.x versions. I am trying to upgrade it to iOS4.0 to work in multitasking environment. When I try to create a new UIBackgroundModes key in info.plist , it ("Required Background Modes") doesn't show up in drop down list? I also upgraded the Xcode SDK to 3.2.3, Base SDK to 4.0, deployment target to 4.0 but still UIBackgroundModes ("Required Background Modes") won't show up in info.plist drop down list. I also created test project for 4.0, and its info.list drop down list has "Required Background Modes". Did I miss something? You can add

How to associate file type with MacOS X App without launching it first?

十年热恋 提交于 2019-11-27 15:38:46
I would like to associate the last installed version of my Mac OS X application with a certain type of file. A little experimentation shows that the info.plist file seems to be read and interpreted by the operating system when launching the application, not when dragging the application bundle to the disk. Apple's documentation on run-time configuration does not say much on that topic. Is there any way, using a simple .dmg image as installation medium, to make sure the system associates that particular file type with my newly installed app without having to launch it first? I should clarify