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
59
votes
5 answers

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(defaults.object(forKey: "someObject")) someObject…
alionthego
  • 8,508
  • 9
  • 52
  • 125
58
votes
2 answers

Unit Test fails in Xcode 8

I get this error message every time I run my unit tests in Xcode 8 Validation for xctestrun file failed: ( "For these test runs, UITargetAppPath should be provided" )
GyroCocoa
  • 1,542
  • 16
  • 19
55
votes
5 answers

Xcode 8 signing errors, can't log in with account and no provisioning profile

When I run my application, two errors appear in the Signing part of the General tab of the project. One says, "The operation couldn't be completed. Unable to log in with account ________" while the other says "No profiles for ________ were found."…
bigreddawg
  • 723
  • 1
  • 5
  • 10
53
votes
6 answers

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 3 GM seed (14S326). I am using Match for handling…
Sajjon
  • 8,938
  • 5
  • 60
  • 94
52
votes
2 answers

Swiftlint warning : For Where Violation: `where` clauses are preferred over a single `if` inside a `for`. (for_where)

I am using swift for my application development and using Swift lint. But I am getting a warning regarding the following code: for settingsKeys in searchResults { if settingsKeys.key == settingsObject.key { settingsKeys.value =…
Chelsea Shawra
  • 1,593
  • 4
  • 22
  • 43
52
votes
3 answers

Is there a way to turn off Xcode 8's autocomplete for image names?

Xcode 8 has this new feature that is supposed to suggest image file names when you use UIImage(named:) In my case it suggests image names even when it doesn't make any sense. Example: There is nothing in preferences. I wonder if there is some…
Vojtech Vrbka
  • 5,342
  • 6
  • 44
  • 63
52
votes
5 answers

Xcode 8 source control does not show conflicts

After Xcode has updated to version 8.0 (8A218a), I have a problem pulling changes from git repository from Xcode only when some files are conflicted. We are all working on the same branch. As long as there are no conflicts, everything works…
Despotovic
  • 1,807
  • 2
  • 20
  • 24
52
votes
16 answers

xcode8 list of simulators not showing

I have been only recently working with Xcode 8 beta 4 but it has been working fine up until now. The list of simulators is not showing for any of my projects. I already tried Creating a new Scheme and it did not work. How do I fix this?
Ryan Cocuzzo
  • 3,109
  • 7
  • 35
  • 64
50
votes
1 answer

Strange Terminal Messages in Xcode 8

Recently, I have updated my Xcode version to 8. When I start and run an entirely new project, I get the following messages in my terminal. 2016-09-07 15:28:43.759998 App[7932:128675] subsystem: com.apple.UIKit, category: HIDEventFiltered,…
JacobSiegel
  • 5,311
  • 2
  • 14
  • 17
49
votes
4 answers

Xcode 8 does full project rebuild

Having updated Swift + ObjC project to Xcode 8 (Swift 2.3) I found 50% or more of the time Xcode does a full rebuild of the project instead of an incremental build. The changes made are adding simple print statements. There seems to be no logic as…
Vlad
  • 5,727
  • 3
  • 38
  • 59
48
votes
16 answers

Strange Errors on Archive Validation

I've had an iOS project in fairly stable condition up until Xcode 8's public release. After a bit of confusion with the Migrator, I finally convinced the compiler that I did not want to go Swift 3 yet, and that my code was indeed valid Swift 2.3.…
AverageHelper
  • 2,144
  • 2
  • 22
  • 34
48
votes
4 answers

Xcode 8 - Provisioning Profile vs. Provisioning Profile (Deprecated)

I have just updated to Xcode 8 and I now have two options for app signing, Provisioning Profile and Provisioning Profile (Deprecated). Why is one deprecated, and what is the difference between the two?
keldar
  • 6,152
  • 10
  • 52
  • 82
48
votes
2 answers

preferredStatusBarStyle removed in Swift 3?

so I recently just updated to Xcode 8 and I just got this error for the following code. The error is that the method doesn't override any method from it's superclasses. override func preferredStatusBarStyle() -> UIStatusBarStyle { return…
Amit Kalra
  • 4,085
  • 6
  • 28
  • 44
48
votes
3 answers

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 was working fine in Swift 2 before i downloaded…
niravdesai21
  • 4,818
  • 3
  • 22
  • 33
47
votes
1 answer

'CGAffineTransformIdentity' is unavailable in Swift

Came across this error when trying to do adapt some animations into Swift3 syntax. UIView.animate(withDuration: duration, delay: 0.0, usingSpringWithDamping: 0.5, initialSpringVelocity: 0.8, options: [] , animations: { fromView.transform…
AMAN77
  • 6,218
  • 9
  • 45
  • 60