简体   繁体   中英

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 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!

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM