18
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Xcodeで、シミュレータでは動くが実機に転送できない

Last updated at Posted at 2017-02-04

#現象
実機を指定してビルドすると、こんなエラーが3つ出ます。

The operation couldn’t be completed. Unable to log in with account 'my acc'. An unexpected failure occurred while logging in (Underlying error code -1009).

No profiles for 'name app' were found: Xcode couldn't find a provisioning profile matching 'name app'.

Code signing is required for product type 'Application' in SDK 'iOS 10.2'

なぜかシミュレータでは問題なく動きます。

Xcode 8.2.1

#対策
provisioning profileに関連した問題っぽいのはわかるんですが、Accounts設定は問題なさそうに見えて頭を抱えることに。
参考リンクで似た話を見つけて、結局次のよくわからない対処でなおりました。。

1)Xcode => Preference => Account
2)自分のApple IDをいったん削除。
3)「+」ボタンでおんなじAppleIDを追加。パスワードを打つ。
4)Xcode再起動。

これで復活しました。なんやねん。。

#参考リンク
http://stackoverflow.com/questions/41172843/simulator-can-run-project-but-device-cant-did-this
ここに、似た話がありました

18
6
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
18
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?