Kaynağa Gözat

fix for iOS simulator

Neeraj Gupta 2 yıl önce
ebeveyn
işleme
2d58c25520
2 değiştirilmiş dosya ile 6 ekleme ve 2 silme
  1. 5 1
      ios/Podfile
  2. 1 1
      ios/Podfile.lock

+ 5 - 1
ios/Podfile

@@ -1,5 +1,5 @@
 # Uncomment this line to define a global platform for your project
-# platform :ios, '11.0'
+platform :ios, '12.0'
 
 # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
 ENV['COCOAPODS_DISABLE_STATS'] = 'true'
@@ -37,5 +37,9 @@ end
 post_install do |installer|
   installer.pods_project.targets.each do |target|
     flutter_additional_ios_build_settings(target)
+    target.build_configurations.each do |config|
+      config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
+      config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64'
+    end
   end
 end

+ 1 - 1
ios/Podfile.lock

@@ -365,6 +365,6 @@ SPEC CHECKSUMS:
   video_thumbnail: c4e2a3c539e247d4de13cd545344fd2d26ffafd1
   wakelock: d0fc7c864128eac40eba1617cb5264d9c940b46f
 
-PODFILE CHECKSUM: ef19549a9bc3046e7bb7d2fab4d021637c0c58a3
+PODFILE CHECKSUM: 44d44a69efc5f474c5f17ed621cb4a9375ab0d86
 
 COCOAPODS: 1.11.3