fix build bugs

fix build bugs
This commit is contained in:
Zeus
2024-07-24 12:44:24 +08:00
parent 67ebd689c8
commit fe77b958f6
6 changed files with 92 additions and 74 deletions
+8 -3
View File
@@ -1,5 +1,5 @@
# Uncomment this line to define a global platform for your project
# platform :ios, '12.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
@@ -25,15 +25,20 @@ def flutter_root
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end
# 添加打印语句
puts "Flutter Root Path: #{flutter_root}"
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
flutter_ios_podfile_setup
target 'Runner' do
use_frameworks!
use_modular_headers!
# pod 'Leaf', :path => 'leaf.xcframework'
puts "flutter_install_all_ios_pods : #{File.dirname(File.realpath(__FILE__))}"
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end