From 0e2598ea52979440a52b5751589129e3d481526b Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Wed, 1 Jun 2022 10:08:45 +0200 Subject: [PATCH] fix: Build on iOS emulator --- ios/Podfile | 9 +++++++++ ios/Runner/Info.plist | 2 ++ pubspec.lock | 6 +++--- pubspec.yaml | 2 +- 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/ios/Podfile b/ios/Podfile index 9411102b..beb55ecd 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -37,5 +37,14 @@ 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['ENABLE_BITCODE'] = 'NO' + config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0' + + # https://github.com/flutter-webrtc/flutter-webrtc/issues/713 + if target.name == "flutter_webrtc" || target.name == "WebRTC-SDK" + config.build_settings['ONLY_ACTIVE_ARCH'] = 'YES' + end + end end end diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist index 632d757b..559712db 100644 --- a/ios/Runner/Info.plist +++ b/ios/Runner/Info.plist @@ -106,5 +106,7 @@ NSAllowsArbitraryLoads + CADisableMinimumFrameDurationOnPhone + diff --git a/pubspec.lock b/pubspec.lock index e0c9d51b..cbccdc3b 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -289,7 +289,7 @@ packages: name: dart_webrtc url: "https://pub.dartlang.org" source: hosted - version: "1.0.4" + version: "1.0.6" dbus: dependency: "direct overridden" description: @@ -713,7 +713,7 @@ packages: name: flutter_webrtc url: "https://pub.dartlang.org" source: hosted - version: "0.8.4" + version: "0.8.7" frontend_server_client: dependency: transitive description: @@ -2024,7 +2024,7 @@ packages: name: webrtc_interface url: "https://pub.dartlang.org" source: hosted - version: "1.0.2" + version: "1.0.4" win32: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index adb04622..f03eb16a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -46,7 +46,7 @@ dependencies: flutter_svg: ^0.22.0 flutter_typeahead: ^3.2.5 flutter_web_auth: ^0.4.0 - flutter_webrtc: ^0.8.2 + flutter_webrtc: ^0.8.7 future_loading_dialog: ^0.2.3 geolocator: ^7.6.2 hive_flutter: ^1.1.0