Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 6425a30

Browse files
authored
Exclude arm64 simulators from google_sign_in example project (#4128)
1 parent 962c607 commit 6425a30

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

packages/google_sign_in/google_sign_in/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## NEXT
22

33
* Add iOS unit and UI integration test targets.
4+
* Exclude arm64 simulators in example app.
45

56
## 5.0.4
67

packages/google_sign_in/google_sign_in/example/ios/Podfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,9 @@ end
3939
post_install do |installer|
4040
installer.pods_project.targets.each do |target|
4141
flutter_additional_ios_build_settings(target)
42+
target.build_configurations.each do |build_configuration|
43+
# GoogleSignIn does not support arm64 simulators.
44+
build_configuration.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64 i386'
45+
end
4246
end
4347
end

packages/google_sign_in/google_sign_in/example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,7 @@
603603
buildSettings = {
604604
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
605605
ENABLE_BITCODE = NO;
606+
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "i386 arm64";
606607
FRAMEWORK_SEARCH_PATHS = (
607608
"$(inherited)",
608609
"$(PROJECT_DIR)/Flutter",
@@ -624,6 +625,7 @@
624625
buildSettings = {
625626
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
626627
ENABLE_BITCODE = NO;
628+
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "i386 arm64";
627629
FRAMEWORK_SEARCH_PATHS = (
628630
"$(inherited)",
629631
"$(PROJECT_DIR)/Flutter",
@@ -645,6 +647,7 @@
645647
buildSettings = {
646648
BUNDLE_LOADER = "$(TEST_HOST)";
647649
CODE_SIGN_STYLE = Automatic;
650+
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "i386 arm64";
648651
INFOPLIST_FILE = RunnerTests/Info.plist;
649652
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
650653
PRODUCT_BUNDLE_IDENTIFIER = dev.flutter.plugins.RunnerTests;
@@ -659,6 +662,7 @@
659662
buildSettings = {
660663
BUNDLE_LOADER = "$(TEST_HOST)";
661664
CODE_SIGN_STYLE = Automatic;
665+
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "i386 arm64";
662666
INFOPLIST_FILE = RunnerTests/Info.plist;
663667
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
664668
PRODUCT_BUNDLE_IDENTIFIER = dev.flutter.plugins.RunnerTests;

0 commit comments

Comments
 (0)