Which is the cause for dyld`dyld_fatal_error, a incompatible api on iOS?

前端 未结 7 989
北恋
北恋 2021-01-07 20:21

I\'m moving part of my projects to iOS 5 / ARC. One of the oldest project (iOS 4.2, armv6 for support iPod Touch 2g) is giving to me:

dyld`dyld_fatal_error:
         


        
7条回答
  •  南笙
    南笙 (楼主)
    2021-01-07 20:57

    It looks like your main target is linking to XCTest.framework but failed.

    1) Go to Project settings -> 2) Go to your apps main target -> other linker flags 3) remove '-framework XCTest' 4) make sure the 'other linker flags' field for your test target still contains '-framework XCTest'

    2) check Images.xcassets, and other resources, in file inspector (right panel), look at 'target membership', check if you select the Tests target.

    3) try search XCTest in your project and see what you have set.

    OR

    Try to remove Tests

提交回复
热议问题