Skip to content

Commit

Permalink
chore(*): dont enable module stability in case of xcframework
Browse files Browse the repository at this point in the history
  • Loading branch information
trinhngocthuyen committed Jan 14, 2021
1 parent 805aa7f commit b18577b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/cocoapods-binary-cache/pod-rome/xcodebuild_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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(" ")}`
Expand Down

0 comments on commit b18577b

Please sign in to comment.