Xcode: xxx.app depends on itself.this target might include its own product.

错误代码:

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: xxx.app depends on itself.this target might include its own product._第1张图片

Xcode: xxx.app depends on itself.this target might include its own product._第2张图片


来自-How to fix XCode 4 error: app depends on itself.

你可能感兴趣的:(xcode)