AgoraIO-Extensions / iris_method_channel_flutter

iris_method_channel is a method channel that communicate between C/C++(iris) and dart, which is used by Agora Flutter SDKs.
MIT License
2 stars 3 forks source link

Failed to load dynamic library 'iris_method_channel.framework/iris_method_channel' after remove the use_frameworks! in Podfile #71

Closed littleGnAl closed 1 year ago

littleGnAl commented 1 year ago

Some customers report the error below after use_frameworks! in the ios/Podfile is removed.

Unhandled exception:
Invalid argument(s): Failed to load dynamic library 'iris_method_channel.framework/iris_method_channel': dlopen(iris_method_channel.framework/iris_method_channel, 0x0001): tried: 'iris_method_channel.framework/iris_method_channel' (errno=2), '/private/preboot/Cryptexes/OSiris_method_channel.framework/iris_method_channel' (errno=2),

After some search, it causes by the static library symbols striping issue when using with ffi. https://github.com/dart-lang/sdk/issues/44328#issuecomment-855682903 https://medium.com/flutter-community/using-ffi-on-flutter-plugins-to-run-native-rust-code-d64c0f14f9c2