Questions tagged [xcode8-beta4]

a prerelease version of Xcode 8 released on August 2, 2016.

23 questions
116
votes
12 answers

Xcode 8 Beta 4 - Comment Shortcut Disabled

I just updated to Xcode 8 Beta 4 and the shortcut cmd + / to comment a line is not working.. In the dropdown menu it's disabled: There's a way to activate it again?
Jacopo Penzo
  • 2,168
  • 2
  • 24
  • 29
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
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
26
votes
2 answers

Xcode 8 beta 4: Calendar.Unit vs Calendar.Component

This Swift 3 code worked until XCode 8 beta 3: let calendar = Calendar.current let anchorComponents = calendar.components([Calendar.Unit.day, Calendar.Unit.month, Calendar.Unit.year, Calendar.Unit.hour], from: self) In Xcode 8 beta 4 Calendar.Unit…
Gerd Castan
  • 6,275
  • 3
  • 44
  • 89
22
votes
3 answers

How does Error work in Swift in Xcode 8 beta 4

Seems like when converting our old code to beta 4, I keep casting Error to NSError. That will even lead sometimes to a warning "conditional cast from 'Error' to 'NSError' always succeeds". I feel like I'm not understanding how best to use Error. …
Jason Hocker
  • 6,879
  • 9
  • 46
  • 79
15
votes
1 answer

GIDSignIn keychain error iOS 10 Xcode 8

In iOS 10 and xcode 8 when I try to sign in to google services I get "keychain error" func sign(_ signIn: GIDSignIn!, didSignInFor user: GIDGoogleUser!, withError error: Error!){ if error != nil { …
RyanTCB
  • 7,400
  • 5
  • 42
  • 62
13
votes
2 answers

Unable to access application container from iPad running on iOS 10 beta

I am not able to download app container using xcode for my application on iOS 10 beta 4. I am using later xcode (beta 4). When I connect my device and go to Device in xcode, I am able to see my app listed but when I click on download container I get…
Kapil Choubisa
  • 5,152
  • 9
  • 65
  • 100
13
votes
6 answers

Multipeer Connectivity Not Connecting Programmatically

I am creating an iOS/macOS app that uses remote control functionality via the Multipeer Connectivity Framework. Since the device to be remotely monitored and controlled will run over an extended period of time, it's not viable to use the automatic…
8
votes
1 answer

Use of undeclared type 'AttributedString'

Xcode 8 beta 4 no longer recognizes Foundation class AttributedString. I've reproduced it in this simple playground example: //: Playground - noun: a place where people can play import Foundation let attrStr1 = NSAttributedString() let attrStr2 =…
user4151918
4
votes
1 answer

Xcode 8 beta 4: "Could not attach to pid : 1110" when running on physical device

I made a messages extension and when I run it on the iOS simulator everything runs no problem. When I try to run it on my phone, it compiles and says running for about 5 seconds before crashing and giving me a pop down message in Xcode saying Could…
random_0620
  • 1,636
  • 5
  • 23
  • 44
3
votes
2 answers

Can't get Auto Layout and Stack Views to Auto-Adjust Properly (Swift 3, Xcode 8)

I'm new to iOS development so naturally I'm having some issues with my stack views and auto layout constraints in Xcode. Originally I had used just constraints and the pin menu to align everything but I'm really trying to get stack views down so I…
CaliLove
  • 51
  • 4
3
votes
1 answer

Missing autocomplete and documentation

I downloaded the Xcode8 Beta. There is only autocomplete based on other text in the same file, but not anything related to class methods, etc. Also I don't have any documentation of Swift and if I go to "Settings"->"Components"->"Documentation", I…
fancy
  • 2,077
  • 2
  • 23
  • 45
2
votes
1 answer

Why doesn't this UIAlertController show?

While attempting to implement a UI Alert I have encountered some issues. I am using swift 3.0 in Xcode 8 beta 4, I am attempting to have a button which activates a alert, one button (cancel) dismisses the alert the other (ok) performs an action as a…
Yellow
  • 175
  • 1
  • 15
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

Swift 3.0 Xcode8 beta 4 how to fix Calendar.current.date

Evening, I really don't know how to convert this: let birthDay = Calendar.current.date(era: 1, year: year, month: moth, day: day, hour: 0, minute: 0, second: 0, nanosecond: 0) Into this: Calendar.current.date(from: ) Any tips? This…
user4956851
1
2