Build and archive your xcode project from command line, upload to testflight and notify your team members after finishing.
###HOWTO
-
First of all, configure the Certificate and Provisioning Profile on the http://developer.apple.com
- Open http://developer.apple.com, and login in. You will see:
- Create a developer certificate yourself. Here is the tutorials of Apple.
- Add your device into the device list on this page. Just need your UDID.
- Create a development Provisioning Profile that includes your device you just added. Tutorials.
- Open http://developer.apple.com, and login in. You will see:
-
Secondly, configure the Code Signing of Xcode
-
Finally, configure the script, autobuild-upload-testflight.sh. Fill in the blank.
- PROJDIR: where's your PROJECT.xcodeproj located. Like "/Users/hello/github/momo/"
- PROJECT_NAME: like momo
- PRODUCT_NAME: maybe the same as PROJECT_NAME.
- API_TOKEN: Find your API_TOKEN at: https://testflightapp.com/account/
- TEAM_TOKEN: Find your TEAM_TOKEN at: https://testflightapp.com/dashboard/team/edit/
- SIGNING_IDENTITY: For me, it's "iPhone Developer: Zhanchong Chen (HFUR8JNMN3)"
- PROVISIONING_PROFILE: Find your xxx.mobileprovision here: ${HOME}/Library/MobileDevice/Provisioning Profiles/
- DISTRIBUTION_LISTS: Find the answer here: http://help.testflightapp.com/customer/portal/articles/890615-what-are-distribution-list-and-how-do-i-use-them-
-
All done. Try executing the script. If you encounter some errors, please let me know, I will fix it.