Xcode 3.2.6:Cocos2d 框架的问题
我正在使用 XCode 3.2.6。我想让我的游戏适用于早期版本 3.1.3,但是当我在 Xcode 中构建项目时,我收到以下错误:
File /Users/.../build/Debug-iphoneos/libcocos2d libraries.a depends on itself. This target might include its own product.
这是唯一的错误。这个错误是什么意思?这里有什么问题?
I'm using XCode 3.2.6. I'd like to make my game work for earlier version 3.1.3 but when I build the Project in Xcode, I'm getting the following error:
File /Users/.../build/Debug-iphoneos/libcocos2d libraries.a depends on itself. This target might include its own product.
And it's the only error. What's the meaning of this error? What's the issue here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于某种原因,你的 Cocos2d 库依赖于它自己。打开 Cocos2d 库目标的属性(右键单击 ->“获取信息”)并查看常规选项卡。有一个名为“DirectDependency”的列表。从该列表中删除 cocos2d 库。
另一个可能发生直接依赖的地方是 Cocos2d 库产品。打开 Cocos2d 库产品的属性(这次是在“产品”下,而不是在“目标”下)。打开目标选项卡并查看目标。如果将 cocos2d 库选中为目标,请取消选中它。
For some reason your Cocos2d library depends on itself. Open the properties for your Cocos2d library target (right click -> "Get Info") and look at the general tab. There's a list called "DirectDependencies". Remove the cocos2d library from that list.
Another place where a direct dependency could occur is the Cocos2d library product. Open the properties for your Cocos2d library product (this time under "Products" not under "Targets"). Open the targets tab and look at the targets. If the cocos2d library is checked as target, uncheck it.