Fintasys / emoji_picker_flutter

A Flutter package that provides an Emoji picker widget with 1500+ emojis in 8 categories.
MIT License
164 stars 125 forks source link

Library not loaded: @rpath/libswiftCore.dylib #45

Closed 451518849 closed 2 years ago

451518849 commented 2 years ago

When I run it on iOS Simulator device, it show this error:"xxxxxx/Build/Products/Debug-iphonesimulator/libswiftCore.dylib' (no such file)"

Fintasys commented 2 years ago

@451518849 I can't reproduce this issue on iOS and this error message seems not to be related with this library. I would need a little bit more information to help you.

451518849 commented 2 years ago

I found the same problem in react:0.62 – dyld: Library not loaded: @rpath/libswiftCore.dylib #27 . It seems happened in iOS version >= 12.2, and my iOS Simulator version is iOS 15.0.

I have found solution here:This copy of libswiftCore.dylib requires an OS version prior to 12.2.0

And if I remove the swift file in ios “SwiftEmojiPickerFlutterPlugin.swift” from emoji_picker_flutter,the problem can also be resolved.

Maybe you need to rewrite the plugin file in iOS to compatible with higher iOS versions .

Fintasys commented 2 years ago

@451518849 Mh I took a look and the problem seems not very common. I tried and could build the emoji_picker_example without any issue on my iPhone 13 iOS 15.2 Simulator. Can you check out the repository and try to run the sample in the example folder? If that can be build without issue there must be a problem in your project being somehow incompatible with this library 🤔 Also which version of the library & flutter are you using?