Reputation: 10575
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 appear under Products. If I choose the iOS Device scheme I see the .a file. I know I'm missing something obvious here, please help!
Upvotes: 8
Views: 8872
Reputation: 5539
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.
Upvotes: 8