livekit/client-sdk-flutter

Error on CI after adding LiveKit dependency - No such module 'WebRTC'

daniloapr opened this issue · 2 comments

After adding livekit_client: ^1.1.2 dependency, the Codemagic CI stoped working. It's working fine on actual device or emulator.

Any clues on how can I fix it?

    /Users/builder/programs/flutter/.pub-cache/hosted/pub.dartlang.org/livekit_client-1.1.3/ios/Classes/LiveKitPlugin.swift:1:8: error: no such module 'WebRTC'
    import WebRTC
           ^
    note: Using new build system
    note: Planning
    note: Build preparation complete
    note: Building targets in dependency order
    /Users/builder/clone/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.5.99. (in target 'ReachabilitySwift' from project 'Pods')
    /Users/builder/clone/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.5.99. (in target 'OrderedSet' from project 'Pods')
    /Users/builder/clone/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.5.99. (in target 'FMDB' from project 'Pods')

    Result bundle written to path:
    	/var/folders/w2/rrf5p87d1bbfyphxc7jdnyvh0000gn/T/flutter_tools.VLlsGm/flutter_ios_build_temp_dirbSGFOC/temporary_xcresult_bundle


Swift Compiler Error (Xcode): No such module 'WebRTC'
/Users/builder/programs/flutter/.pub-cache/hosted/pub.dartlang.org/livekit_client-1.1.3/ios/Classes/LiveKitPlugin.swift:0:7

Encountered error while archiving for device.

flutter doctor

[✓] Flutter (Channel stable, 3.0.5, on macOS 12.5.1 21G83 darwin-arm, locale en-BR)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] VS Code (version 1.71.0)
[✓] Connected device (5 available)
[✓] HTTP Host Availability

• No issues found!

hey @daniloapr, Can you try to upgrade flutter to 3.3.1? This is an xcode setting problem. Regarding arm 32bit, ios 32bit has been deprecated in the new flutter. There is an issue in the upgrade and it should be resolved

This is a transitional issue with the version of flutter and Xcode. It should be fixed by updating to the latest Xcode and flutter sdk, so close this issue. If the issue still exists, please reopen it.