tekartik / sqflite

SQLite flutter plugin
BSD 2-Clause "Simplified" License
2.88k stars 526 forks source link

FMDB dependency conflict. #352

Open choykarl opened 4 years ago

choykarl commented 4 years ago

My project FMDB depends on the 2.6.2 version. Can I change the FMDB dependency to 2.6.2 in sqflite.podspec? Does this affect sqflite?

alextekartik commented 4 years ago

I'm no expert in iOS build but I know some people has overriden FMDB to 2.8 so I guess it should be possible. sqflite.podspec should not be the proper place though. I guess it can be overriden in your app Pod file but I'm not sure how. If someone can help here...I'll be happy to add the information in the doc.

ksuena0213 commented 4 years ago

Same issue here. Please let me know how to fix it?

AkioAlex0817 commented 4 years ago

Hi. Thanks for your awesome packages. I also have this issue. Please fix it.

alextekartik commented 4 years ago

Hard for me to investigate if I don't have a way to reproduce your context. If you have such issue is that you have likely a dependency on FMDB somehow. Does anyone has a simple project with this issue so I can try. Has anyone tried to simply specifiy the FMDB version used in the main Podfile (https://stackoverflow.com/questions/45281715/how-to-change-the-version-of-a-cocoapods-dependency)?

choykarl commented 4 years ago

Hard for me to investigate if I don't have a way to reproduce your context. If you have such issue is that you have likely a dependency on FMDB somehow. Does anyone has a simple project with this issue so I can try. Has anyone tried to simply specifiy the FMDB version used in the main Podfile (https://stackoverflow.com/questions/45281715/how-to-change-the-version-of-a-cocoapods-dependency)?

@alextekartik The FMDB version that my project depends on is 2.6.2, and the version that your sqflite depends on is 2.7.2. If I change the version in your Podfile to 2.6.2, will it affect sqflite?

alextekartik commented 4 years ago

If I change the version in your Podfile to 2.6.2, will it affect sqflite?

I have no idea sorry. The same question could be asked on your project (if you change your dependency version to 2.7.2, does it affect your app). Some people already ask to migrate to 2.8 which causes some incompatibility with earlier iOS version. The first thing to try is to override the dependency locally (if you can find how to).