can't link with a main executable file

后端 未结 4 1514
忘了有多久
忘了有多久 2020-12-13 20:20

Changed my deployment target to from 8.0 to 7.0.

Using Xcode 6 with latest iOS8 as base sdk. Getting this error when building for iOS7.1 device:

ld: can\'t l

相关标签:
4条回答
  • 2020-12-13 20:33

    I had a mismatch in values between on "Build Active Architecture Only" which was "Yes" for my test app, but "No" for my unit test target. Make sure these values are identical.

    0 讨论(0)
  • 2020-12-13 20:33

    I followed steps provided by "Evgeny" above, but my project build only when I unchecked "Allow testing Host Application APIs". Thanks "Evgeny"!

    0 讨论(0)
  • 2020-12-13 20:48
    1. Click your project in Navigator.
    2. Select your test target. Switch to general tab if not there.
    3. Select your application name from Host Application dropdown.

    enter image description here

    0 讨论(0)
  • 2020-12-13 20:58

    Build settings > IOS deployment target Make sure these values are identical in app and test app targets. Works for me. screen here

    0 讨论(0)
提交回复
热议问题