在Mac终端输入 以下命令
./configure -prefix=/Users/XXX/Desktop/speexLibrary/libogg-1.3.0/i386 -host=i386-apple-darwin -build=x86_64-apple-darwin15.0.0 CC="/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -std=c99 -arch i386 -isysroot
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/"
修改CC后的内容可以生成不同架构的.a文件
编译器位置: xcodebuild -find clang
安装Xcode命令行工具 xcode-select --install