简体   繁体   English

如何使用 Fastlane 启用配置文件中的功能?

[英]How to use Fastlane to enable capabilities in provision profile?

Our org uses Fastlane to manage out codesign stuff.我们的组织使用 Fastlane 来管理协同设计的东西。 We have the github repo set up and been using it for a while.我们已经设置了 github 存储库并使用了一段时间。

For Xcode13 we added time sensitive usernotifications capability to our entitlement file.对于 Xcode13,我们为我们的权利文件添加了时间敏感的用户通知功能。

  <key>com.apple.developer.usernotifications.time-sensitive</key>
  <true/>

From my research it seems like we have to re-generate the provision profile.根据我的研究,我们似乎必须重新生成配置文件。 How can I achieve this with Fastlane?我如何使用 Fastlane 实现这一目标?

is using sigh the right way?使用sigh是正确的方法吗? I am hesitating to do any actions because all the iOS dev share the certificate git repo, so I am being very cautious.我犹豫要不要采取任何行动,因为所有的 iOS 开发人员都共享证书 git repo,所以我非常谨慎。

The following worked for me以下对我有用

  1. update the entitlements in provisioning profile, log into the Apple developer site and go to the "Certificates, Identifiers & Profiles" section.更新配置文件中的权利,登录 Apple 开发人员站点并转到“证书、标识符和配置文件”部分。 Select Application IDs on the left, and find the app ID for the app you are trying to build.选择左侧的应用程序 ID,然后找到您尝试构建的应用程序的应用程序 ID。 Click the edit button and turn on the entitlement for Time Sensative User Notification (or whatever you need to add)单击编辑按钮并打开时间敏感用户通知(或您需要添加的任何内容)的权利
  2. Run Fastlane match to regenerate the profiles fastlane run match type:"<enterprise or development>" git_branch:"<internal or production>" generate_apple_certs:"false" git_url:"<link to your fastlane cert repo>" then follow the prompt.运行 Fastlane match 以重新生成配置文件fastlane run match type:"<enterprise or development>" git_branch:"<internal or production>" generate_apple_certs:"false" git_url:"<link to your fastlane cert repo>"然后按照提示操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM