eddy-lau / OpenCV-Dynamic-Framework

Apache License 2.0
1 stars 1 forks source link

[!] The 'Pods-Runner' target has transitive dependencies that include statically linked binaries: (/example/ios/Pods/OpenCV-Dynamic-Framework/opencv2.xcframework) #2

Open josephmangmang opened 2 months ago

josephmangmang commented 2 months ago

[!] The 'Pods-Runner' target has transitive dependencies that include statically linked binaries: (/example/ios/Pods/OpenCV-Dynamic-Framework/opencv2.xcframework) Do you have idea how to fix this?

eddy-lau commented 2 months ago

Try to add this line in your Podfile:

use_frameworks! :linkage => :static
josephmangmang commented 2 months ago

Try to add this line in your Podfile:

use_frameworks! :linkage => :static

Yes this one solve the issue and also the s.static_framework=true but problem with these solutions is I can no longer find my cpp function in Flutter FFI using DynamicLibrary.process() I'm still looking to solve this static binary issue while maintaining the cpp function to be accessible in dart.

josephmangmang commented 2 months ago

my bad, this package works well when adding to my flutter plugin. No need to make it static framework.

josephmangmang commented 2 months ago

Screenshot 2024-08-14 at 3 29 45 PM

oh so on OpenCV-Dynamic-Framework (4.8.0-b1) issue is still there.

josephmangmang commented 2 months ago

OpenCV-Dynamic-Framework (4.5.5) can be use without error, but 4.8.0-b1 is showing linked binary error