antvis / F2Native

📱📈An elegant, interactive and flexible native charting library for mobile.
https://f2native.antv.vision
MIT License
217 stars 21 forks source link

ios: F2 conflict with LBXZBarSDK #36

Open haogg opened 9 months ago

haogg commented 9 months ago

Describe the bug In Demos provided by the Offical, i met the error that The Xcode can't find "vector" in File "CanvasContext.h" , by adding F2( #pod 'F2' ) and LBXZBarSDK( #pod 'LBXZBarSDK').

To Reproduce ( 100% reproduce ) Steps to reproduce the behavior:

  1. Go to 'ios Demos provided by the Offical'
  2. open "podfile", we can see "pod 'F2'" in the file
  3. copy "pod 'LBXZBarSDK'" below "pod 'F2'".
  4. open terminal, execute "pod install"

Expected behavior no error and run normal

Screenshots image

weiqingtangx commented 3 months ago

I think the eror is because there are both Image.h in the two libraries, it happened to comile the F2Native Image.h wrongly when compile the LBXZBarSdk according the error msg.

I don't know exactly how to fix the compile error, may be rename of one of name of Image.h could be the resolution.

Untitled 7