EPNW / opus_flutter

Repository for the federal organized opus_flutter plugin, which is needed to easily obtain a DynamicLibrary of opus for the use in opus_dart on flutter platforms.
https://pub.dev/packages/opus_flutter
10 stars 13 forks source link

Cannot build example app #16

Open adityawibisana opened 6 months ago

adityawibisana commented 6 months ago

Steps:

  1. Clone https://github.com/EPNW/opus_flutter/tree/master
  2. Navigate to opus_flutter > Example
  3. Open Project in VSCode
  4. Launch

Expectation:

Reality:

Launching lib/main.dart on iPhone 14 Pro in debug mode...
Xcode build done.                                            2.6s
Failed to build iOS app
Error (Xcode): Framework not found opus

Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)

Could not build the application for the simulator.
Error launching application on iPhone 14 Pro.

Exited (1).

And here is my flutter doctor: Doctor summary (to see all details, run flutter doctor -v):

[✓] Flutter (Channel stable, 3.19.3, on macOS 13.6.1 22G313 darwin-arm64, locale en-ID)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.2)
[✓] VS Code (version 1.87.2)
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!

So, can someone help me, please? Thanks in advance.

lorisgir commented 5 months ago

Same here, cannot build for iOS simulator while on Android I can

bayasdev commented 5 months ago

Same problem here

EPNW-Eric commented 3 months ago

I think not all architectures of the simulator are supported, see here: https://github.com/EPNW/opus_xcframework/tree/main/opus.xcframework. In particular, arm64 as host seems to be mssing.

Have you tried a real device?