Xcode - 尝试 运行 IPhone - 签名不起作用

Xcode - Trying to run on IPhone - Signing wont work

我正在尝试让我的 React 本机应用程序在通过 USB 插入的 iPhone 上 运行。

我添加了我的 apple Id,它列在 "Preferences>Accounts" 部分。它还不是 "developer program" id。但有人告诉我这应该无关紧要。

如果我进入 "Manage Certificates" 我会看到: "Signing certificates for "我” 所有证书的状态为 "Missing Private Key"。有一个标题为 "me's MacBook Air",还有大约 15 个 "Untitled".

我通过 "Product > Destination" 选择了我的 phone。

当我进入 "MyProj > General > Signing" 时,我将 "Team" 设置为 "Me (Personal Team)"

"Signing > Status" 显示两个错误: "The user name or passphrase you entered is not correct" "No profile for 'org.blah.MyProj' were found"

我无法解决这些问题,按“播放”按钮显示 "Build failed"。有什么建议吗?

我找到了答案here:

”joshaber 于 2017 年 11 月 16 日评论 •

看来钥匙串确实有问题。

尝试打开钥匙串 Access.app。右键单击登录钥匙串并尝试将其锁定然后再次解锁。"

原来 Keychain 中的某些内容被 MacOS 更新损坏了 - 这显然并不少见。