1
2

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 3 years have passed since last update.

[fastlane] No provisioning profile providedの対処方法

Posted at

はじめに

Xcodeでプロビジョニングプロファイルを設定していても、次のエラーが発生することがあります。

Error Domain=IDEProvisioningErrorDomain Code=9 ""hoge.app" requires a provisioning profile." UserInfo={IDEDistributionIssueSeverity=3, NSLocalizedDescription="hoge.app" requires a provisioning profile., NSLocalizedRecoverySuggestion=Add a profile to the "provisioningProfiles" dictionary in your Export Options property list.}

** EXPORT FAILED **
[14:58:48]: Exit status: 70
[14:58:48]: No provisioning profile provided
[14:58:48]: Make sure to pass a valid provisioning for each required target
[14:58:48]: Check out the docs on how to fix this: https://docs.fastlane.tools/actions/gym/#export-options

対処方法

export_optionsprovisioningProfilesを加えると、解決します。

Fastfile
lane :dist_me do
  increment_build_number
  build_ios_app(
    export_options: {
      method: "ad-hoc",
      provisioningProfiles:{ // <- これを加える
        "com.hoge.fuga"=>"<ProvisioningProfile>"
      }
    }
  )

参考文献

gym - fastlane docs

1
2
0

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
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?