xcode7-beta2

Cannot use unarchiveFromFile to set GameScene in SpriteKit

走远了吗. 提交于 2019-12-02 13:19:36
I'm using Xcode 7 beta 2 and following raywenderlich.com's Breakout tutorial to learn SpriteKit. Here's the error I get when I try to load GameScene using unarchiveFromFile. GameScene.type does not have a member named unarchiveFromFile. Here's the code: func didBeginContact(contact: SKPhysicsContact) { // 1. Create local variables for two physics bodies var firstBody: SKPhysicsBody var secondBody: SKPhysicsBody // 2. Assign the two physics bodies so that the one with the lower category is always stored in firstBody if contact.bodyA.categoryBitMask < contact.bodyB.categoryBitMask { firstBody =

Unsupported compiler 'com.apple.compilers.llvm.clang.1_0' selected for architecture 'x86_64' on Xcode 7 Beta 2

纵然是瞬间 提交于 2019-12-01 18:33:11
When I incorporated a popular OAuth2 library in iOS called OAuth2Client to my iOS app which is developed on Xcode 7 Beta 2 and then tried running the simulator, the following error occurred and the simulator didn't launch. Unsupported compiler 'com.apple.compilers.llvm.clang.1_0' selected for architecture 'x86_64' What does this error mean? A lot of warnings (yellow triangle) followed with the error above (red octagon), such as: warning: no rule to process file '/Users/myUsername/myAppname/Pods/NXOAuth2Client/Sources/NSData+NXOAuth2.m' of type sourcecode.c.objc for architecture x86_64 How can

Error: Use of unresolved identifier 'kCGBlendModeMultiply'

假如想象 提交于 2019-12-01 14:29:01
问题 I recently updated to Xcode 7, beta 3. And I've run into some issues, I can't seem to find any questions for on SO. When I run my application, i get 3 errors: Use of unresolved identifier 'kCGBlendModeMultiply' Use of unresolved identifier 'kCGLineCapRound' Use of unresolved identifier 'kCGLineJoinMiter' However the 2 latter ones, disappear, although I assume they will show up after the first one is fixed (hence why I included it in this question). I didn't see anything in the release notes

“no such module” on Xcode 7 beta 2

半世苍凉 提交于 2019-11-29 01:33:28
I saw this question , but I am still unable to import a framework and use it inside Xcode 7 beta 2 (7A121l). So currently I am trying to use Result , via carthage. After adding it to Build Phases/ Link Binary with Binaries and Embed Frameworks I am able to compile successfully, but I get an error stating (yes it says success and then error :S): No such module 'Result' On the import: import Result func serverRequest() -> Result<String, NSError> { ... } The build is able to Run and Compile, but I am not able to cmd+click on Result, for example. Edit 1: On Xcode 6.3.2 it works as expected. Edit 2

Delay/Wait in a test case of Xcode UI testing

浪子不回头ぞ 提交于 2019-11-28 02:49:21
I am trying to write a test case using the new UI Testing available in Xcode 7 beta 2. The App has a login screen where it makes a call to the server to login. There is a delay associated with this as it is an asynchronous operation. Is there a way to cause a delay or wait mechanism in the XCTestCase before proceeding to further steps? There is no proper documentation available and I went through the Header files of the classes. Was not able to find anything related to this. Any ideas/suggestions? Asynchronous UI Testing was introduced in Xcode 7 Beta 4. To wait for a label with the text

“no such module” on Xcode 7 beta 2

余生颓废 提交于 2019-11-27 16:03:47
问题 I saw this question, but I am still unable to import a framework and use it inside Xcode 7 beta 2 (7A121l). So currently I am trying to use Result, via carthage. After adding it to Build Phases/ Link Binary with Binaries and Embed Frameworks I am able to compile successfully, but I get an error stating (yes it says success and then error :S): No such module 'Result' On the import: import Result func serverRequest() -> Result<String, NSError> { ... } The build is able to Run and Compile, but I

ld: framework not found Parse Xcode 7 beta

笑着哭i 提交于 2019-11-27 12:45:41
I succeed to install and use Parse framework with my new project, but I can't with a "template project". The template is just a Slide Menu from Appcoda You can download the project here . I have this error : ld: framework not found Parse clang: error: linker command failed with exit code 1 (use -v to see invocation) And the same for Bolts. I don't understand what the problem is, the initial project is just some View Controllers... When I write the code "import Parse", the error message is : No such module 'Parse' I tried to drag and drop the frameworks, and also to add the frameworks in "Link

Swift debugger does not show variable values when importing ObjC framework

ε祈祈猫儿з 提交于 2019-11-27 12:02:29
When I create a new OS X "Game" project with Sprite Kit, and set a breakpoint anywhere I can see the variable values just fine: Then I change the code to import my own framework (TilemapKit) which is a pure Objective-C framework: import SpriteKit import TilemapKit class GameScene: SKScene { override func didMoveToView(view: SKView) { print("dang!") } } No other changes made. I'm not even using any of the TilemapKit code (yet). When the breakpoint triggers, I see this: The entire project stops being debuggable as far as observing variable values goes. This behavior is perfectly consistent.

How can I run the iOS 7.1 Simulator in Xcode 7.0 beta 2?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-27 03:18:38
I have installed latest Xcode 7 beta 2 version, when I am trying to run the application in iOS 7.1 Simulator its giving this error message: The iOS 7.1 simulator runtime is not available. Unable to open liblaunch_sim.dylib. Try reinstalling Xcode or the simulator runtime. Could you please let me know how to resolve this error? You can't (At least in an Official way). Taken from Xcode Beta 2 Documentation (Page 7). Hope it helps. EDIT SEPT - 2015: Thanks Cœur for the info, now you can use previous versions of ios simulator. Took a lot of browsing but I finally found a solution that worked for

Delay/Wait in a test case of Xcode UI testing

ⅰ亾dé卋堺 提交于 2019-11-26 23:49:59
问题 I am trying to write a test case using the new UI Testing available in Xcode 7 beta 2. The App has a login screen where it makes a call to the server to login. There is a delay associated with this as it is an asynchronous operation. Is there a way to cause a delay or wait mechanism in the XCTestCase before proceeding to further steps? There is no proper documentation available and I went through the Header files of the classes. Was not able to find anything related to this. Any ideas