[16:40:40]: Login successful
[16:40:43]: Ready to upload new build to TestFlight (App: 917554930)...
[16:40:44]: Going to upload updated app to iTunes Connect
[16:40:44]: This might take a few minutes. Please don't interrupt the script.
[16:41:57]: [Transporter Warning Output]: Failed to obtain exclusive lock on token file. Please ensure the following file is not locked by another process: /Users/qianjianeng/.itmstransporter/UploadTokens/qianjianengMacBook-Pro.local_VN226642G5_917554930.itmsp.token
[16:41:57]: [Transporter Error Output]: Cannot proceed with delivery: an existing transporter instance is currently uploading this package
[16:41:57]: Transporter transfer failed.
[16:41:57]: Failed to obtain exclusive lock on token file. Please ensure the following file is not locked by another process: /Users/qianjianeng/.itmstransporter/UploadTokens/qianjianengMacBook-Pro.local_VN226642G5_917554930.itmsp.token
[16:41:57]: Cannot proceed with delivery: an existing transporter instance is currently uploading this package
[16:41:57]: Failed to obtain exclusive lock on token file. Please ensure the following file is not locked by another process: /Users/qianjianeng/.itmstransporter/UploadTokens/qianjianengMacBook-Pro.local_VN226642G5_917554930.itmsp.token
[16:41:57]: Cannot proceed with delivery: an existing transporter instance is currently uploading this package
Return status of iTunes Transporter was 1: Cannot proceed with delivery: an existing transporter instance is currently uploading this package
The call to the iTMSTransporter completed with a non-zero exit status: 1. This indicates a failure.
+--------------------+-----------------------------------------------------------------------------+
| Lane Context |
+--------------------+-----------------------------------------------------------------------------+
| DEFAULT_PLATFORM | ios |
| PLATFORM_NAME | ios |
| LANE_NAME | ios beta |
| BUILD_NUMBER | 2538 |
| IPA_OUTPUT_PATH | /Users/qianjianeng/Desktop/5miles/5miles-ios-client/Pinnacle.ipa |
| DSYM_OUTPUT_PATH | /Users/qianjianeng/Desktop/5miles/5miles-ios-client/Pinnacle.app.dSYM.zip |
| XCODEBUILD_ARCHIVE | /Users/qianjianeng/Library/Developer/Xcode/Archives/2017-05-17/Pinnacle ... |
+--------------------+-----------------------------------------------------------------------------+
[16:41:57]: Error uploading ipa file, for more information see above
+------+-------------------------------------+-------------+
| fastlane summary |
+------+-------------------------------------+-------------+
| Step | Action | Time (in s) |
+------+-------------------------------------+-------------+
| 1 | Verifying required fastlane version | 0 |
| 2 | default_platform | 0 |
| 3 | pod update | 49 |
| 4 | increment_build_number | 4 |
| 5 | gym | 266 |
| | pilot | 86 |
+------+-------------------------------------+-------------+
[16:41:57]: fastlane finished with errors
很奇怪,之前用传包一直没问题,突然就出这个错了,我去这个目录看了一下
/Users/qianjianeng/.itmstransporter/UploadTokens/qianjianengMacBook-Pro.local_VN226642G5_917554930.itmsp.token
看到有两个类似的文件,报错的原因是说这个文件被其他进程占用了。然后我用Xcode传了一下,发现也一样。
![Uploading Snip20170517_9_415638.png . . .]```
[16:40:40]: Login successful
[16:40:43]: Ready to upload new build to TestFlight (App: 917554930)...
[16:40:44]: Going to upload updated app to iTunes Connect
[16:40:44]: This might take a few minutes. Please don't interrupt the script.
[16:41:57]: [Transporter Warning Output]: Failed to obtain exclusive lock on token file. Please ensure the following file is not locked by another process: /Users/qianjianeng/.itmstransporter/UploadTokens/qianjianengMacBook-Pro.local_VN226642G5_917554930.itmsp.token
[16:41:57]: [Transporter Error Output]: Cannot proceed with delivery: an existing transporter instance is currently uploading this package
[16:41:57]: Transporter transfer failed.
[16:41:57]: Failed to obtain exclusive lock on token file. Please ensure the following file is not locked by another process: /Users/qianjianeng/.itmstransporter/UploadTokens/qianjianengMacBook-Pro.local_VN226642G5_917554930.itmsp.token
[16:41:57]: Cannot proceed with delivery: an existing transporter instance is currently uploading this package
[16:41:57]: Failed to obtain exclusive lock on token file. Please ensure the following file is not locked by another process: /Users/qianjianeng/.itmstransporter/UploadTokens/qianjianengMacBook-Pro.local_VN226642G5_917554930.itmsp.token
[16:41:57]: Cannot proceed with delivery: an existing transporter instance is currently uploading this package
Return status of iTunes Transporter was 1: Cannot proceed with delivery: an existing transporter instance is currently uploading this package
The call to the iTMSTransporter completed with a non-zero exit status: 1. This indicates a failure.
+--------------------+-----------------------------------------------------------------------------+
| Lane Context |
+--------------------+-----------------------------------------------------------------------------+
| DEFAULT_PLATFORM | ios |
| PLATFORM_NAME | ios |
| LANE_NAME | ios beta |
| BUILD_NUMBER | 2538 |
| IPA_OUTPUT_PATH | /Users/qianjianeng/Desktop/5miles/5miles-ios-client/Pinnacle.ipa |
| DSYM_OUTPUT_PATH | /Users/qianjianeng/Desktop/5miles/5miles-ios-client/Pinnacle.app.dSYM.zip |
| XCODEBUILD_ARCHIVE | /Users/qianjianeng/Library/Developer/Xcode/Archives/2017-05-17/Pinnacle ... |
+--------------------+-----------------------------------------------------------------------------+
[16:41:57]: Error uploading ipa file, for more information see above
+------+-------------------------------------+-------------+
| fastlane summary |
+------+-------------------------------------+-------------+
| Step | Action | Time (in s) |
+------+-------------------------------------+-------------+
| 1 | Verifying required fastlane version | 0 |
| 2 | default_platform | 0 |
| 3 | pod update | 49 |
| 4 | increment_build_number | 4 |
| 5 | gym | 266 |
| | pilot | 86 |
+------+-------------------------------------+-------------+
[16:41:57]: fastlane finished with errors
很奇怪,之前用传包一直没问题,突然就出这个错了,我去这个目录看了一下
`/Users/qianjianeng/.itmstransporter/UploadTokens/qianjianengMacBook-Pro.local_VN226642G5_917554930.itmsp.token`
![Snip20170517_8.png](http://upload-images.jianshu.io/upload_images/971366-d8f44bf4b060bc2b.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
看到有两个类似的文件,报错的原因是说这个文件被其他进程占用了。然后我用Xcode传了一下,发现也一样。
![Snip20170517_9.png](http://upload-images.jianshu.io/upload_images/971366-b0c0e959af90eb5d.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
然后就只直接删除了那两个文件,再试一把。就好了