使用 delivery 工具上传 app 到 iTunes Connect ,中途上传失败或强行终止,导致 token 被锁定。

错误描述

1
2
3
4
Cannot proceed with delivery: an existing transporter instance is currently uploading this package",
In the upload error log I can see that it first gives an warning "Failed to obtain exclusive lock on token file.
Please ensure the following file is not locked by another process:
/users/xiao/.itmstransporter\UploadTokens\xxxxx.local_itunesConnectUSERxxxxxx.itmsp.token

解决思路

1. 进入UploadTokens所在的目录

:路径,错误信息里可以获取

1
$ cd /users/xiao/.itmstransporter\UploadTokens

2. 然后打开 .token 文件,删除里面的内容,保存。或者,直接把 .token文件删除。

3. 修改一下构建号,重新上传