Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem to build video_room sample V2 #44

Closed
rprata opened this issue Nov 17, 2021 · 7 comments
Closed

Problem to build video_room sample V2 #44

rprata opened this issue Nov 17, 2021 · 7 comments

Comments

@rprata
Copy link

rprata commented Nov 17, 2021

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
Copy link
Collaborator

shivanshtalwar0 commented Nov 18, 2021 via email

@rprata
Copy link
Author

rprata commented Nov 18, 2021

@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

@shivanshtalwar0
Copy link
Collaborator

shivanshtalwar0 commented Nov 18, 2021 via email

@rprata
Copy link
Author

rprata commented Nov 18, 2021

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.

@shivanshtalwar0
Copy link
Collaborator

shivanshtalwar0 commented Nov 18, 2021 via email

@shivanshtalwar0
Copy link
Collaborator

@rprata
Copy link
Author

rprata commented Apr 11, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants