diff --git a/lib/cocoapods-binary-cache/pod-rome/xcodebuild_command.rb b/lib/cocoapods-binary-cache/pod-rome/xcodebuild_command.rb index 311b917..5a2c2c0 100644 --- a/lib/cocoapods-binary-cache/pod-rome/xcodebuild_command.rb +++ b/lib/cocoapods-binary-cache/pod-rome/xcodebuild_command.rb @@ -62,7 +62,6 @@ def make_up_build_args(args) args_[:device] ||= [] args_[:default].prepend("BITCODE_GENERATION_MODE=bitcode") if bitcode_enabled? args_[:default].prepend("DEBUG_INFORMATION_FORMAT=dwarf") if disable_dsym? - args_[:default].prepend("BUILD_LIBRARY_FOR_DISTRIBUTION=YES") if PodPrebuild.config.xcframework? args_[:simulator].prepend("ARCHS=x86_64", "ONLY_ACTIVE_ARCH=NO") if simulator == "iphonesimulator" args_[:simulator] += args_[:default] args_[:device].prepend("ONLY_ACTIVE_ARCH=NO") @@ -89,7 +88,7 @@ def create_xcframework(target) output = "#{output_path(target)}/#{target.product_module_name}.xcframework" FileUtils.rm_rf(output) - cmd = ["xcodebuild", " -create-xcframework"] + cmd = ["xcodebuild", " -create-xcframework", "-allow-internal-distribution"] cmd += sdks.map { |sdk| "-framework #{framework_path_of(target, sdk)}" } cmd << "-output" << output `#{cmd.join(" ")}`