ios10

The “prefs” URL Scheme is not working in iOS 10 (Beta 1 & 2)

眉间皱痕 提交于 2019-11-27 04:32:57
I can't get the "prefs" URL Scheme to work in iOS 10 (Beta 1). It's set up correctly since the same App works fine on iOS 9. Is this a bug or did it get renamed / removed? Code: let settingsUrl = NSURL(string: "prefs:root=SOMETHING") if let url = settingsUrl { UIApplication.sharedApplication().openURL(url) } Update: (Beta 2) Still not working in Beta 2. It seams to be an bug. For example if you want do invite someone using GameCenter in iOS 10 and you're not logged into iMessage, you'll get a popup asking you to log in. But the "Settings" button does absolutely nothing. Just replace prefs to

NSPhotoLibraryUsageDescription in Xcode8

喜你入骨 提交于 2019-11-27 04:16:42
问题 Update : I attempt to add a String value to the "NSPhotoLibraryUsageDescription" key. And it works.My build version is now available on my TestFlight. ps: 构建版本 means Build Version But I want to know why Apple Store just let me add String value for "NSPhotoLibraryUsageDescription" key rather than "Camera Usage Description" or "Location When In Use Usage Description" ? And how to localize the info.plist. Old : I've uploaded many build versions to iTunes Connect.But TestFlight shows none of

Code signing issue in Xcode version 8

情到浓时终转凉″ 提交于 2019-11-27 03:25:16
问题 I updated my Xcode to version 8 after iOS 10 release. Apple made some changes in code signing process and it is now available in general section of target settings. But the issue is my production provisioning profile is showing as ineligible one. This error message is coming: "xxxproductionprovisioningprofile" doesn't include signing certificate "iPhone Distribution: xxx (xxx)". I again created the provisioning profile using same distribution certificate. The distribution certificate is

Error: Could not build Objective-C module 'Firebase'

坚强是说给别人听的谎言 提交于 2019-11-27 03:11:53
When I compile the application I get an error equal to this: Could not build Objective-C module 'Firebase' This error appear in import Firebase of my file swift. Dimitris Bouzikas There is only one way to solve this issue. Quit Xcode. Delete project's temp files located at ~/Library/Developer/Xcode/DerivedData Delete ProjectName.xcworkspace Delete Podfile.lock file and Pods folder Run pod install . Open the newly created ProjectName.xcworkspace file and build. Ernist Isabekov Build ( ⌘ + B ) worked for me. Timmy Eap I am using Swift 4 and Xcode 9. All I have to do is selecting FirebaseCore

Failed to read values in CFPrefsPlistSource iOS 10

旧街凉风 提交于 2019-11-27 03:06:16
I've updated my Xcode 8 to beta 2 today and I'm trying to share data between App and Today Extension. I'm facing with this log warning: 2016-07-08 18:00:24.732472 ProjetctX[941:42801] [User Defaults] Failed to read values in CFPrefsPlistSource<0x1700f1280> (Domain: group.x.p.t.o, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null)): Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsd Anyone can help me? This is actually a spurious warning that was introduced in iOS 10 and macOS 10.12. (Source: https://twitter.com/Catfish_Man

Model is running iOS 10.2 (14C92), which may not be supported by this version of Xcode

ぐ巨炮叔叔 提交于 2019-11-27 03:02:45
I am facing this error, i am done with research on that. I conclude the result, i need one file for device support 10.2(14C92) Please share that file. GoTo: Right click on Xcode 8 or Newer version of your Xcode, select "Show Package Contents", "Contents", "Developer", "Platforms", "iPhoneOS.Platform", "Device Support" Copy the 10.2(14C92) folder (or above for later version). I need that folder. Thanks. If somebody facing similar issue with Xcode 9.1 Open directory: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport Create new folder "11.2 (15C107)" (or "10.3

swift Take a photo and save to photo library

天大地大妈咪最大 提交于 2019-11-27 02:50:55
I have been searching and unable to find the answer to this. I have a button "take a photo" and when pressed, it opens the camera, you take a photo and when you select "Use Photo", I want it saved to the photo library. I am able to do all but save to the library, can someone help? this is the code I have to open the camera: Use below code for an image taken from Photo Gallery and save inside photo library. Code Support for Swift 3.1 & 4.0 version: First, we have to do the setup for Permissions inside Project's .plist file:- 1) Camera <key>NSCameraUsageDescription</key> <string>This app will

Timer.scheduledTimer swift 3 pre iOS 10 compatibility

点点圈 提交于 2019-11-27 02:37:57
问题 I need to schedule a Timer for firing a function every second but I see that in xcode 8 beta 3 the scheduledTimer is only available for iOS 10. Is there any alternative for using the timer in iOS 9 or previous versions? Timer.scheduledTimer(withTimeInterval: 1, repeats: true, block: { (timer) in print("Hi!")}) 回答1: Solved using Timer.scheduledTimer(timeInterval: 1, target: self, selector: #selector(self.updateTime), userInfo: nil, repeats: true) 回答2: Run a timer with swift3, var timer: Timer?

Since Xcode 8 and iOS10, views are not sized properly on viewDidLayoutSubviews

僤鯓⒐⒋嵵緔 提交于 2019-11-27 02:37:43
It seems that with Xcode 8, on viewDidLoad , all viewcontroller subviews have the same size of 1000x1000. Strange thing, but okay, viewDidLoad has never been the better place to correctly size the views. But viewDidLayoutSubviews is! And on my current project, I try to print the size of a button: - (void)viewDidLayoutSubviews { [super viewDidLayoutSubviews]; NSLog(@"%@", self.myButton); } The log shows a size of (1000x1000) for myButton! Then if I log on a button click, for example, the log shows a normal size. I'm using autolayout. Is it a bug? Martin Now, Interface Builder lets the user

Using NSUserDefaults with Xcode 8 and iOS 10

会有一股神秘感。 提交于 2019-11-27 02:31:11
问题 NSUserDefaults no longer appears to be a class in the iOS 10 SDK: let defaults = NSUserDefaults.standardUserDefaults() This fails to compile. Was this class removed? (This is a canonical Q&A pair to prevent the flood of duplicate questions) 回答1: NSUserDefaults has been renamed to UserDefaults . standardUserDefaults() has been renamed to standard() . let defaults = UserDefaults.standard This now works. Pre-release documentation link. 回答2: To be more precise to use UserDefaults in Swift-3 :- /