0
0

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

WIP@FastlaneのUSE_LEGACY_BUILD_APIをfasleにした場合のProvisioning指定の調査

Last updated at Posted at 2016-07-23

USE_LEGACY_BUILD_APIをfalseにした場合SIGH_PROFILE_PATHの指定が無効になるという警告が表示されます。

You're using Xcode 7, the `provisioning_profile_path` value will be ignored
Please follow the Code Signing Guide: https://codesigning.guide (for match) or https://github.com/fastlane/fastlane/blob/master/fastlane/docs/CodeSigning.md

provisioning_profile_pathが設定できないということは、例えば私は以下のようにadhocとbetaでProvisioningを分けているのですが、これが効かないことになりそうです。

fastlane_version "1.98.0"

default_platform :ios

platform :ios do
  before_all do
    ENV['GYM_WORKSPACE']             = "Elevation.xcworkspace"
    ENV['GYM_SCHEME']                = "Elevation"
    ENV['GYM_USE_LEGACY_BUILD_API']  = "false"
    ENV['GYM_INCLUDE_SYMBOLS']       = "true"
    ENV['GYM_INCLUDE_BITCODE']       = "true"
  end

  lane :adhoc do
    ENV['SIGH_PROFILE_PATH'] = "AdHoc_com.yoneapp.Elevation.mobileprovision"
    ENV['GYM_CONFIGURATION'] = "Debug"
    gym
    deploygate
  end

  lane :beta do
    ENV['SIGH_PROFILE_PATH'] = "AppStore_com.yoneapp.Elevation.mobileprovision"
    ENV['GYM_CONFIGURATION'] = "Release"
    gym
    pilot(skip_waiting_for_build_processing: true)

    p Gym.config[:provisioning_profile_path]
  end

  lane :app_store do
    ENV['SIGH_PROFILE_PATH'] = "AppStore_com.yoneapp.Elevation.mobileprovision"
    ENV['GYM_CONFIGURATION'] = "Release"
    gym
    deliver(skip_screenshots: true, skip_metadata: true)
  end
end

対策としてXcode7では少し面倒ですが https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Codesigning/XcodeProject.md#readme に書いてあるようにすればよいでしょう。

と思ってSIGH_PROFILE_PATHを消してみたのですが、次のように聴かれるようになってしまいYou're using Xcode 7, the provisioning_profile_path...`の警告はそのままでした。

Found more than one provisioning profile in the project directory:
1. AdHoc_com.yoneapp.Elevation.mobileprovision
2. AppStore_com.yoneapp.Elevation.mobileprovision

https://github.com/fastlane/fastlane/blob/d01b7c2240df289ea2e2dfc58bffeb028f97e805/gym/lib/gym/options.rb#L161https://github.com/fastlane/fastlane/blob/c24d064811ec0718e3c6c98489b0180b0100eab8/gym/lib/gym/generators/package_command_generator_xcode7.rb#L164 が関連コードだと思うけどFastfileでは指定してないんだけども。

適当にしのいで、Xcode8を待ったほうがいいかな...

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?