Questions tagged [xcode8]

Xcode 8 is an IDE created by Apple for the development of macOS, iOS, watchOS, and tvOS applications. The first release of Xcode 8 was on June 13th, 2016 with Xcode 8 beta build 8S128d. *Do not use this tag unless your question specifically involves the Xcode IDE!*

Xcode 8 is an Apple integrated development environment (IDE). This version of Xcode includes the SDKs for macOS 10.12 iOS 10, watchOS 3, and tvOS. The beta is available free for developers from https://developer.apple.com/ and will be released in the fall from the Mac App Store.

The latest production version of the IDE is Xcode 8.2.1 (8C1002) (Dec 19, 2016)

**Latest Preview : Xcode 8.2 beta 2 (8C30a) released on Nov 14, 2016.

The tag should only be used for questions about the Xcode 8 IDE itself, and not for general macOS, iOS, watchOS, or tvOS programming topics. Use for Mac programming questions, and or for iOS programming questions.

If the question is related to the Xcode IDE in general (not specific to Xcode 8), use the tag.

4206 questions
105
votes
9 answers

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 / iOS 10 simulator? Steps to Reproduce Create a new…
Evgenii
  • 36,389
  • 27
  • 134
  • 170
103
votes
20 answers

New build disappears after uploading it to iTunes Connect

I'm trying to upload a build to iTunesConnect with Xcode 8. Xcode shows me that the uploading is successful. In Activity tab of iTunesConnect I see that my build is appears and it's marked as "processing...". But after a few minutes this build…
chudin26
  • 1,153
  • 2
  • 7
  • 9
102
votes
16 answers

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 Xcode is doing a lot of changes to my…
user2726072
  • 1,031
  • 2
  • 8
  • 4
95
votes
13 answers

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 views. But viewDidLayoutSubviews is! And on my…
Martin
  • 11,881
  • 6
  • 64
  • 110
92
votes
17 answers

Xcode 8 cocoapods abort trap: 6

localhost:PodTest3 haiwang$ pod install Analyzing dependencies Downloading dependencies Installing MBProgressHUD (0.9.2) Installing Masonry (1.0.2) Generating Pods project Abort trap: 6 After upgrading to Xcode 8, cocoapods doesn't work anymore. I…
haiwang
  • 915
  • 1
  • 6
  • 6
92
votes
6 answers

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 without a usage description. The app's Info.plist…
KimHafr
  • 2,922
  • 3
  • 26
  • 28
91
votes
3 answers

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 devices. By selection of width checkbox, it…
technerd
  • 14,144
  • 10
  • 61
  • 92
91
votes
9 answers

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 09:49:10.887 calmapp-dev[28517:567025] hello from…
Tyler Sheaffer
  • 1,953
  • 1
  • 16
  • 16
89
votes
14 answers

Xcode 8 provisioning profile won't download

I recently updated to Xcode 8 and as I click on "download" option next to provisioning profile in Xcode/Preferences/Accounts/View Details menu it changes to gray and does not download. After restarting Xcode the download button is again clickable…
Wladek Surala
  • 2,590
  • 1
  • 26
  • 31
87
votes
2 answers

Xcode 8 auto-generated quick help documentation

Among the new features announced in Xcode 8, we can see "Auto-generate Quick Help documentation" : Is this the end of manual code documentation like we can learn on this article from NSHipster ? Can someone outline the pros and cons of this new…
H4Hugo
  • 2,570
  • 3
  • 16
  • 32
86
votes
8 answers

Xcode 8 build crash on iOS 9.2 and below

When I build my app with Xcode 8 GM Seed and run it on an iOS 9.2 below device OR simulator, I get strange EXC_BAD_ACCESS crashes during app startup or a few seconds after the app launched. The crash always happens in a different spot (adding a…
Lingzhi Zhang
  • 883
  • 1
  • 8
  • 10
85
votes
13 answers

How do I create a Delete-Line Keyboard shortcut in Xcode 8? The Xcode 3 solutions do not work anymore

In previous versions of Xcode it was possible to create a key binding to delete the current line. There were different solutions and they are described for example here: Xcode: Delete line hot-key Xcode duplicate/delete…
Klaas
  • 22,394
  • 11
  • 96
  • 107
80
votes
5 answers

Xcode 8 :function types cannot have argument label breaking my build

It seems that for some reason Swift have chosen to make coding in it less readable by forcing users to remove completion handler parameter labels. I have read the Swift discussion and still think it's a mistake. At least they could have made it…
UKDataGeek
  • 6,338
  • 9
  • 46
  • 63
78
votes
11 answers

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 orientation from Portrait to Landscape where as it…
umesh
  • 801
  • 1
  • 6
  • 4
77
votes
8 answers

NSLog on devices in iOS 10 / Xcode 8 seems to truncate? Why?

Why the console output shows incomplete in Xcode 8 / iOS 10?
iPeta
  • 822
  • 1
  • 6
  • 9