Questions tagged [ios10]
iOS 10 is the tenth version of Apple's iOS mobile operating system. It was announced at the company's Apple Worldwide Developers Conference (WWDC) on June 13, 2016. The ios10 tag should be used for questions specific to Apple's iOS 10 operating system. General iOS questions should use the ios tag.
ios10
2,820
questions
1601
votes
30
answers
959k
views
Transport security has blocked a cleartext HTTP
What setting do I need to put in my info.plist to enable HTTP mode as per the following error message?
Transport security has blocked a cleartext HTTP (http://) resource
load since it is insecure....
769
votes
14
answers
236k
views
Hide strange unwanted Xcode logs
When using the Xcode 8+ and creating a new blank project, the following logs appear when running the application:
2016-06-13 16:33:34.406093 TestiOS10[8209:100611] bundleid: com.appc.TestiOS10, ...
323
votes
19
answers
425k
views
Xcode error: Code signing is required for product type 'Application' in SDK 'iOS 10.0'
I have Xcode 8 installed on OS X El Capitan.
I get this error:
Signing for "target" requires a development team. Select a development team in the project editor.
Code signing is required ...
254
votes
11
answers
171k
views
CGRectMake, CGPointMake, CGSizeMake, CGRectZero, CGPointZero is unavailable in Swift
After converting code to latest swift 3.0 I am shown this error.
Also tell me solution for CGSize = CGSizeMake(0,0)
static var frameAtStartOfPan: CGRect = CGRectZero
static var startPointOfPan: ...
227
votes
7
answers
73k
views
Class PLBuildVersion is implemented in both frameworks
iOS 10 / Xcode 8 GM build getting the below, never had it before on Xcode 7. Any ideas?
objc[25161]: Class PLBuildVersion is implemented in both
/Applications/Xcode.app/Contents/Developer/...
189
votes
19
answers
154k
views
disable viewport zooming iOS 10+ safari?
I've update my iPhone 6 plus to iOS 10 beta version and just found that in mobile safari, you can zoom any webpages by double tapping or pinching IGNORE the user-scalable=no code in the meta tag. I ...
182
votes
4
answers
116k
views
What does deployment target mean?
This is a very simple question I'm assuming. Can someone tell me what deployment target means? If I choose iOS 10, does that mean only users with iOS 10 can download the app? Is it bad to choose a ...
167
votes
23
answers
60k
views
ERROR ITMS - 90167 No. app bundles found in the package
Before I start writing about the error, I'm running on macOS Sierra and using Xcode 7.3.1.
So I'm creating an Archive from my App, I validate the App and it passes validation, but when uploading to ...
133
votes
30
answers
136k
views
Error: Could not build Objective-C module 'Firebase'
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.
124
votes
11
answers
110k
views
Registering for Push Notifications in Xcode 8/Swift 3.0?
I'm trying to get my app working in Xcode 8.0, and am running into an error. I know this code worked fine in previous versions of swift, but I'm assuming the code for this is changed in the new ...
112
votes
15
answers
66k
views
Failed to read values in CFPrefsPlistSource iOS 10
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 ...
107
votes
3
answers
153k
views
iOS 10 - Changes in asking permissions of Camera, microphone and Photo Library causing application to crash
iOS 10, Now Requires User Permission to Access Media Library, Photos, Camera and other Hardware like these. The solution for this is to add their keys into info.plist with a description for user that ...
105
votes
9
answers
35k
views
SecItemAdd always returns error -34018 in Xcode 8 in iOS 10 simulator
Update: This issue has been fixed in Xcode 8.2. Keychain works in the simulator without enabling keychain sharing.
Why am I always receiving error -34018 when calling SecItemAdd function in Xcode 8 / ...
105
votes
6
answers
44k
views
How to use Facebook iOS SDK on iOS 10
I am trying to use Xcode 8 to build a app with Facebook login using Swift 3. When I switch back iOS Simulator 9.3, it works. In iOS 10, I receive this error:
""fbauth2:/" The operation ...
102
votes
5
answers
60k
views
iOS 10 error [access] <private> when using UIImagePickerController
I am using XCode 8 and testing with iOS 10.2 Beta.
I have added the Photos, PhotosUI and MobileCoreServices frameworks to project.
Very simple code:
#import <Photos/Photos.h>
#import <...
102
votes
16
answers
39k
views
Layout issues after updating to Xcode 8
Here is a before and after of one of my screens after I upgraded to Xcode 8.All I did was open up my main.storyboard and from there, I built and ran my app on my phone.In my version control, I can see ...
100
votes
6
answers
125k
views
How to make phone call in iOS 10 using Swift? [duplicate]
I want my app to be able to call a certain number when a button is clicked. I've tried to google it but there doesn't seem to have one for iOS 10 so far (where openURL is gone). Can someone put an ...
95
votes
13
answers
30k
views
Since Xcode 8 and iOS10, views are not sized properly on viewDidLayoutSubviews
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 ...
94
votes
9
answers
37k
views
The document Main.storyboard requires Xcode 8.0 or later
I downloaded Xcode beta and opened my existing project to see how it works with Xcode 8 beta (I opened Storyboard file from Xcode 8).
Now when I open my project from Xcode 7.3 I am not able to open ...
94
votes
6
answers
78k
views
openURL: deprecated in iOS 10
Apple with iOS 10 has deprecated openURL: for openURL:option:completionHandler
If I have:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://www.google.com"]];
How ...
92
votes
6
answers
83k
views
App rejected due to missing usage descriptions (Xcode8)
So I got this mail today saying that the latest build of my app was rejected by iTunes Connect due to some missing usage descriptions. To be exact:
This app attempts to access privacy-sensitive data ...
91
votes
9
answers
56k
views
iOS 10 doesn't print NSLogs
Nothing prints from NSLog on Xcode 8.0 beta (8S128d). printf is unchanged
Here's my code:
NSLog(@"hello from NSLog");
printf("hello from printf");
Here's the output on iOS 9 Simulator:
2016-06-17 ...
91
votes
3
answers
57k
views
What is 'Vary for Traits' in Xcode 8?
I am using AutoLayout and Size classes, but with release of iOS 10 and new Xcode 8.0, there is one new option Vary for Traits. Is this replacement of Size Classe for different width and height of ...
84
votes
4
answers
39k
views
Error: Protocol not available, dumping backtrace [duplicate]
2016-09-17 15:16:04.386085 appDemo[2371:94976] [] __nwlog_err_simulate_crash simulate crash already simulated **"nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not ...
78
votes
11
answers
95k
views
Error '_BSMachError: port 1607; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND" in Cordova app on iOS 10
Everything works fine till I build my cordova application with Xcode 7.3.0 but it started crashing only on iOS 10 devices after building the same application with Xcode 8 whenever i'm changing the ...
78
votes
8
answers
20k
views
NSLog on devices in iOS 10 / Xcode 8 seems to truncate? Why?
Why the console output shows incomplete in Xcode 8 / iOS 10?
75
votes
18
answers
38k
views
iOS 10 bug: UICollectionView received layout attributes for a cell with an index path that does not exist
Running my app in a device with iOS 10 I get this error:
UICollectionView received layout attributes for a cell with an index path that does not exist
In iOS 8 and 9 works fine. I have been ...
74
votes
3
answers
39k
views
Xcode 8, iOS 10 - "Starting WebFilter logging for process"
WF: === Starting WebFilter logging for process Test
2016-09-30 08:56:45.458007 Test[616:142557] WF: _userSettingsForUser mobile: {
filterBlacklist = (
);
filterWhitelist = (
...
69
votes
7
answers
97k
views
The app's Info.plist must contain an NSMicrophoneUsageDescription key with a string value explaining to the user how the app uses this data
Got a build rejection
The app's Info.plist must contain an NSMicrophoneUsageDescription key with a string value explaining to the user how the app uses this data.
The app does not use microphone. Or ...
68
votes
17
answers
39k
views
Xcode 8 | iOS 10 simulator "Error returned in reply: Connection invalid"
While I am try to run an app in the iOS 10 simulator using xcode8 I get these alerts frequently. They randomly appear two at a time and it is not apparent what is triggering them.
Below is Image for ...
68
votes
9
answers
24k
views
Safe area layout guides in xib files - iOS 10
I started adapting my app for iPhone X and found an issue in Interface Builder.
The safe area layout guides are supposed to be backwards compatible, according to official Apple videos. I found that it ...
65
votes
22
answers
42k
views
Xcode 8 generates broken NSManagedObject subclasses for iOS 10
I updated my iOS app project recently to iOS 10. Now I'm trying to change the Core Data Model of my app but the new NSManagedObject subclasses which Xcode generates are broken. I also tried to fix the ...
65
votes
3
answers
34k
views
xcode 8 push notification capabilities and entitlements file setting
when using xcode 8 doing the push notification setting, unlike xcode 7, xcode 8 need developer turn on push notifications capabilities switch ( located at TARGETS -> AppName -> Capabilities as ...
63
votes
10
answers
50k
views
Model is running iOS 10.2 (14C92), which may not be supported by this version of Xcode
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 ...
63
votes
2
answers
39k
views
System group container for systemgroup.com.apple.configurationprofiles path
When i run my application in ios 10 using xcode 8 i am getting below message in debug console but everything is working fine. My application is using camera and photo library, and i had added " ...
61
votes
7
answers
123k
views
Take a photo and save to photo library in Swift
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 ...
60
votes
5
answers
92k
views
how to display image in ios push notification?
iOS 10 introduced push notification framework updates,
UserNotificationsUI.framework
As written on apple docs, it lets us customize the appearance of local and remote notifications when they ...
60
votes
3
answers
28k
views
Error in iOS 10 : Unable to copy asset information from https://mesu.apple.com/assets/ for asset type
2016-10-05 13:36:21.383340 MyApp[1867:72704] 0x60000015e350 Copy matching assets reply: XPC_TYPE_DICTIONARY <dictionary: 0x60000015e350> { count = 1, transaction: 0, voucher = 0x0, contents =
...
59
votes
5
answers
97k
views
Save dictionary in userdefaults in swift 3 with xcode 8
I am using the following code to save an object to UserDefaults (previously NSUserDefaults) using xcode 8:
let defaults = UserDefaults.standard()
defaults.set(someObject, forKey: "someObject")
print(...
59
votes
5
answers
32k
views
This iPhone 6 is running iOS 10.1 (14B55c), which may not be supported by this version of Xcode
I'm trying to run the app after I updated Xcode to v8 and iOS to v10, but this error message pops up & prevents me from doing so:
This iPhone 6 is running iOS 10.1 (14B55c), which may not be ...
58
votes
15
answers
21k
views
Xcode8.0 Beta 6 - unable to read from device
I just upgraded Xcode 8.0 from beta 4 to beta 6 and I am getting this message " unable to read from device " when trying to build the app on my device. Any ideas what the problem could be?
58
votes
4
answers
11k
views
Xcode 8 iOS 10 non stop device logs
My Xcode 8 device log from an iOS 10 iPhone 6s+ is printing the following lines non continuously and I can't stop it or don't know a way to stop it. Any way I can stop these from printing?
Sep 20 14:...
56
votes
6
answers
49k
views
Push notification issue with iOS 10
I've developed one application in that i've implemented push notification. Currently it's live on apple store. Upto iOS 9 push is working fine but after iOS 10 it is not working.
What is the issue ...
53
votes
12
answers
54k
views
Check internet connection (iOS 10)
For iOS 9 I was using Reachability public class to check wether the device is connected to the internet or not. I converted my Swift 2 code to Swift 3, and the Reachability doesn't work anymore. Can ...
53
votes
6
answers
66k
views
"Reading from public effective user settings" in iOS 10
I'm getting the following messages when launching my app:
2016-10-12 14:47:23.705002 Discovery[377:147958] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/...
53
votes
6
answers
53k
views
Xcode 8 cannot run on device, provisioning profile problems mentioning Apple Watch
I am running OS X El Capitan and using the Xcode 8 GM seed (8A218a) and I am trying to run my app on my iPhone 6 with iOS 10 GM seed, 10.01 (14A403), which is paired to my Apple Watch running watchOS ...
53
votes
4
answers
22k
views
iOS 10 "Starting WebFilter logging for process" + Proxy-Authorization header removed from request
Starting from iOS 10 I noticed such logs in my app
yyyy-MM-dd HH:mm:sss HelloWorld[XXX:XXXXXX] WF: === Starting WebFilter logging for process HelloWorld
yyyy-MM-dd HH:mm:sss HelloWorld[XXX:XXXXXX] WF:...
51
votes
11
answers
30k
views
Why "add Push notification feature to your app id" warning even after push-notification showing enabled in App ID?
I am using Xcode8, swift 3, iOS 10
In Targets -> capabilities showing "add the Push notification feature to your app id".
I check my APP ID and it is showing pushnotfication enabled in both ...
48
votes
3
answers
51k
views
Difficulties converting to Swift 3
After converting from Swift 2 to Swift 3 (even after converting edit-> convert -> to current swift syntax) I am getting lots of errors. Especially:
I am shown total 90 errors for my project which ...
47
votes
4
answers
27k
views
ISO8601DateFormatter doesn't parse ISO date string
I'm trying to parse this
2017-01-23T10:12:31.484Z
using native ISO8601DateFormatter class provided by iOS 10 but always fails.
If the string not contains milliseconds, the Date object is created ...