xcode 4 fails to initiate unit tests (with linker error) after I created a new scheme

前端 未结 6 1869
星月不相逢
星月不相逢 2020-12-23 20:06

My unit tests worked fine in xcode4 until I had to create a new schema to compile a package to run on my device for testing.

All I did was creating a new Target an

6条回答
  •  情话喂你
    2020-12-23 20:43

    Like @Haoest and @Peter DeWeese above's comments to Answer 1 - I had exactly the same problem when I changed the product name.

    To fix this for the case where you've renamed the product, you need to go to the Build Settings tab of the test target, and change the Linking section - the Debug and Release bundle loader settings. If you have renamed the product - the directory and name of the application may both be incorrect.

    Thanks to both of them for pointing this out - but I thought this alternative fix for this situation deserved a higher profile than a comment.

提交回复
热议问题