flutter_local_notifications icon indicating copy to clipboard operation
flutter_local_notifications copied to clipboard

[iOS] Conflict with OpenCV

Open MarkerwApk opened this issue 2 years ago • 2 comments

Hi,

I can't build app with plugin and OpenCv Library. I have conflicts:

`duplicate symbol 'OBJC_CLASS$_Converters' in: /Users/user/Workspace/Flutter/libero/build/ios/Debug-gkDev-iphoneos/flutter_local_notifications/flutter_local_notifications.framework/flutter_local_notifications4 /Users/user/Workspace/Flutter/libero/ios/opencv2.framework/Versions/A/opencv2[arm64]841

duplicate symbol 'OBJC_METACLASS$_Converters' in: /Users/user/Workspace/Flutter/libero/build/ios/Debug-gkDev-iphoneos/flutter_local_notifications/flutter_local_notifications.framework/flutter_local_notifications4 /Users/user/Workspace/Flutter/libero/ios/opencv2.framework/Versions/A/opencv2[arm64]841

d: 2 duplicate symbols clang: error: linker command failed with exit code 1 (use -v to see invocation) `

Can You help me found solution?

MarkerwApk avatar Nov 20 '23 14:11 MarkerwApk

Not able to help you with this with my knowledge. Ideas that comes to mind are perhaps the issue is with the library you're using or there's a clash in that both have the same class name. If it's the latter then it means that both libraries may need to consider changing the name. You may possibly need to also consider a fork. Happy for you to submit a PR that renames the class to this plugin as well

MaikuB avatar Nov 30 '23 10:11 MaikuB

I create PR: https://github.com/MaikuB/flutter_local_notifications/pull/2175

MarkerwApk avatar Dec 04 '23 06:12 MarkerwApk