iOS .a文件生成指令

xcodebuild clean -project bluetooth.xcodeproj
xcodebuild -configuration Release -sdk iphonesimulator -arch i386 -project bluetooth.xcodeproj
mv build/Release-iphonesimulator/libbluetooth.a my/libbluetooth_i386.a

xcodebuild clean -project bluetooth.xcodeproj
xcodebuild -configuration Release -sdk iphonesimulator -arch x86_64 -project bluetooth.xcodeproj
mv build/Release-iphonesimulator/libbluetooth.a my/libbluetooth_x86_64.a

xcodebuild clean -project bluetooth.xcodeproj
xcodebuild -configuration Release -sdk iphoneos -arch armv7 -project bluetooth.xcodeproj
mv build/Release-iphoneos/libbluetooth.a my/libbluetooth_armv7.a

xcodebuild clean -project bluetooth.xcodeproj
xcodebuild -configuration Release -sdk iphoneos -arch armv7s -project bluetooth.xcodeproj
mv build/Release-iphoneos/libbluetooth.a my/libbluetooth_armv7s.a

xcodebuild clean -project bluetooth.xcodeproj
xcodebuild -configuration Release -sdk iphoneos -arch arm64 -project bluetooth.xcodeproj
mv build/Release-iphoneos/libbluetooth.a my/libbluetooth_arm64.a

lipo -create my/libbluetooth_arm64.a my/libbluetooth_armv7.a my/libbluetooth_armv7s.a my/libbluetooth_x86_64.a -output my/libbluetooth.a

1
欢迎留言

avatar
1 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
1 Comment authors
yuanbo Recent comment authors
  Subscribe  
newest oldest most voted
Notify of