简体   繁体   中英

Terminal Command build xcode project for 64 bit with all other also

I am using below command :

xcodebuild -project $PROJECT_NAME.xcodeproj -scheme $PROJECT_NAME -sdk iphonesimulator -configuration Debug
xcodebuild -project $PROJECT_NAME.xcodeproj -scheme $PROJECT_NAME -sdk iphoneos -configuration Debug

for building the application it's working but I need to build our application with iphone/ipad retina 64 bit but it' not working.

for combining

lipo -create "${WS_DIR}/Build/Debug-iphoneos/libRPCCore.a" "${WS_DIR}/Build/Debug-iphonesimulator/libCore.a" -output "${WS_DIR}/Build/RPCLib/libCore.a" 

I am not able to build the application for ipad/ipahone retina 64 bit application using terminal command. please help to create the build script.

I suspect this is because you have Build Active Architecture Only set for Debug mode, which is the default setting I believe. This is because there is no need to build for all architectures during debugging as the build is expected to run only on the device being used for debugging.

This is normally turned off for release and you can test this from the command line by using -configuration Release .

BTW I don't believe you need to specify the -sdk option to xcodebuild as the build settings should have that covered.

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