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
1 answer

Facebook Login Error - Xcode 8 GM

I am using the latest Facebook SDK and I get this error when I run the block of code below: Facebook signup error - The operation couldn’t be completed. (com.facebook.sdk.login error 308.) Here is my code: func signupWithFacebook() { …
Dan Levy
  • 3,931
  • 4
  • 28
  • 48
2
votes
1 answer

Cannot convert (NSError)-> Void in Swift 3

Hey guys so I recently updated my Xcode version to Xcode 8 and I have started getting these errors in the new betas that I haven't gotten before. CSSearchableIndex.default().indexSearchableItems([searchableItem]) { // Error. (error…
Amit Kalra
  • 4,085
  • 6
  • 28
  • 44
2
votes
1 answer

reachability bug in Xcode 8 e Swift 3

I have a huge problem! I'm trying to implement reachability in an app using Xcode 8 Beta 3 and Swift. When the user have internet (wifi or 4G): the background turns green. If you will not the background it will be red. And if the user accessing…
Ewerson
  • 109
  • 1
  • 10
2
votes
1 answer

Retrieve UIPreviewInteraction associated touch

I'm using the new UIPreviewInteraction API and want to know the location where the user lifts up his finger. Basically the flow that I want to create is: User 3D touches on something. Bubbles appear around his finger. User slides his finger on top…
Sergey Katranuk
  • 1,162
  • 1
  • 13
  • 23
2
votes
1 answer

previewActionItems() removed in Xcode Beta 4

I just updated my Xcode to newest version of the Xcode 8 beta. Now I opened one Project I'm currently working on. I seems, that the method to register previewQuickActions has changed, because I get a error for overriding this, that it conflicts with…
Chromo
  • 77
  • 1
  • 8
2
votes
1 answer

requestRecordPermission not working in ios10 xcode 8 beta 3

when I try to request permission to record with the mic it throws " [access] < private>" AVAudioSession.sharedInstance().requestRecordPermission({(granted: Bool)-> Void in if granted { print("yass") } else { …
masaldana2
  • 635
  • 9
  • 20
2
votes
0 answers

currentDevice.name and iOS 10.0

I'm working on an Obective-C app with XCode 8.0 (beta build 8S128d) and iOS 10.0 (beta build 14A5297c) and I stumbled upon a weird issue. Whenever I call [[UIDevice currentDevice] name], the app crashes, the process stops in XCode, and the only log…
2
votes
0 answers

About Xcode developer beta2

Upgrade my Xcode to db2 version, run my code and show this, how should I do picture here
hsing
  • 114
  • 6
2
votes
2 answers

Linker command failed with exit code 1 (use -v to see invocation) with Swift 3

I am working on building a Swift library and am hosting it on GitHub. All was going fine until I added BluetoothKit to the project. I then got an Apple Mach-O Linker Error: ld: warning: directory not found for option…
Caleb Kleveter
  • 11,170
  • 8
  • 62
  • 92
2
votes
2 answers

Swift 3: 'if let' optional binding error

I am working in Swift 3, and am experiencing trouble with the following if let test: let plistUrl = Bundle.main().urlForResource("Books", withExtension: "plist") if let plistData = try Data(contentsOf: plistUrl!) { ...some code } The compiler is…
Michael Sheaver
  • 2,059
  • 5
  • 25
  • 38
2
votes
1 answer

No setter method for assignment to property swift 3 with objective-c

I am using below code in one of my swift classes: import UIKit public class BRUFIMobile: NSObject { public var mobileNumber : NSString? public var provider : NSString? public var aliasName: NSString? public var aliasName_en :…
Husein Behboudi Rad
  • 5,434
  • 11
  • 57
  • 115
2
votes
2 answers

Is it possible to use core data (Xcode 8 and Swift 3.0) with both iOS 9 and 10 ?

I want start new app in Swift 3 Xcode 8 and support iOS 8.4/9.x How to deal with Core Data ?
Maciek
  • 161
  • 3
  • 11
2
votes
1 answer

How to delete Constraints from Main.storyboard with Xcode 8 beta?

I try with backspace how it was on swift 2 but in Xcode 8 beta I can't do it the same way.
Ivan Slavov
  • 270
  • 3
  • 12
2
votes
2 answers

Stop tasks until AlertController action occurs Swift

I tried to execute a task from the completion parameter of present so that it would execute the desired function only after the UIAlertController closed. However, the function was called before the action was taken in the alert. How do I wait to…
Abhi V
  • 714
  • 1
  • 4
  • 19
2
votes
1 answer

Interface builder: Autolayout for MapView

Xcode 8 beta 8S128d Interface Builder and Autolayout has always puzzled me. I can simply not make it do what I want. Example: Just need an ImageView to fill up the screen(parent), but from the top the ImageView should be be proportional to the…
Chris G.
  • 23,930
  • 48
  • 177
  • 302