简体   繁体   English

无法自动生成配置文件和证书

[英]Can't auto-generate Provisioning Profile and Certificate

I'm new to NativeScript development and am trying to get my app installed on my personal iPhone for testing.我是 NativeScript 开发的新手,我正在尝试将我的应用程序安装在我的个人 iPhone 上进行测试。

When attempting to auto-generate the Provisioning Profile and Certificate using my Apple ID, I get an error:尝试使用我的 Apple ID 自动生成配置文件和证书时,出现错误:

An error has occurred while generating the certificate and mobile provision.生成证书和移动配置时发生错误。 Reason: Two-step verification not supported at the moment..原因:暂时不支持两步验证..

I've logged into my Apple ID management page at: https://appleid.apple.com/account/manage but there is no option to turn two-factor authentication off.我已经登录到我的 Apple ID 管理页面: https://appleid.apple.com/account/manage但没有选项可以关闭双因素身份验证。

The "Help" instructions on the NativeScript site: https://docs.nativescript.org/sidekick/user-guide/code-signing/code-signing-for-ios/code-signing-assistance only have the auto-generate steps. NativeScript 网站上的“帮助”说明: https://docs.nativescript.org/sidekick/user-guide/code-gening/ios-assissigning-for the auto-code-gening/ios-assisigning-仅用于步骤.

I tried going to: https://developer.apple.com/account/resources/ but that tells me "Access Unavailable" and that I have to be enrolled in a developer program.我试着去: https://developer.apple.com/account/resources/但这告诉我“访问不可用”并且我必须注册开发人员计划。

What do I need to do to create the Certificate and Provision my app?我需要做什么来创建证书和配置我的应用程序?

I should add that the NativeScript site instructions also appear to be out of date as the Apple Developer Site pages don't have any of the navigational elements they're referring to, which further complicates things for beginners.我应该补充一点,NativeScript 站点说明似乎也已过时,因为 Apple 开发人员站点页面没有他们所指的任何导航元素,这使初学者的事情变得更加复杂。

My guess is that at one point all of this was free and now Apple charges $99 a year for a developer account, otherwise none of this content shows up according to the docs on the NativeScript site.我的猜测是,曾经所有这些都是免费的,现在 Apple 每年为开发者帐户收取 99 美元的费用,否则根据 NativeScript 网站上的文档,这些内容都不会显示。

You can still create iOS apps and deploy them onto your device, but under the free version, you have 7 days for a provision.您仍然可以创建 iOS 应用程序并将它们部署到您的设备上,但在免费版本下,您有 7 天的时间进行配置。 This year Apple also enforced 2-factor authentication, but this is not required for free accounts:今年 Apple 还强制执行 2 因素身份验证,但免费帐户不需要这样做:

https://developer.apple.com/support/authentication/ https://developer.apple.com/support/authentication/

Who is required to enable it?谁需要启用它? Only developers with the Account Holder role (formerly the “Team Agent”) in the Apple Developer Program, Apple Developer Enterprise Program, or iOS Developer University Program need to enable two-factor authentication.只有在 Apple Developer Program、Apple Developer Enterprise Program 或 iOS Developer University Program 中具有 Account Holder 角色(以前称为“团队代理”)的开发人员才需要启用两因素身份验证。 Developers who are registered for a free account or who have other team roles are not required to enable two-factor authentication.注册免费帐户或具有其他团队角色的开发人员不需要启用双重身份验证。

Its always been nightmare to manage this stuff but if you really do have a free account from Apple, use Sidekick's feature to manage this for you: https://docs.nativescript.org/sidekick/user-guide/code-signing/code-signing-for-ios/code-signing-assistance管理这些东西一直是一场噩梦,但如果你真的有 Apple 的免费帐户,请使用 Sidekick 的功能为你管理: https://docs.nativescript.org/sidekick/user-guide/code-signing/code -signing-for-ios/code-signing-assistance

Remember if you have 2-factor auth turned on, you will not be able to use this feature.请记住,如果您打开了 2-factor auth,您将无法使用此功能。

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

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