开发者

Build Static Library in XCode 4 for iPhone Simulator

开发者 https://www.devze.com 2023-04-13 02:05 出处:网络
I can build a static library in XCode 4 using the iOS Device scheme but not the iPhone Simulator scheme. It says \"Build succeeded\" but I do not see the requisite .a file magically a开发者_如何学运维

I can build a static library in XCode 4 using the iOS Device scheme but not the iPhone Simulator scheme. It says "Build succeeded" but I do not see the requisite .a file magically a开发者_如何学运维ppear under Products. If I choose the iOS Device scheme I see the .a file. I know I'm missing something obvious here, please help!


Check your build directory, if there's a *.a file in Release-iphonesimulator and Release-iphoneos then everything should be fine. But do you really need to use separate schemes? Here's very good guide to static libraries on Xcode 4. This guide describes how to make libraries universal, so *.a files for simulator and device are merged into one single file.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号