This commit is contained in:
Hamza-Ayed
2023-10-23 20:59:36 +03:00
parent e9738296df
commit c21558d125
6 changed files with 217 additions and 147 deletions

View File

@@ -1,5 +1,6 @@
# Uncomment this line to define a global platform for your project
platform :ios, '13.0'
$iOSVersion = '13.0' # or newer version
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
@@ -38,7 +39,18 @@ target 'Runner' do
end
post_install do |installer|
# add these lines:
installer.pods_project.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=*]"] = "armv7"
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = $iOSVersion
end
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
# add these lines:
target.build_configurations.each do |config|
if Gem::Version.new($iOSVersion) > Gem::Version.new(config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'])
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = $iOSVersion
end
end
end
end