技術

[ionic] Error code 70 / requires a provisioning profile with the Push Notifications feature.

投稿日:2018年7月16日 更新日:

どうも中田です
ionic使っててbuildで引っかかりましたー

ionicでpushを実装しようとして ionic cordova build ios したらこんなエラー


** ARCHIVE SUCCEEDED **

[MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/_r/y43h4lfx055d4q7xth1n_ql80000gn/T/XXXXXXXXX_2018-07-16_19-22-36.646.xcdistributionlogs'.
[MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7fe2fdce0fc0>: Error Domain=IDEDistributionSigningAssetStepErrorDomain Code=0 "Locating signing assets failed." UserInfo={NSLocalizedDescription=Locating signing assets failed., IDEDistributionSigningAssetStepUnderlyingErrors=(
"Error Domain=IDEProvisioningErrorDomain Code=9 \"\"XXXXXXXXX.app\" requires a provisioning profile with the Push Notifications feature.\" UserInfo={NSLocalizedDescription=\"XXXXXXXXX.app\" requires a provisioning profile with the Push Notifications feature., NSLocalizedRecoverySuggestion=Add a profile to the \"provisioningProfiles\" dictionary in your Export Options property list.}"
)}
error: exportArchive: "XXXXXXXXX.app" requires a provisioning profile with the Push Notifications feature.

Error Domain=IDEProvisioningErrorDomain Code=9 ""XXXXXXXXX.app" requires a provisioning profile with the Push Notifications feature." UserInfo={NSLocalizedDescription="XXXXXXXXX.app" requires a provisioning profile with the Push Notifications feature., NSLocalizedRecoverySuggestion=Add a profile to the "provisioningProfiles" dictionary in your Export Options property list.}

** EXPORT FAILED **

(node:89830) UnhandledPromiseRejectionWarning: Error code 70 for command: xcodebuild with args: …

プロビジョニングプロファイルが見えてないみたいすね(こないだまではできてたんだけどなー)
ionicではビルド構成ファイル(build.json)で細かい指定ができるようなので
プロビジョニングはこれだ!を指定してあげます(参考)

build.json

{
"ios": {
"debug": {
"codeSignIdentity": "iPhone Developer",
"packageType": "development",
"developmentTeam":"XXXXXXXXXX",
"provisioningProfile": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
},
"release": {
"codeSignIdentity": "iPhone Distribution",
"packageType": "app-store",
"developmentTeam":"XXXXXXXXXX",
"provisioningProfile": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
}
}
}

そして再実行!

ionic cordova build ios

結果

無事Buildできました!

** ARCHIVE SUCCEEDED **

[MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/_r/y43h4lfx055d4q7xth1n_ql80000gn/T/XXXXXX_2018-07-16_20-39-18.511.xcdistributionlogs'.
Exported property.xcarchive to: /app/platforms/ios/build/device
** EXPORT SUCCEEDED **

いや〜、うちのエンジニアが困ってたので解決できてよかったです

参考にしたサイト

After upgrading to xcode 9, cordova app won’t build, error 70, requires provisioning profile

-技術

執筆者:


comment

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

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください

関連記事

no image

【Android/ionic】これさえやればOK!アプリ公開への道

どうも、中田です。 ionicでHTML5/CSSハイブリッドアプリ開発してるん …

no image

[リアクティブフォーム]バリデーションチェックを任意のタイミングで走らせる。

Angularのリアクティブフォームで使っていると、 バリデーションを後付けした …

esaに貼る画像をリサイズする方法

こんにちは。たなかです。 みなさん、esa使ってますか? esaは「情報を育てる …

no image

[Angular]複数のクエリパラメータを設定する

こんばんは angularで複数のクエリパラメータを設定したいと思います。 co …

[Xcode] SDK Version Issue – This app was built with the iOS 12.0 SDK. Starting March 2019, all iOS apps submitted to the App Store must be built with the iOS 12.1 SDK or later, included in Xcode 10.1 or later.

こんにちは。たなかです。 2019年、ブログ初更新になります。今年もよろしくお願 …