【发布时间】:2020-07-26 15:08:56
【问题描述】:
我在“fastlane beta”通道自动构建、上传和批准 iOS 应用构建到 testflight 方面取得了巨大成功。
我正在尝试扩展使用范围,包括 fastlane 'snapshot' 以自动生成屏幕截图。我通过 fastlane 和 ray wenderlich 完成了设置教程(只是为了检查是不是我很愚蠢!)...
它似乎一直在处理,直到它抱怨缺少凭据
身份验证失败,因为未提供凭据。
但我不明白为什么这条路线会失败而“fastlane beta”工作得很好?关于我需要改变什么的任何想法?当“测试版”通道不需要任何凭据时,此处可能需要哪些凭据?
或者为什么在(相同的?!)构建期间一条路径有效而另一条路径失败?
终端消息:
[00:17:22]: Building and running project - this might take some time...
[00:17:23]: Patching simulators .../com.apple.iphonesimulator.plist' to scale to 100%
[00:17:24]: Using device named 'iPhone 11 Pro Max' with version '13.3' because no match was found for version '13.2'
[00:17:24]: Running snapshot on: iPhone 11 Pro Max
[00:17:24]: $ set -o pipefail && xcodebuild -workspace ./Power\ Zone\ Timer.xcworkspace -scheme Power\ Zone\ Timer -derivedDataPath '/var/folders/qs/cyr14d9n3zj11p5bcnr4vdh00000gn/T/snapshot_derived20200414-75065-4n5afc' -destination 'platform=iOS Simulator,name=iPhone 11 Pro Max,OS=13.3' FASTLANE_SNAPSHOT=YES build test | tee /Users/xxx/Library/Logs/snapshot/Challenges-Power\ Zone\ Timer.log | xcpretty
[00:17:24]: ▸ Loading...
[00:17:30]: ▸ xcodebuild: error: Could not resolve package dependencies:
[00:17:30]: ▸ Authentication failed because no credentials were provided.
xcodebuild: error: Could not resolve package dependencies:
Authentication failed because no credentials were provided.
[00:17:30]: Exit status: 74
【问题讨论】: