火车的例子出现以下的错误

火车的例子出现以下的错误:

File /Users/apple/Library/Developer/Xcode/DerivedData/TrainBusiness-efbqrqlukihelocfyoqtlvdfewze/Build/Products/Debug-iphonesimulator/TrainBusiness.app depends on itself.  This target might include its own product.

然后上网查找了有关的解决办法,如下:

up vote1down votefavorite

1

File .../FaceDeFace.app depends on itself.
This target might include its own product.

File .../FaceDeFace.app depends on itself.
This target might include its own product.

I have done my project in os Snow leopard but now my os version also changed and it is now 10.7.3. This is installed in my Imac machine. This app start first in MacBook but now I want to develop it in IMac. But the above error is shown so what i have to do. Though I have change all of my certificate, and all provisioning profiles newly. Please help. Thanks i advance.

Was this post useful to you?     

1 Answer

activeoldestvotes

up vote1down voteaccepted

Select the target in your Xcode project and click the Build Phases tab. Look at the Target Dependencies list; the target's product should not be listed there, but it sounds like it may have been added to that list by mistake. Also check the other areas in that same tab -- you don't want your product listed in Copy Bundle Resources or Link Binary With Libraries, either -- you obviously can't use the thing that you're building as a resource or library to build the product in the first place. That's what Xcode seems to be complaining about.

1

 

It works fine when i am deleting product.app from Copy Bundle resources under Targets->Build Phases->Copy Bundle Resources. Thanks for helping me. – 

答案!

I 'm not sure if this will solve the "....depends on itself. This target might include its own product." error for everyone or not, but for me I solved it by going to the Products folder of my project and then clicking command-I to get info. Then go to the Targets tab and make sure nothing is checked in the Target Memberships.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值