How do I link third party libraries like fftw3 and sndfile to an iPhone project in Xcode?

前端 未结 9 1342
情歌与酒
情歌与酒 2020-12-09 07:08

I\'m trying to link third party libraries like fftw3 and sndfile to my iPhone project in Xcode3.2. I got it working in a regular Mac project by setting the \"Header Search P

9条回答
  •  情深已故
    2020-12-09 07:42

    It's not that Apple isn't allowing the library, it's that the version you are linking to is x86, and so it won't run on the iPhone. You need to build the library using the iPhone SDK, then link to that version.

    Alternatively, you can be a little naughty and include the 3rd-party source in your main project. Naughty, but it'll prove the point that Apple isn't stopping you, and show whether the library will run on the phone OK.

    It's cleaner to keep the code in a separately-built library project though.

提交回复
热议问题