gpt4 book ai didi

从 Jenkins Xcode 插件构建 iOS 失败

转载 作者:行者123 更新时间:2023-11-29 05:46:50 27 4
gpt4 key购买 nike

我不是 iOS 专家,但使用 Xcode 插件构建了用 React Native 编写的 iOS 应用程序。

我遇到以下错误,我已经尝试了 stackoverflow 和其他博客/文章中提到的所有解决方案。我有钥匙串(keychain)中的证书。这些解决方案都不适合我。

Signing Identity:     "iPhone Developer: XXXXX (YYYYYY)"
Provisioning Profile: "iOS Team Provisioning Profile: com.xxx.xxx.mobile"
(xxxxxxxxxx)

/usr/bin/codesign --force --sign xxxxxxxxxxxxxxxxxxxxxxxxx --entitlements /Users/Shared/Jenkins/Library/Developer/Xcode/DerivedData/MYPROJECT-fxxxxxxxxxxxxxxxxxxxxxxxx/Build/Intermediates.noindex/ArchiveIntermediates/MYPROJECT/IntermediateBuildFilesPath/MYPROJECT.build/Debug-iphoneos/MYPROJECT.build/MYPROJECT.app.xcent --timestamp=none /Users/Shared/Jenkins/Library/Developer/Xcode/DerivedData/MYPROJECT-fxxxxxxxxxxxxxxxxxxxxxxxx/Build/Intermediates.noindex/ArchiveIntermediates/MYPROJECT/InstallationBuildProductsLocation/Applications/MYPROJECT.app
/Users/Shared/Jenkins/Library/Developer/Xcode/DerivedData/MYPROJECT-fxxxxxxxxxxxxxxxxxxxxxxxx/Build/Intermediates.noindex/ArchiveIntermediates/MYPROJECT/InstallationBuildProductsLocation/Applications/MYPROJECT.app: errSecInternalComponent
Command /usr/bin/codesign failed with exit code 1

** ARCHIVE FAILED **


The following commands produced analyzer issues:
Analyze Base/RCTModuleMethod.mm normal arm64
Analyze RCTNetInfo.m normal arm64
(2 commands with analyzer issues)

The following build commands failed:
CodeSign /Users/Shared/Jenkins/Library/Developer/Xcode/DerivedData/MYPROJECT-fxxxxxxxxxxxxxxxxxxxxxxxx/Build/Intermediates.noindex/ArchiveIntermediates/MYPROJECT/InstallationBuildProductsLocation/Applications/MYPROJECT.app
(1 failure)

Jenkins :2.164.2

Xcode 集成插件:2.0.11

Xcode:10.2

最佳答案

如果 Jenkins 通过 launchctl 等在后台运行,那么 Jenkins 运行在哪个帐户上?你需要小心。

即使 Jenkins 在您的帐户下运行,如果您使用 launchctl 等在后台运行,您也需要使用 security 命令向后台运行的 session 授予对钥匙串(keychain)的访问权限。

或者您需要使用 Xcode 插件选项解锁钥匙串(keychain)。

推荐的方法是在构建之前使用 Xcode Plugin Developer Profile import 导入从 Xcode 导出的开发者证书、私钥和配置文件。

关于从 Jenkins Xcode 插件构建 iOS 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56072377/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com