My days of...

生活のことなど、がんばろう

Code signing is required for product type 'Application' in SDK 'iOS 10.2' とかいうメッセージが出てシミュレータとかビルドができなかった

Xcodeを使っていて、

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

こんな感じの赤い!でエラーメッセージが出てきてシミュレータが動かない。。。

 その際に役に立ったのがstackvverflowのこの記事

stackoverflow.com

やることは

  1. TARGETSのGeneral内のSigningのAutomatically manage Signingのチェックを外す
  2. TARGETSのBuild Settingsをクリック
  3. SigningのCode Signing IdentityをiOS Developerに変更
  4. XcodeツールバーのProduct > Cleanをクリック

これでエラーメッセージが消えシミュレーターが動きました。

よかった。

 

本気ではじめるiPhoneアプリ作り Xcode 8.x+Swift 3.x対応 (ヤフー黒帯シリーズ)

本気ではじめるiPhoneアプリ作り Xcode 8.x+Swift 3.x対応 (ヤフー黒帯シリーズ)

 
詳解 Swift 改訂版

詳解 Swift 改訂版