info.plist

Mac OS X file association works, but file icon not changed

独自空忆成欢 提交于 2019-12-05 03:53:29
I have developed a Mac application using Qt 5.3.2. This application handles files with specific extension (lets say .xyz ). I have created an icon file named XYZ.icns and added it to my app bundle Resource folder ( MyApp.app/Contents/Resources/XYZ.icns ). I have also modified the bundle's Info.plist file in order to set the file association. I have added this entry: <key>CFBundleDocumentTypes</key> <array> <!-- Registered file accociation --> <dict> <key>CFBundleTypeRole</key> <string>Editor</string> <key>CFBundleTypeName</key> <string>XYZ</string> <key>CFBundleTypeExtensions</key> <array>

How to get listed in the iOS 8 system wide share menu?

三世轮回 提交于 2019-12-04 20:35:34
I'm trying to get my iOS 8 app listed in the iOS 8 system wide share menu for the image extensions .png, .jpg (.jpeg), .gif (static). What do I need to add to the info.plist file? I tried the code below from the iOS docs example but that didn't work, my app isn't showing up in the share list. <key>NSExtension</key> <dict> <key>NSExtensionAttributes</key> <dict> <key>NSExtensionServiceRoleType</key> <string>NSExtensionServiceRoleTypeEditor</string> </dict> <key>NSExtensionPointIdentifier</key> <string>com.apple.ui-services</string> <key>NSExtensionPrincipalClass</key> <string

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

不想你离开。 提交于 2019-12-04 14:55:28
问题 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 set to yes, does that imply only an iPhone is capable of running my app, meaning an iPod Touch or iPad won't be able to run the app? 回答1: Here's Apple's documentation on the "LSRequiresiPhoneOS" bits of an application's info.plist file. Basically

Unable to set custom font for the UILabel in XCode

匆匆过客 提交于 2019-12-04 12:27:54
问题 I am unable to set custom font for the UILabel in XCode. This is what I've tried: Download "JennaSue" font -- http://www.dafont.com/jenna-sue.font Open "app-info.plist" under "Supporting Files" folder Add new row in the list with key "Fonts provided by application" In this array add "JennaSue.ttf" Use it in the code like this: self.someLabel.font = [UIFont fontWithName:@"JennaSue" size:14]; And nothing happens -- the default font is visible. Why? What am I doing wrong? How can I fix it? 回答1:

info.plist adding a key

自作多情 提交于 2019-12-04 06:13:37
问题 Very simple question: How do I add this to info.plist? There's multiple info.plist files and all I can see is how to add a row. <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict> 回答1: If you have multiple targets, each target has a separate PList file with name [TARGET-NAME]-Info.plist . You can add this by clicking the plus icon, then write NSAppTransportSecurity under "key" and choose type to be a dictionary. Then open it (arrow on the left should be

Localizing Info.plist variable with appended string

淺唱寂寞╮ 提交于 2019-12-04 03:39:24
I'm trying to localize the name of an app while still being able to append a string depending on the build configuration. So currently it is set up as: <key>CFBundleDisplayName</key> <string>${PRODUCT_NAME}${BUNDLE_DISPLAY_NAME_SUFFIX}</string> That setting is defined as: This way we can add the suffix to the app for our different beta builds. The problem is that when we try to localize the app display name in the localized InfoPlist.strings like so CFBundleDisplayName = "Localized App Name"; We overwrite the value stored in the Info.plist , and lose the suffix character. Is there any good way

.app does not have an executable path after installing over an old build

邮差的信 提交于 2019-12-04 02:26:07
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 unknown SpringBoard[1176] : The 'X' bundle at /private/var/mobile/Applications/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/X.app does not have an executable path. Please check the bundle's Info.plist file. I checked the app's plist using PhoneDisk and the executable matched the app name. Any ideas? In my case, I wasn't updating the CFBundleShortVersionString between the versions I was trying to download. Once

NSLocationWhenInUseUsageDescription warning but i have already added it

喜夏-厌秋 提交于 2019-12-04 00:48:54
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 NSLocationWhenInUseUsageDescription key with a string value explaining to the user how the app uses this data FYI: I have multiple info.Plist in the app. Not sure what to do? Adding both NSLocationAlwaysAndWhenInUseUsageDescription and NSLocationWhenInUseUsageDescription keys in plist solved my problem. <key>NSLocationAlwaysUsageDescription</key> <string>Your location is required

Can you dynamically assign CFBundleDocumentTypes to your Cocoa application?

倾然丶 夕夏残阳落幕 提交于 2019-12-03 16:29:45
问题 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 handle using CFBundleDocumentTypes in the Info.plist, but I would like to do this through code while the application is executing (during run time). Basically can I make Launch Services aware of new extensions without modifying the Info.plist file. Thanks. 回答1: At the moment, there’s no public API 1

What does “InfoDictionary version” signify in information property list (plist file)?

て烟熏妆下的殇ゞ 提交于 2019-12-03 15:01:15
问题 What does "InfoDictionary version" signify? It is definitely different from the bundle version, but what is the role of "InfoDictionary version"? 回答1: "InfoDictionary version" signifies the version information for the Info.plist format. See Apple's doc for CFBundleInfoDictionaryVersion for details. CFBundleInfoDictionaryVersion ( String - iOS, macOS) identifies the current version of the property list structure. This key exists to support future versioning of the information property list