错误代码:
xxx depends on itself.this target might include its own product.
编译环境:xcode 4.5 mac os 10.8.0
解决方法:
1.在targets->build phases->Copy Bundle Resources,删除xx.app 参考
2.在Products选中xx.app,在右侧的属性窗口,找到Target Membership,取消勾选xx.app。
如下图所示:
本文介绍了解决Xcode中出现的“app dependsonitself”错误的方法。主要步骤包括:从Build Phases中移除不必要的复制操作,并调整Product的TargetMembership设置。
错误代码:
xxx depends on itself.this target might include its own product.
编译环境:xcode 4.5 mac os 10.8.0
解决方法:
1.在targets->build phases->Copy Bundle Resources,删除xx.app 参考
2.在Products选中xx.app,在右侧的属性窗口,找到Target Membership,取消勾选xx.app。
如下图所示:

被折叠的 条评论
为什么被折叠?