Build Static Library in XCode 4 for iPhone Simulator
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.
精彩评论