xcode7-beta3

Using Xcode Playground captureValue()

被刻印的时光 ゝ 提交于 2019-12-24 01:16:51
问题 I'm using Playgrounds in Xcode 7.1 (beta 3) but having trouble with the captureValue() function: captureValue:withIdentifier: Captures a value to be displayed with the specified identifier in the timeline. Declaration public func captureValue(value: T, withIdentifier identifier: String) — Apple Developer Site When I call the function, all I get is this: How do I use captureValue? Or is this a bug in beta 3? 回答1: captureValue() displays the value you capture in the Timeline, which is a

Xcode 7 Err “Editor placeholder in source code”

僤鯓⒐⒋嵵緔 提交于 2019-12-23 07:58:11
问题 I have just started trying to learn Swift, but one error keeps cropping up time and again and I can not find out why - "Editor placeholder in source code". What could be causing this (I am unable to post a picture of the code as I am a new member). Thanks 回答1: It happened to me just now, but the reason was pretty straightforward once I looked at the code. I was using the autofill class as the param for a function. Ergot "place holder" //Leaving the auto-completed signature gave the error

Attempting to run multiple tests using Xcode's new UI testing fails

六眼飞鱼酱① 提交于 2019-12-22 10:17:35
问题 When I try to run multiple UI tests at the same time in the new Xcode beta, it fails after the first test, with the error "UI Testing Failure: App state is still not terminated" for each test after the first. Anyone got a fix for this? 回答1: I have faced the same issue. It seems that, at least in my case, application had never been terminated. I solved it by putting the following statement in the setUp() method: continueAfterFailure = false This should stop a running test process after first

Building a Swift Framework with Xcode 7 (Beta 3) to use as an Embedded Binary

半城伤御伤魂 提交于 2019-12-21 00:46:28
问题 Ever since Embedded Binaries were introduced in iOS 8, I have been wanting to port a lot of my common code into frameworks. I decided to wait one year before doing it and this year, with Xcode 7 Beta and iOS 9, I'm starting to do that just that. I have started a Cocoa Touch framework project in Xcode 7 and I want to compile it into a usable framework. I can get it to compile my project into a .framework, but there's a few issues; namely, the framework doesn't appear to be importable into new

Integer overflow gives EXC_BAD_INSTRUCTION in Swift

╄→гoц情女王★ 提交于 2019-12-19 18:39:31
问题 While messing around with Swift, I noticed that when the 64 bit integer overflows, I get the following error: file:///Users/user/Documents/playground/MyPlayground.playground/: error: Playground execution aborted: Execution was interrupted, reason: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0). func fibonacci(which: Int) -> (fibOf: Int, isEqualTo: Int) { var i = 1, j = 1 for var k = 2; k < which; k += 1 { let tmp = i + j // this line is highlighted when error occurs j = i i = tmp }

Xcode 7 beta 3 Storyboard bug

混江龙づ霸主 提交于 2019-12-12 03:18:41
问题 I am attempting to make an app without using StoryBoard. I am instantiating my root view controller from the AppDelegate When I run my app I get the following SIGABRT. *** Assertion failure in -[UIStoryboard initWithBundle:storyboardFileName:identifierToNibNameMap:identifierToExternalStoryboardReferenceMap:designatedEntryPointIdentifier:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3486.4/UIStoryboard.m:63 2015-07-26 18:42:54.204 NarwhalFeed[3783:2840317] *** Terminating

Xcode 7.0 Beta fails to launch a watchOS 2 App on Apple Watch

依然范特西╮ 提交于 2019-12-07 03:58:47
问题 Tried a public sample code project and my own project. Observe no problem with watchOS 1. watchOS 2 App installs and operates successfully on the real Apple Watch and the simulator, but it won't support the debug mode launching the app on the device by Xcode. Tried to allow the system to create the Provisioning files and manually create the Provisioning files for the development mode. Test on 10.10, 10.11. Steps to Reproduce: Set up the Provisioning files on build settings, watchOS 2

How to use xcodebuild in Xcode 7 with a watch extension

我与影子孤独终老i 提交于 2019-12-06 00:36:34
问题 Our command used to be like this xcodebuild -configuration Release -target "xxx" -sdk iphoneos9.0 -scheme "xxx" archive Now in Xcode 7, we get this error: Build settings from command line: SDKROOT = iphoneos9.0 === BUILD TARGET xxx WatchKit Extension OF PROJECT Mobile WITH CONFIGURATION Release === Check dependencies target specifies product type 'com.apple.product-type.watchkit2-extension', but there's no such product type for the 'iphoneos' platform How do we specify to use iOS 9.0 SDK and

Attempting to run multiple tests using Xcode's new UI testing fails

本秂侑毒 提交于 2019-12-05 19:18:10
When I try to run multiple UI tests at the same time in the new Xcode beta, it fails after the first test, with the error "UI Testing Failure: App state is still not terminated" for each test after the first. Anyone got a fix for this? I have faced the same issue. It seems that, at least in my case, application had never been terminated. I solved it by putting the following statement in the setUp() method: continueAfterFailure = false This should stop a running test process after first failure. I cannot post a comment, so I will try to answer your question while getting some clarification. I

Xcode 7.0 Beta fails to launch a watchOS 2 App on Apple Watch

人盡茶涼 提交于 2019-12-05 08:01:45
Tried a public sample code project and my own project. Observe no problem with watchOS 1. watchOS 2 App installs and operates successfully on the real Apple Watch and the simulator, but it won't support the debug mode launching the app on the device by Xcode. Tried to allow the system to create the Provisioning files and manually create the Provisioning files for the development mode. Test on 10.10, 10.11. Steps to Reproduce: Set up the Provisioning files on build settings, watchOS 2 environment and etc. Go to the scheme on the left top of the Xcode 7.0 beta and choose the iPhone and Apple