Sprite Kit OSX未加载飞船的启动代码 [英] Sprite Kit OSX not loading start up code for spaceship

查看:53
本文介绍了Sprite Kit OSX未加载飞船的启动代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

10.8.5 OSX

10.8.5 OSX

当您在Xcode 5.0.2(5A3005)中打开Sprite Kit的新模板时,我正在尝试运行基本的启动代码,但是它总是失败.我没有做任何更改基本模板中的代码的操作,只是试图让飞船出现在鼠标单击上.错误消息如下:

I am trying to run the basic start up code when you open up a new template for Sprite Kit in Xcode 5.0.2 (5A3005) but it always fails. I have done nothing to alter the code from the basic template and am just trying to get the spaceship to appear on the mouse click. The error message is as follows:

dyld`dyld_fatal_error:
0x7fff5fc0109c:  int3   
0x7fff5fc0109d:  nop

将其显示在我的NSLog信息的底部:

With this at the bottom where my NSLog information would appear:

dyld:未加载库:/System/Library/Frameworks/SpriteKit.framework/Versions/A/SpriteKit
引用自:/用户/布莱恩/图书馆/开发人员/Xcode/DerivedData/whynowork-hkyspuztyxslqletymjtomumimaq/构建/产品/调试/whynowork.app/Contents/MacOS/whynowork原因:找不到图片(lldb)

dyld: Library not loaded: /System/Library/Frameworks/SpriteKit.framework/Versions/A/SpriteKit
Referenced from: /Users/Brian/Library/Developer/Xcode/DerivedData/whynowork-hkyspuztyxslqletymjtomumimaq/Build/Products/Debug/whynowork.app/Contents/MacOS/whynowork Reason: image not found (lldb)

运行Xcode并选择它作为iOS的Sprite Kit模板运行良好,所以我想知道将Xcode选作OSX有什么区别.是否没有合适的开发商许可证?我想创建一个可以在OSX上使用控制器输入的简单游戏,而不是iOS的触摸屏游戏.如果措词不正确或在错误的网站上,我谨此致歉.谢谢!

Running Xcode with it selected as a Sprite Kit template for iOS runs fine, so I am wondering what is the difference with it being selected as OSX. Is it a possibility of not having the right developer's license? I want to create a simple game that I can work with controller input on OSX, not a touch screen game for iOS. I apologize in advance if this is not worded correctly or on the wrong site. Thanks!

推荐答案

SpriteKit仅从OS X 10.9开始可用.由于您使用的是10.8,因此在启动时,您的应用程序将尝试找到SpriteKit框架,但无法找到它,因此为什么它在dyld(动态链接器)中崩溃.

SpriteKit is only available starting from OS X 10.9. Since you are using 10.8, upon start, your application will try to find the SpriteKit framework but is unable to, hence why it crashes in dyld (the dynamic linker).

这篇关于Sprite Kit OSX未加载飞船的启动代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆