[WatchKit] WKCompanionAppBundleIdentifier と WKAppBundleIdentifier を変更する

自作Apple Watch アプリのフォルダを丸ごとコピーして新しいアプリを作るときなどに、

error: WatchKit App doesn’t contain any WatchKit Extensions whose WKAppBundleIdentifier matches “jp.ne.sakura.token.XXXXXX.watchkitapp”. Verify that the value of WKAppBundleIdentifier in your WatchKit Extension’s Info.plist matches the value of CFBundleIdentifier in your WatchKit App’s Info.plist.

のエラーが表示されて、ビルドできないことがある。

この場合、WatchKit App の WKCompanionAppBundleIdentifier と WatchKit Extension の WKAppBundleIdentifier を変更しよう。

数カ所あるので、ついいつも引っかかってしまうので備忘録。

 

 

返信を残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

This site uses Akismet to reduce spam. Learn how your comment data is processed.