BWDB SQLite wrapper for iOS ARC issues

后端 未结 2 892
鱼传尺愫
鱼传尺愫 2020-12-22 12:21

I am trying to use Bill Weinman\'s BWDB wrapper, which can be downloaded here: http://bw.org/iosdata/

I can\'t convert it to ARC properly, can someone more experienc

相关标签:
2条回答
  • 2020-12-22 12:44

    I don't know if you picked up BWDB from the Lynda training class or some other source, but I tried it and subsequently shifted to FMDB another wrapper which is more complete and, incidentally, is already ARC-enabled. If you're not wed to BWDB, you might want to check out FMDB.

    If you want to stick with BWDB, you might just flag it as non-ARC in your target settings' "Build Phases" by double clicking on BWDB.m file in the "Build Phases" and specify -fno-objc-arc. There's no need to convert to ARC if you don't want to. You can generally use non-ARC code in your ARC project this way. See the "Can I opt out of ARC for specific files?" section of the Transitioning to ARC FAQ.

    0 讨论(0)
  • 2020-12-22 12:45

    Within the past few weeks Lynda.com has released an updated version of Bill Weinman's course, entitled, iOS SDK and SQLite: Building Data-Driven Apps.

    This new version addresses the ARC issues. I have compiled it using ARC and it compiles just fine.

    0 讨论(0)
提交回复
热议问题