Recently continue to improve the application of automatic generation system, Android app auto-generated has been working very well, began to implement the automated iOS app generation, after StackOverflow and other continuous search and experiment, and finally successfully implemented in the command line implementation of the iOS app compiled, compressed, Signature and other generation Enterprise Inhouse application process, compare deceptive is the last line of command can achieve the effect of compression application, do not need to xcodebuild exportarchive command everywhere compressed application, this is a foreign blog to see. The key commands are as follows:
Xcodebuild-project "Salesapp.xcodeproj" -target "SalesApp" -configuration "Release adhoc" Cleanxcodebuild- Project SALESAPP.XCODEPROJ-SDK Iphoneos -scheme "SalesApp"-configuration "Release adhoc" Configuration_build_dir = "Xxxxxx/build" xcrun-sdk iphoneos packageapplication-v "Xxxxx/salesapp.app"-o "Xxxxx/salesapp-release.ipa"--sign " IPhone distribution:xxxxx. " --embed "Xxxx.mobileprovision"
This can be compiled into a signed application for Enterprise Publishing, and then follow the template to generate plist files, put on the HTTPS server, on the iphone or ipad through the Safari browser access to the address below can install the app.
Itms-services://?action=download-manifest&url=https://www.xxx.com/xxx.plist
Xcodebuild command-line compilation packaged iOS apps and enterprise releases