Appcelerator StudioでビルドしたらWWDR証明書が期限切れ?

Apple’s World Wide Developer Relations (WWDR) intermediate certificate is not installed

Appcelerator StudioでiPhoneの実機をDeviceに選択して、[RUN]したら、上記のメッセージが出た。

ググってみると、次の記事がトップ

https://developer.apple.com/support/certificates/expiration

そして今回の解決策は、記事の中にあった次の説明だった。

Known Issues

Xcode unable to create distribution builds for App Store submissions or Enterprise apps.

This issue occurs when the expired WWDR Intermediate certificate is present in both the System keychain and Login keychain within the Keychain Access application. To resolve the issue, first download and install the renewed certificate. Next, in the Keychain Access application, select the System keychain. Select ‘Show Expired Certificates’ in the View menu and then delete the expired version of the Apple Worldwide Developer Relations Certificate Authority Intermediate certificate. Your certificates should now appear as valid in Keychain Access and be available to Xcode. This issue is resolved in OS X El Capitan v10.11.4 beta.

XcodeはApp StoreまたはEnterprise appの配布用のビルドを作成できませんでした。これはキーチェーンアクセスアプリケーションで確認すればわかりますが、期限切れのWWDR Intermediate certificateがシステムキーチェーンとログインキーチェーンのどちらにもあったことが原因です。解決策は、新しい証明書をダウンロードしてインストールします。次にキーチェーンアクセスアプリケーションで、システムキーチェーンを選択して、表示メニューから【有効期限の切れた証明書を表示】を実行します。そして期限切れの「Apple Worldwide Developer Relations Certificate Authority Intermediate certificate」を削除してください。これでキーチェインアクセスで有効な証明書をXcodeで利用できるようになります。

で、実際にやってみました。コマンド+シフト+Uでユーティリティフォルダを表示して「キーチェーンアクセス.app」を起動。キーチェーンで「システム」を選択して表示メニューから【有効期限の切れた証明書を表示】します。

2841e362e07779ba15e76665192ce818-300x129.png

次のように、これまで隠れていた期限切れの証明書が出てきます。

e7262f0b0bc387c19546616a31003b77-300x190.png

これをdeleteキーで削除しようとすると認証ダイアログが表示されます。パスワードを入力してreturnキーを押します。

2fdaee9831345e66231bcd68f9bde193-300x161.png

これで削除完了。

748f4ede8c906bc6f11deeefb77656a1-300x152.png

Xcodeでビルドすると、無事にiPhoneの実機に実行イメージが転送されました。