“File not found”, “linker command failed with exit code 1” in Xcode 4.5.1

后端 未结 10 1656
-上瘾入骨i
-上瘾入骨i 2020-12-08 02:25

Am developing an existing iOS application and I have to write unit test cases for this project. It is building and running in Simulator 6.0. Whenever I try to test t

10条回答
  •  没有蜡笔的小新
    2020-12-08 03:09

    You must have changed your product name. Due to mis-match of your workspace name and product(application)name this error occurs.

    You just need to replace the workspace name to product(application) name in the TEST HOST Build settings of the ProjectName-Tests targe as stated in the image. To catch up that, select to ProjectName-Tests target, select Build Settings, search for the Test Host term.

    enter image description here

    This is the standard configuration solution for this error.

    Cheers!!

提交回复
热议问题