从终端更改 Expo 中的配置文件
Changing Provisioning Profile in Expo from Terminal
我在 运行 expo build:ios
通过 this tutorial 时犯了一个错误并使用了错误的配置文件。似乎没有关于如何更新它的任何方便的文档 - 只是来自我同船的人的很多问题。
Here is a screenshot of the related error.
我只需要删除旧配置文件并添加新配置文件。这是一个命令吗?
注意:我没有使用 xCode——只是终端。
你应该可以使用 fastlane 和 sigh
这里是文档:https://docs.fastlane.tools/actions/sigh/#resign
祝你好运!
我明白了。更改凭据的正确方法是 运行 expo build:ios -c
。无需使用 fastlane 和 sigh。最后的 运行 -c
删除当前凭据并允许您输入新凭据。 Here is a screenshot of the outcome.我希望这对以后的人有帮助!
当前接受的答案有效,因为它清除了 expo 生成的所有凭据。
实际上,如果您只想删除配置文件,那么您可以这样做
expo build:ios --clear-provisioning-profile
此命令的用例是,例如,当您构建应用程序但得到 "Missing Push Notification Entitlement" 时,您想要重新生成的只是配置文件。 (我在调查此错误的原因时在以下论坛中发现了此选项:https://forums.expo.io/t/how-to-fix-missing-push-notification-entitlement/19615)
我在 运行 expo build:ios
通过 this tutorial 时犯了一个错误并使用了错误的配置文件。似乎没有关于如何更新它的任何方便的文档 - 只是来自我同船的人的很多问题。
Here is a screenshot of the related error.
我只需要删除旧配置文件并添加新配置文件。这是一个命令吗?
注意:我没有使用 xCode——只是终端。
你应该可以使用 fastlane 和 sigh
这里是文档:https://docs.fastlane.tools/actions/sigh/#resign
祝你好运!
我明白了。更改凭据的正确方法是 运行 expo build:ios -c
。无需使用 fastlane 和 sigh。最后的 运行 -c
删除当前凭据并允许您输入新凭据。 Here is a screenshot of the outcome.我希望这对以后的人有帮助!
当前接受的答案有效,因为它清除了 expo 生成的所有凭据。
实际上,如果您只想删除配置文件,那么您可以这样做
expo build:ios --clear-provisioning-profile
此命令的用例是,例如,当您构建应用程序但得到 "Missing Push Notification Entitlement" 时,您想要重新生成的只是配置文件。 (我在调查此错误的原因时在以下论坛中发现了此选项:https://forums.expo.io/t/how-to-fix-missing-push-notification-entitlement/19615)