Agora-Flutter-RTM-SDK icon indicating copy to clipboard operation
Agora-Flutter-RTM-SDK copied to clipboard

aosl.xcframework conflict with Agora-Flutter-SDK

Open vakrolme opened this issue 4 months ago • 0 comments

Version of the agora_rtm

2.2.1 or main branch here

Platforms affected

  • [ ] Android
  • [X] iOS
  • [ ] macOS
  • [ ] Windows
  • [ ] Web

Steps to reproduce

clone Agora-Flutter-SDK/example. Update pubspec to add:

  agora_rtm: 2.2.1

Delete aosl.xcframework from Pods directory, as outlined here. Launch in debug mode. Use VScode or Xcode to build/run.

Expected results

Project compiles and runs

Actual results

Any run or build command launches pod install which re-installs aosl.xcframework and the process errors.

Doing pod deintegrate, flutter clean, clearing cache, deleting pubspec and podfile .lock files, cleaning xcode build folder, updating cocoapods, nothing of that nature helps.

When compiling from xcode, what happens a lot is also The sandbox is not in sync with the Podfile.lock, or Module 'agora_rtc_engine' not found in flutter.

Code sample

No response

Screenshots or Video

No response

Logs

Logs

    -> Installing permission_handler_apple (9.1.1)
      - Running pre install hooks
    [!] The 'Pods-Runner' target has frameworks with conflicting names: aosl.xcframework.
/Users/userk/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/xcode/target_validator.rb:67:in `verify_no_duplicate_names' 
/Users/userk/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/xcode/target_validator.rb:54:in `block (2 levels) in verify_no_duplicate_framework_and_library_names' 
/Users/userk/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/xcode/target_validator.rb:48:in `each_key' 
/Users/userk/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/xcode/target_validator.rb:48:in `block in verify_no_duplicate_framework_and_library_names' 
/Users/userk/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/xcode/target_validator.rb:47:in `each' 
/Users/userk/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/xcode/target_validator.rb:47:in `verify_no_duplicate_framework_and_library_names' 
/Users/userk/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/xcode/target_validator.rb:37:in `validate!' 
/Users/userk/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:666:in `validate_targets' 
/Users/userk/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:164:in `install!' 
/Users/userk/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/command/install.rb:52:in `run' 
/Users/userk/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run' 
/Users/userk/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/command.rb:52:in `run' 
/Users/userk/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/bin/pod:55:in `' 
/Users/userk/.rbenv/versions/3.3.4/bin/pod:25:in `load' 
/Users/userk/.rbenv/versions/3.3.4/bin/pod:25:in `'
Error: Error running pod install

Exited (1).

Flutter Doctor output

Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.3, on macOS 14.6.1 23G93 darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.2)
[✓] VS Code (version 1.93.1)
[✓] Connected device (5 available)
[✓] Network resources

• No issues found!

vakrolme avatar Sep 29 '24 10:09 vakrolme