xcode6.3

Build error when trying to override an initializer in Xcode 6.3 Beta 3

不想你离开。 提交于 2019-11-27 22:05:53
The following code shows build error in Xcode 6.3 Beta 3 . The code works in Xcode 6.2 and Xcode 6.3 Beta 2. class MyView: UIView { override init() { super.init() // Some init logic ... } override init(frame: CGRect) { super.init(frame: frame) } required init(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } } Error message initializer does not override a designated initializer from its superclass Workaround? There is a possible workaround of creating a protocol with init methods mentioned in Beta 3 release notes . I could not make it work both both init and init

Application sticks on OSSpinLockLockSlow

南笙酒味 提交于 2019-11-27 19:53:59
Update 2: I found a workaround which is to synchronize MOC deallocating and saving. Please see the updated project. https://github.com/shuningzhou/MOCDeadLock.git Note: I made it fail more aggressively. Don't run it on a real device! Update: A sample project to demonstrate this issue. https://github.com/shuningzhou/MOCDeadLock.git XCode 6.2: Unable to reproduce. XCode 6.3: Reproducible. XCode 6.4 beta: Reproducible. ========================== The Issue =============================== Our app randomly stuck on OSSpinLockLockSlow after upgrading to XCode 6.3. In our project, we used NSOperation

WatchKit apps must have a deployment target equal to iOS 8.2 (was 8.3)?

二次信任 提交于 2019-11-27 19:34:19
I just downloaded Xcode 6.3 beta 4, and my WatchKit app now fails to build with an error: Embedded Binary Validation Utility Error error: WatchKit apps must have a deployment target equal to iOS 8.2 (was 8.3) The iOS app and the project actually have a deployment target of 7.1 and always have, but we've been working with the iOS 8.3 SDK for our WatchKit component (using Swift 1.2) without issue using Xcode 6.3 beta 1, 2 and 3. This error only arose with Xcode 6.3 beta 4. Anyone else have this error, and know how to fix it? Select your project settings and go to "TARGETS". Click on your Watch

Objective-C method conflicts with optional requirement method Swift

徘徊边缘 提交于 2019-11-27 10:17:25
问题 After the Xcode update, the compiler began to throw an error on the working code (both functions are in the AppDelegate.swift). func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: NSDictionary?) -> Bool { FBLoginView.self FBProfilePictureView.self return true } With error: /Users/../AppDelegate.swift:14:11: Objective-C method 'application:didFinishLaunchingWithOptions:' provided by method 'application( :didFinishLaunchingWithOptions:)' conflicts with

Xcode 6.3 freezes/hangs after opening XIB file

核能气质少年 提交于 2019-11-27 09:17:05
问题 After upgrading to Xcode 6.3 (release version), Xcode now freeze every time I open a XIB/Storyboard file that includes an IB_DESIGNABLE view that uses a custom font for any projects and includes a custom font (not necessarily to have reference to that font in that XIB/Storyboard). The freeze occurs after opening the .xib file and then attempting to switch to any other file. Xcode hangs and must be force quit. I have opened a bug report with Apple. (Bug 20483867). Right now, I have two work

Cannot subscript a value of [AnyObject]? with an index of type Int

自古美人都是妖i 提交于 2019-11-27 06:35:02
问题 This is in a class extending PFQueryTableViewController and I am getting the following error. The rows will be PFUser only. Why am I not able to cast it? Is there a way around this? The error is: Cannot subscript a value of [AnyObject]? with an index of type Int ...for this line: var user2 = self.objects[indexPath.row] as! PFUser 回答1: The problem isn't the cast, but the fact that self.objects seems to be an optional array: [AnyObject]? . Therefore, if you want to access one of its values via

Build error when trying to override an initializer in Xcode 6.3 Beta 3

放肆的年华 提交于 2019-11-26 23:07:32
问题 The following code shows build error in Xcode 6.3 Beta 3 . The code works in Xcode 6.2 and Xcode 6.3 Beta 2. class MyView: UIView { override init() { super.init() // Some init logic ... } override init(frame: CGRect) { super.init(frame: frame) } required init(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } } Error message initializer does not override a designated initializer from its superclass Workaround? There is a possible workaround of creating a protocol

Application sticks on OSSpinLockLockSlow

爷,独闯天下 提交于 2019-11-26 20:07:10
问题 Update 2: I found a workaround which is to synchronize MOC deallocating and saving. Please see the updated project. https://github.com/shuningzhou/MOCDeadLock.git Note: I made it fail more aggressively. Don't run it on a real device! Update: A sample project to demonstrate this issue. https://github.com/shuningzhou/MOCDeadLock.git XCode 6.2: Unable to reproduce. XCode 6.3: Reproducible. XCode 6.4 beta: Reproducible. ========================== The Issue =============================== Our app

WatchKit apps must have a deployment target equal to iOS 8.2 (was 8.3)?

家住魔仙堡 提交于 2019-11-26 19:58:18
问题 I just downloaded Xcode 6.3 beta 4, and my WatchKit app now fails to build with an error: Embedded Binary Validation Utility Error error: WatchKit apps must have a deployment target equal to iOS 8.2 (was 8.3) The iOS app and the project actually have a deployment target of 7.1 and always have, but we've been working with the iOS 8.3 SDK for our WatchKit component (using Swift 1.2) without issue using Xcode 6.3 beta 1, 2 and 3. This error only arose with Xcode 6.3 beta 4. Anyone else have this

String length in Swift 1.2 and Swift 2.0 [duplicate]

北战南征 提交于 2019-11-26 09:33:04
问题 This question already has answers here : Get the length of a String (41 answers) Closed 3 years ago . In the previous version of Swift, I had the following code. func myfunc(mystr: String) { if mystr.utf16Count >= 3 { With the latest release of Swift 1.2, I now get the following error. \'utf16Count\' is unavailable: Take the count of a UTF-16 view instead, i.e. count(str.utf16) Ok, so I change my code as follows. func myfunc(mystr: String) { if count(mystr.utf16) >= 3 { But that doesn\'t work