使用Adhoc方法构建IOS React-native应用程序时出现问题

时间:2019-04-21 20:36:41

标签: ios react-native fastlane fastfile

我有一个React-native应用程序,我正在使用它来构建ios .ipa。我使用fastlane来构建它。当IAM用 “匹配(类型:'appstore',只读:true)” 我的fastfile中的以下泳道显示了正常工作的泳道“ build”和引发错误的泳道“ buildbis”。

desc 'Build the iOS application.'
lane :build do #|options|
  match(type: 'appstore', readonly: true)
build_ios_app(
    workspace: ENV['IOS_WORKSPACE'],
    scheme: ENV['IOS_SCHEME'],
    configuration: ENV['IOS_CONFIGURATION'],
    include_bitcode: false,
    skip_profile_detection: true,
    export_method: 'app-store',
    export_options: {
        provisioningProfiles: {}
    },
    xcargs: "-UseModernBuildSystem=NO"  # Equivalent to set xcode workspace build to legacy
  )
end

desc 'AD-HOC : Build the iOS application.'
lane :buildbis do
  match(type: "adhoc", force_for_new_devices: true)
  build_ios_app(
    workspace: ENV['IOS_WORKSPACE'],
    scheme: ENV['IOS_SCHEME'],
    configuration: 'AdHoc',
    skip_profile_detection: true,
    #export_method: 'ad-hoc',
    clean: true,
    export_options: {
        method: "ad-hoc",
        provisioningProfiles: {}
    },
    xcargs: "-UseModernBuildSystem=NO"  # Equivalent to set xcode workspace build to legacy
  )
end

使用“ appstore”模式进行构建时没问题,构建完成良好。但是当我将模式设置为“ ad-hoc”时却没有。我看不出问题出在哪里。 在詹金斯,这里是消息:

❌  error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

** ARCHIVE FAILED **
The following build commands failed:
PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock /Users/****/Library/Developer/Xcode/DerivedData/**** ......

但是,一旦我放回包含“ appstore”的构建通道,一切都会恢复正常。

可能是什么原因?

0 个答案:

没有答案