使用HealthKit与Fastlane匹配

时间:2018-01-31 12:22:59

标签: ios health-kit fastlane

我尝试在Xcode中启用HealthKit功能,但是我收到了错误。

Add the HealthKit feature to your App ID.
Provisioning profile "match AdHoc com.mycompany.myapp" doesn't
support the HealthKit capability.

我能解决这个问题吗?我必须忽略它吗?

我的Fastfile看起来像这样:


fastlane_version "2.35.1"

default_platform :ios

platform :ios do
  before_all do 
  end

  desc "Runs all the tests"
  lane :test do
    scan
  end

  desc "Build a new beta version"
  desc "This will also make sure the profile is up to date"
  lane :beta do

    register_devices(
      devices: {
        ...
      }
    )

    match(type: "adhoc", force_for_new_devices: true)

    gym(
      scheme: "myapp",
      clean: true,
      silent: true,
      output_directory: "../build/beta/"
    ) 
  end

  desc "Deploy a new version to the App Store"
  lane :release do
    match(type: "appstore")
    # snapshot
    gym(
      scheme: "myapp",
      clean: true,
      silent: true,
      output_directory: "../build/release/"
    ) 
  end
end

我也尝试过一切,但它没有帮助。

0 个答案:

没有答案