xcode8-beta3

Cannot extract xcode 8 beta 3

天涯浪子 提交于 2020-12-29 14:16:34
问题 I have downloaded it 3 times. Twice in safari and once in chrome. Every time I cannot unarchive it with the default tool, or with Unarchiver. Based on this apple developer thread I tried: $ xar -xf Xcode_8_beta_3\ \(1\).xip Error while extracting archive:(Content): archived-checksum sha1's do not match (No such file or directory) Then: $ cpio -it < Xcode_8_beta_3\ \(1\).xip Content cpio: Truncated input file (needed 4433260676 bytes, only 4433260317 available): Unknown error: -1 I have 25

Cannot extract xcode 8 beta 3

雨燕双飞 提交于 2020-12-29 14:08:52
问题 I have downloaded it 3 times. Twice in safari and once in chrome. Every time I cannot unarchive it with the default tool, or with Unarchiver. Based on this apple developer thread I tried: $ xar -xf Xcode_8_beta_3\ \(1\).xip Error while extracting archive:(Content): archived-checksum sha1's do not match (No such file or directory) Then: $ cpio -it < Xcode_8_beta_3\ \(1\).xip Content cpio: Truncated input file (needed 4433260676 bytes, only 4433260317 available): Unknown error: -1 I have 25

Timer.scheduledTimer swift 3 pre iOS 10 compatibility

点点圈 提交于 2019-11-27 02:37:57
问题 I need to schedule a Timer for firing a function every second but I see that in xcode 8 beta 3 the scheduledTimer is only available for iOS 10. Is there any alternative for using the timer in iOS 9 or previous versions? Timer.scheduledTimer(withTimeInterval: 1, repeats: true, block: { (timer) in print("Hi!")}) 回答1: Solved using Timer.scheduledTimer(timeInterval: 1, target: self, selector: #selector(self.updateTime), userInfo: nil, repeats: true) 回答2: Run a timer with swift3, var timer: Timer?

Xcode 8 Beta 3 Use Legacy Swift issue

☆樱花仙子☆ 提交于 2019-11-26 02:41:27
问题 I have an Objective-C project in Xcode 8 Beta 3. Since updating, whenever I try to build I receive the following error: “Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly. Has anyone encountered this? Since it\'s an Objective-C project there\'s no build setting to