iPhone library: file is not of required architecture

前端 未结 3 1192
囚心锁ツ
囚心锁ツ 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 15:07

    You need to compile your library for Intel so the Simulator can use it (which I gather you have done already), and then compile it for ARM, so it can run on the iPhone. Then you have to merge the two libraries. There are different ways to accomplish that, or make it more automatic.

    Here are some links to help you:

    http://blog.stormyprods.com/2008/11/using-static-libraries-with-iphone-sdk.html http://www.clintharris.net/2009/iphone-app-shared-libraries/

提交回复
热议问题