简体   繁体   English

Xcode-尝试在iPhone上运行-签名无法正常工作

[英]Xcode - Trying to run on IPhone - Signing wont work

I'm trying to get my react native app to run on an iPhone plugged in via USB. 我试图让我的React Native应用程序在通过USB插入的iPhone上运行。

I have added my apple Id and it is listed in the "Preferences>Accounts" section. 我添加了我的苹果ID,它在“首选项>帐户”部分列出。 It is not a "developer program" id, yet. 它不是“开发人员程序” ID。 but I'm told that shouldn't matter. 但是我被告知没关系。

If I go into "Manage Certificates" I see: "Signing certificates for "Me" all of the certificates have status "Missing Private Key". There is one titled "me's MacBook Air" and about another 15 "Untitled". 如果我进入“管理证书”,则会看到:“为“我”签名证书”所有证书的状态均为“缺少私钥”,其中一个名为“我的MacBook Air”,另一个为“我的MacBook Air”。

I have selected my phone via "Product > Destination". 我已经通过“产品>目的地”选择了我的手机。

When I go into "MyProj > General > Signing" I have set "Team" to be "Me (Personal Team)" 当我进入“ MyProj>常规>签名”时,我已将“团队”设置为“我(个人团队)”

"Signing > Status" shows two errors: "The user name or passphrase you entered is not correct" "No profile for 'org.blah.MyProj' were found" “签名>状态”显示两个错误:“您输入的用户名或密码不正确”“未找到'org.blah.MyProj'的配置文件”

I cannot resolve these issues, and pressing the Play button shows "Build failed". 我无法解决这些问题,并且按“播放”按钮将显示“构建失败”。 Any suggestions? 有什么建议么?

I found the answer here : 我在这里找到答案:

"joshaber commented on Nov 16, 2017 • “ joshaber在2017年11月16日发表评论•

It sure looks like something's screwy with Keychain. 钥匙串看起来确实有些麻烦。

Try opening Keychain Access.app. 尝试打开Keychain Access.app。 Right-click on the login keychain and try locking it and then unlocking it again." 右键单击登录钥匙串,然后尝试将其锁定,然后再次将其解锁。”

Turns out something in Keychain gets corrupted by a MacOS update - this is not too uncommon apparently. 事实证明,钥匙串中的某些内容被MacOS更新损坏了-显然这并不罕见。

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

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