Hello, I'm trying to add a flutter framework (with the flutter-webrtc dependency) to an existing iOS app, so I tried cloning this demo and using the command flutter build ios-framework but I get the following error message (It might be important to add that my Mac uses the Apple M1 chip):
Unable to build plugin frameworks for simulator: ** BUILD FAILED **
The following build commands failed:
CompileC
/Desktop/flutter-webrtc-demo/build/ios/framework/Debug/iphonesimulator/Pods.build/Debug-iphonesimula
tor/flutter_webrtc.build/Objects-normal/x86_64/FlutterRTCMediaStream.o
/Desktop/development_flutter/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_webrtc-0.7.1/ios/Cla
sses/FlutterRTCMediaStream.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target
'flutter_webrtc' from project 'Pods')
CompileC
/Desktop/flutter-webrtc-demo/build/ios/framework/Debug/iphonesimulator/Pods.build/Debug-iphonesimula
tor/flutter_webrtc.build/Objects-normal/x86_64/FlutterRTCPeerConnection.o
/Desktop/development_flutter/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_webrtc-0.7.1/ios/Cla
sses/FlutterRTCPeerConnection.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target
'flutter_webrtc' from project 'Pods')
CompileC
/Desktop/flutter-webrtc-demo/build/ios/framework/Debug/iphonesimulator/Pods.build/Debug-iphonesimula
tor/flutter_webrtc.build/Objects-normal/x86_64/FlutterRTCFrameCapturer.o
/Desktop/development_flutter/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_webrtc-0.7.1/ios/Cla
sses/FlutterRTCFrameCapturer.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target
'flutter_webrtc' from project 'Pods')
CompileC
/Desktop/flutter-webrtc-demo/build/ios/framework/Debug/iphonesimulator/Pods.build/Debug-iphonesimula
tor/flutter_webrtc.build/Objects-normal/x86_64/FlutterRTCDataChannel.o
/Desktop/development_flutter/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_webrtc-0.7.1/ios/Cla
sses/FlutterRTCDataChannel.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target
'flutter_webrtc' from project 'Pods')
(4 failures)
Also, this is the output when I run flutter doctor, everything seems to be fine:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.5.3, on macOS 11.5.2 20G95 darwin-arm, locale pt-BR)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] VS Code (version 1.62.0)
• No issues found!
Hello, I'm trying to add a flutter framework (with the flutter-webrtc dependency) to an existing iOS app, so I tried cloning this demo and using the command
flutter build ios-framework
but I get the following error message (It might be important to add that my Mac uses the Apple M1 chip):Also, this is the output when I run flutter doctor, everything seems to be fine: