info-plist

Required Background modes key is not there in info-plist file

拥有回忆 提交于 2019-11-29 05:58:18
I want to set required background mode key value so that my app also works in background. Actually i want to get the user location updates when the app is in background, but there is no key called required background mode key in my info-plist file. How to set this key and jow to bring this in my file? In xcode 5 , Project setting -> Target -> Capabilities -> Background modes -> check Location updates. If your are using below than xcode 5 , set background mode for Location as below screen shot. You can add that key to the info.plist. If you are using Xcode 5 its very simple. In Capabilities

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

删除回忆录丶 提交于 2019-11-28 21:21:51
问题 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

Three slightly different Apps from one code base

泪湿孤枕 提交于 2019-11-28 16:45:32
Hy there I would like to have three apps depending, which are based on the same code: MyAppDevelopment (Builds from Xcode that are deployed to the device) MyAppPreview (Beta testing) MyApp (Release) It should be possible to have all of the three Apps installed on a device and they'd have their own icon to nicely distinguish them visually. Now I know that I could have three different targets with their respective Info.plist file, but I would rather use Xcode's configurations so that I don't have to maintain three different targets. Is this possible using configurations, the problem is that the

canOpenUrl - This app is not allowed to query for scheme instragram

青春壹個敷衍的年華 提交于 2019-11-28 03:45:19
Im trying to add the Instagram url to my app in iOS9 however I am getting the following warning: -canOpenURL: failed for URL: "instragram://media?id=MEDIA_ID" - error: "This app is not allowed to query for scheme instragram" However, Ive added the following to the LSApplicationQueriesSchemes in my info.plist ; <key>LSApplicationQueriesSchemes</key> <array> <string>instagram</string> <string>instagram://media?id=MEDIA_ID</string>//this one seems to be the issue </array> Any help is greatly appreciated? EDIT 1 This is the code I am using to open instagram: NSURL * instagramURL = [NSURL

Required Background modes key is not there in info-plist file

一世执手 提交于 2019-11-27 23:31:15
问题 I want to set required background mode key value so that my app also works in background. Actually i want to get the user location updates when the app is in background, but there is no key called required background mode key in my info-plist file. How to set this key and jow to bring this in my file? 回答1: In xcode 5 , Project setting -> Target -> Capabilities -> Background modes -> check Location updates. If your are using below than xcode 5 , set background mode for Location as below screen

Exposing an app's ubiquitous container to iCloud Drive in iOS 8

那年仲夏 提交于 2019-11-27 18:10:40
I'm developing an iCloud-enabled app where users will be able to import and export files via iCloud Drive. When browsing iCloud Drive, either using the UIDocumentPickerViewController (iOS 8) or the Finder (OS X Yosemite), I can see directories created/owned by other iCloud-Drive-enabled apps, such as, Automator, Keynote, or TextEdit. I want our app to expose its ubiquitous documents directory in iCloud Drive, too, but haven't been able to figure it out yet. Within some of the aforementioned apps' Info.plist files, I've discovered this key: <key>NSUbiquitousContainers</key> <dict> <key>com

Three slightly different Apps from one code base

守給你的承諾、 提交于 2019-11-27 09:53:45
问题 Hy there I would like to have three apps depending, which are based on the same code: MyAppDevelopment (Builds from Xcode that are deployed to the device) MyAppPreview (Beta testing) MyApp (Release) It should be possible to have all of the three Apps installed on a device and they'd have their own icon to nicely distinguish them visually. Now I know that I could have three different targets with their respective Info.plist file, but I would rather use Xcode's configurations so that I don't

canOpenUrl - This app is not allowed to query for scheme instragram

对着背影说爱祢 提交于 2019-11-26 19:07:05
问题 Im trying to add the Instagram url to my app in iOS9 however I am getting the following warning: -canOpenURL: failed for URL: "instragram://media?id=MEDIA_ID" - error: "This app is not allowed to query for scheme instragram" However, Ive added the following to the LSApplicationQueriesSchemes in my info.plist ; <key>LSApplicationQueriesSchemes</key> <array> <string>instagram</string> <string>instagram://media?id=MEDIA_ID</string>//this one seems to be the issue </array> Any help is greatly