8

抱歉,如果这是一个愚蠢的问题,这是我第一次使用 Fastlane,我遇到了一些问题。

我正在运行命令:

fastlane ios beta

并且该过程在gym中失败,错误如下:

The following build commands failed:
CodeSign /Users/cm/Library/Developer/Xcode/DerivedData/OnDeck-ftohruvlpgqajhhbppffshjfjvwm/Build/Intermediates/ArchiveIntermediates/OnDeck/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/FLKAutoLayout.framework
CodeSign /Users/cm/Library/Developer/Xcode/DerivedData/OnDeck-ftohruvlpgqajhhbppffshjfjvwm/Build/Intermediates/ArchiveIntermediates/OnDeck/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/CocoaAsyncSocket.framework
CodeSign /Users/cm/Library/Developer/Xcode/DerivedData/OnDeck-ftohruvlpgqajhhbppffshjfjvwm/Build/Intermediates/ArchiveIntermediates/OnDeck/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Cosmos.framework
CodeSign /Users/cm/Library/Developer/Xcode/DerivedData/OnDeck-ftohruvlpgqajhhbppffshjfjvwm/Build/Intermediates/ArchiveIntermediates/OnDeck/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/EZLoadingActivity.framework
(4 failures)
[15:52:12]: Exit status: 65
[15:52:12]: Variable Dump:
[15:52:12]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>"ios beta"}
[15:52:12]: Error building the application - see the log above

+------+-------------------------------------+-------------+
|                     fastlane summary                     |
+------+-------------------------------------+-------------+
| Step | Action                              | Time (in s) |
+------+-------------------------------------+-------------+
| 1    | Verifying required fastlane version | 0           |
| 2    | default_platform                    | 0           |
| 3    | cocoapods                           | 9           |
| 4    | gym                                 | 22          |
+------+-------------------------------------+-------------+

[15:52:12]: fastlane finished with errors

[!] Error building the application - see the log above

当我调试这个问题时,我有点不知所措,我的研究几乎没有产生什么结果。我已经运行 Xcode-select —install 所以我使用的是 7.1.1 版本(此时是最新版本)

有人对如何调试此问题有任何建议吗?

谢谢!

更新:GitHub 问题和对此的进一步讨论https://github.com/fastlane/fastlane/issues/4197

4

1 回答 1

1

将其留在这里以防万一它可以帮助其他人:

我在我的 Jenkins 服务器上遇到了同样的错误(CodeSign 65 )。为了修复它,我在中使用了以下标志gym

keychain_password: "my_Mac_Password"

其中my_Mac_Password是运行 Jenkins 的用户的 MacOS 密码。

它只需要工作一次,之后你可以从 fastlane 中删除这个标志。

注意如果您使用的是 Jenkins,更好的解决方案是将keychain_password环境变量添加到您的 Jenkins 配置中。

于 2018-11-12T18:42:21.290 回答