iPhone library: file is not of required architecture

前端 未结 3 1151
囚心锁ツ
囚心锁ツ 2021-01-22 14:43

I have searched for hours however I still have no clue what is wrong with my configuration. My project uses a self-written libray (myLib). This library is compiled to work

3条回答
  •  清歌不尽
    2021-01-22 14:55

    I've met the same problem too. But seems you don't need to drag two .a files into the app project to solve this problem. This is what I did:

    1. Drag the static library project into app project's framework group
    2. "Get Info" for the target in app project
    3. Set the direct dependency of static library
    4. Make clean all unnecessary builds(for example the simulator build) in the static library project
    5. Build in the app project

提交回复
热议问题