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
2
votes
3 answers

SpriteKit SKEmitterNode particleAction not working in Xcode 8 / iOS 10

I have an iOS 10 SpriteKit project where I'm trying to put actions on particles from a basic particle emitter created from the "snow" particle template in Xcode 8: let snowPath = Bundle.main.path(forResource: "Snow", ofType: "sks")! snowEmitter =…
Bjørn Olav Ruud
  • 1,458
  • 2
  • 13
  • 14
2
votes
1 answer

Wrong view size after updating to XCode 8

I updated XCode to versoin 8, when I opened Main.storyboard it showed me popup to choose device version, I chose iPhone 6s everything was converted but my views are still square size And they doesn't change even I change device type:
Michał Jurczuk
  • 3,728
  • 4
  • 32
  • 56
2
votes
3 answers

What is the right syntax for tableView functions in Swift 3? xCode 8 issues

I have just upgraded to xCode Version 8.0 (8A218a). I have been trying to convert some older code to Swift 3.0 and I am struggling to understand how to fix some issues with a tableView and I am confused by the documentation and some errors I am…
Peter Wiley
  • 820
  • 7
  • 19
2
votes
3 answers

Send and Open data in iMessage app

I am creating an iMessage app for iOS 10 in which I would like to send some data with the layout. When the user taps on the layout that has been sent it will open the iMessage app and access the data that has also been sent. The data is a…
Tom Coomer
  • 6,227
  • 12
  • 45
  • 82
2
votes
4 answers

Swift linker error in release build fixable by adding code

In Xcode 8, a Swift project of mine works in Debug mode but fails to link in Release mode: Undefined symbols for architecture x86_64: "Swift.UnsafeMutableBufferPointer.(subscript.materializeForSet : (Swift.Int) -> A).(closure #1)" I can fix the…
andyvn22
  • 14,696
  • 1
  • 52
  • 74
2
votes
1 answer

UNNotificationCategory and minimalActions in iOS10

According to the documentation UIUserNotificationActionContext has been deprecated on iOS 10 and according to the deprecation message we should Use UserNotifications Framework's -[UNNotificationCategory actions] or -[UNNotificationCategory…
spassas
  • 4,778
  • 2
  • 31
  • 39
2
votes
0 answers

`activeConversation` is `nil` after transitioning to `.compact` presentation style

Issue In a Messages framework app (iOS 10 beta 8), I'm able to access the activeConversation in the Messages extension using: guard let conversation = activeConversation else { print("unable to create activeConversation") return …
Ash Ryan Arnwine
  • 1,471
  • 1
  • 11
  • 27
2
votes
1 answer

Swift 3 / iOS 10 Today View Widget

How to show "Show More" button in today widget (similar to news app as attached here)? I found this on Apple but there are some changes in swift 3 / iOS 10. This seems to be like something new in iOS 10.
user1140780
  • 988
  • 2
  • 13
  • 29
2
votes
1 answer

swift 2.3 how to properly use deprecated CBCentralManagerState

I'm just converting my project to swift 2.3 (XCode 8 beta 6) and I can't figure out how to use enum CBManagerState on old iOS versions (my app has deployment target iOS7). CBCentralManager state now uses different enum CBManagerState (it was…
Skeletom
  • 49
  • 6
2
votes
2 answers

Can I use old frameworks when migrating to Swift 3?

I'm currently migrating my project to Swift3 as I know that there is one bug I have under iOS 10 that needs to be fixed. So I installed iOS 10 on one of my devices. Now I can't run my app on the device, getting the 'Could not find developer disk…
fancy
  • 2,077
  • 2
  • 23
  • 45
2
votes
0 answers

With var, Swift says it cannot pass immutable value as inout argument

I can't decipher this error message. This code compiles and runs struct A { var x: Int } var a = A(x: 123) let result = withUnsafePointer(to: &a) { print("ptr is \($0)") // return 1 } print("result is \(result)") But, if you uncomment…
Rob N
  • 15,024
  • 17
  • 92
  • 165
2
votes
1 answer

Xcode 8 beta 6 UIActivityItemProvider error with @objc compatibility

Trying to implement a UIActivityItemProvider in Xcode 8 beta 6. After changing this method from a String parameter to UIActivityType, now get this error: Method cannot be an @objc override because the type of the parameter 2 cannot be represented…
Jason Hocker
  • 6,879
  • 9
  • 46
  • 79
2
votes
1 answer

Where can I set the Story Board ID for my View Controller in XCode 8?

I am new to Swift and XCode and since Apple released the new XCode 8 Beta, I have a problem finding the input for the Story Board ID in the Identity Inspector from my View Controller! Can you please help me? Thanks It looks a bit different than the…
Jan
  • 93
  • 3
  • 8
2
votes
2 answers

Alamofire and Reachability.swift not working on xCode8-beta5

I have a custom CocoaPod created in swift2.3 and it has Alamofire and Reachability libraries inside the project. I mean I did integrate Alamofire and Reachability into the project manually. It still works perfectly on xCode7.3.1 and I am going to…
nine9stars
  • 247
  • 3
  • 12
2
votes
2 answers

"missing from working copy" build issues when upgrading to Cocoapods 1.0+

Cocoapods is no longer generating all the required headers in Pods/Headers/Private and thus causing hundreds of "missing from working copy" build issues. The issue started happening when I upgraded from: Xcode 7 Cocoapods pre-1.0 (not sure which…
cybermach
  • 125
  • 1
  • 6