火車的例子出現以下的錯誤

來源:互聯網
上載者:User

火車的例子出現以下的錯誤:

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.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.