配置资料iOS的CodeMagic问题iOS

发布于 2025-02-02 12:07:13 字数 1097 浏览 3 评论 0 原文

几天前我几乎没有成功的构建,甚至发布了新的应用程序版本! 今天,我尝试再次运行它,当在CodeMagic上构建iOS项目时,我在“ Xcode-project use-profiles”步骤中收到了以下错误:

Completed configuring code signing settings
Did not find matching provisioning profiles for code signing!
Generated options for exporting the project
 - Method: ad-hoc
 - Provisioning Profiles: []
 - Signing Certificate: 
 - Signing Style: manual
 - Team Id: 
Saved export options to /Users/builder/export_options.plist

但是“设置签名证书”之前的步骤是

Add certificates to keychain /Users/builder/Library/codemagic-cli-tools/keychains/29-05-22_m73tdocl.keychain-db
Searching for files matching /Users/builder/Library/MobileDevice/Certificates/*.p12
Add certificate /Users/builder/Library/MobileDevice/Certificates/DISTRIBUTION_W29TD264AN_onqr7_8i.p12 to keychain /Users/builder/Library/codemagic-cli-tools/keychains/29-05-22_m73tdocl.keychain-db
1 key imported.
1 certificate imported.

我的 codemagic.yml

有什么想法吗?

I had few successful builds few days ago and I even published new app version!
Today I tried to run it again and when building IOS project on Codemagic I got the following error in "xcode-project use-profiles" step:

Completed configuring code signing settings
Did not find matching provisioning profiles for code signing!
Generated options for exporting the project
 - Method: ad-hoc
 - Provisioning Profiles: []
 - Signing Certificate: 
 - Signing Style: manual
 - Team Id: 
Saved export options to /Users/builder/export_options.plist

but the step before "Set up signing certificate" was successful

Add certificates to keychain /Users/builder/Library/codemagic-cli-tools/keychains/29-05-22_m73tdocl.keychain-db
Searching for files matching /Users/builder/Library/MobileDevice/Certificates/*.p12
Add certificate /Users/builder/Library/MobileDevice/Certificates/DISTRIBUTION_W29TD264AN_onqr7_8i.p12 to keychain /Users/builder/Library/codemagic-cli-tools/keychains/29-05-22_m73tdocl.keychain-db
1 key imported.
1 certificate imported.

my codemagic.yml

any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

疯了 2025-02-09 12:07:14

I solved it after debugging the whole codemagic-cli-tool open source library!



org.reactjs.native.example.myapp (要匹配您的捆绑包ID)

完整答案:

找不到匹配的配置配置文件 log是结果 Xcode-project use-profiles 命令在product_bundle_enderififier vartial in project> project.pbxproj 文件。
它可以是org.reaectjs.native.example。$(product_name:rfc1034Identifier)作为您的捆绑ID(有关它的更多信息,请提供此处)

为了解决它,请执行以下步骤:

  • 转到appName.xcodeproj - > project.pbxproj
  • 下查找开始xcbuildConfiguration e节您的发布部分,并从product_bundle_identifier
  • 更改product_bundle_identifier从
    org.reaectjs.native.example。$(product_name:rfc1034Identifier) to
    org.reactjs.native.example.myapp 匹配您的捆绑包ID

I solved it after debugging the whole codemagic-cli-tool open source library!

In short

Change your release PRODUCT_BUNDLE_IDENTIFIER in project.pbxproj from org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
to
org.reactjs.native.example.myApp (to match your bundle id)

Full Answer:

Did not find matching provisioning profiles log is a result of xcode-project use-profiles command compering real local bundle_id (like org.reactjs.native.example.myApp) with bundle_id within the provisioning profile that generate from PRODUCT_BUNDLE_IDENTIFIER variable in project.pbxproj file.
It could be org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) as your bundle id (more about it explained here)
In order to solve it, make the following steps:

  • Go to appName.xcodeproj -> project.pbxproj
  • Find under Begin XCBuildConfiguration section your release section and find PRODUCT_BUNDLE_IDENTIFIER
  • Change PRODUCT_BUNDLE_IDENTIFIER from
    org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) to
    org.reactjs.native.example.myApp to match your bundle id
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文