Test bundle could not be loaded because an unanticipated error

后端 未结 10 1625
盖世英雄少女心
盖世英雄少女心 2020-12-31 00:57

Recently I have started writing test case for one old static library. I have loaded the library to Xcode 5,Since Static Library is old , I have to manually add TestProject w

10条回答
  •  梦谈多话
    2020-12-31 01:40

    I found the answer by myself.

    Your Build Settings -> Architectures should be same for Library and Test Project

    Architectures -> Architectures = Standrad Architectures (armv7 ,armv7s , arm64)$(ARCHS_STANDARD)

    Your Test Project's Linking -> Mach-O Type should be Bundle

    Linking -> Mach-O Type = Bundle

    Do Build and Run Tests. Thats it

提交回复
热议问题