Problem to build video_room sample V2
rprata opened this issue · 7 comments
Hi all,
I tried to run video_room
example for Android and Ios. In Android system, my sample build, however in Ios, but I get this error:
Xcode's output:
↳
warning: [CP] Unable to find matching .xcframework slice in 'ios-x86_64-simulator ios-arm64' for the current build architectures (arm64 x86_64 i386).
Command CompileSwiftSources failed with a nonzero exit code
/Users/renanprata/Projects/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_webrtc-0.6.10+hotfix.1/ios/Classes/FlutterRTCMediaStream.m:3:9: fatal error: 'WebRTC/WebRTC.h'
file not found
#import <WebRTC/WebRTC.h>
^~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
warning: Capabilities for Signing & Capabilities may not function correctly because its entitlements use a placeholder team ID. To resolve this, select a development team in
the Runner editor. (in target 'Runner' from project 'Runner')
/Users/<>/Projects/poc_flutter_janus/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range
of supported deployment target versions is 9.0 to 15.2.99. (in target 'Libyuv' from project 'Pods')
Follow my commands steps:
rm -rf ios
flutter clean
flutter create .
flutter pub get
flutter run
I also uncomment line platform :ios, '9.0'
and update to version 10. Then I ran pod install
. This problems still happen :(
@shivanshtalwar0 ,
I'm using intel mac (2020). I noticed that WebRTC soft links were wrong and I re-created manually. After that, these errors I had new problems:
warning: [CP] Unable to find matching .xcframework slice in 'ios-x86_64-simulator ios-arm64' for the current build architectures (arm64 x86_64 i386).
/Users/renanprata/Projects/flutter/.pub-cache/hosted/pub.dartlang.org/janus_client-2.0.0-beta/ios/Classes/FlutterJanusClientPlugin.m:8:9: fatal error:
'flutter_janus_client-Swift.h' file not found
#import "flutter_janus_client-Swift.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
/Users/renanprata/Projects/poc_flutter_janus/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range
of supported deployment target versions is 9.0 to 15.2.99. (in target 'Libyuv' from project 'Pods')
warning: Capabilities for Signing & Capabilities may not function correctly because its entitlements use a placeholder team ID. To resolve this, select a development team in
the Runner editor. (in target 'Runner' from project 'Runner')
Do you have some idea about that? flutter_janus_client-Swift.h
was not generated in build.
Follow my cocoapod version: 1.11.2
No,
I'm using pub package:
janus_client:
dependency: "direct main"
description:
name: janus_client
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0-beta"
Is there a pub package with v2_dev
? I created my application standalone and import this package.
One more information for other people with the same problem (it worked for me):
rm -rf ios
flutter clean
flutter create .
flutter pub get
uncomment line platform :ios, '9.0' and update minimum version (depends on your applicatio).
Open XCode and build it in application. After that this problem could be resolved.