Skip to content

Commit

Permalink
Fix integration test on iOS beta channel due to Flutter bug
Browse files Browse the repository at this point in the history
  • Loading branch information
marandaneto committed Apr 19, 2023
1 parent b98109e commit dbe5a8f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
13 changes: 12 additions & 1 deletion flutter/example/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
wanted_project_target = '11.0'

# Uncomment this line to define a global platform for your project
platform :ios, '11.0'
platform :ios, wanted_project_target

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
Expand Down Expand Up @@ -38,4 +40,13 @@ post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end

# remove after https://github.com/flutter/flutter/issues/124340 getting into all channels
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = wanted_project_target
end
end
end
end
1 change: 1 addition & 0 deletions flutter/example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@
files = (
);
inputPaths = (
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
);
name = "Thin Binary";
outputPaths = (
Expand Down

0 comments on commit dbe5a8f

Please sign in to comment.