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

后端 未结 10 1623
-上瘾入骨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条回答
  •  萌比男神i
    2020-12-08 03:13

    ARGH! This is a terribly frustrating issue that came out of the blue from my XCode 8.2

    In my case it came down to removing my Tests target from the scheme, building and running the main app, then readding the Tests target to the 'Test' section.

    It appears that the Tests target was trying to find something it wanted in the Derived Data which wasn't built yet. Running the app without trying to build tests too allowed the previously missing derived data to be prepared.

    ...Insanity is doing the same thing in XCode twice and expecting the same result :|

提交回复
热议问题