简体   繁体   中英

FMDB compatibility to Xcode 4.2

I've used FMDB in the past when working with a database application on the iPhone. After the upgrade to Xcode 4.2 I can no longer access the FMDB (errors are given).

Is there an easy way to access databases that are similar to using the FBDB library?

Here is the error image after I removed all the release And autorelease?

在此处输入图片说明

Error:

duplicate symbol _main in /Users/omaktechnologies/Library/Developer/Xcode/DerivedData/VDineOrdering-akmhhdfmiobkmshbfvwzffnedyaf/Build/Intermediates/VDineOrdering.build/Debug-iphonesimulator/VDineOrdering.build/Objects-normal/i386/fmdb.o and /Users/omaktechnologies/Library/Developer/Xcode/DerivedData/VDineOrdering-akmhhdfmiobkmshbfvwzffnedyaf/Build/Intermediates/VDineOrdering.build/Debug-iphonesimulator/VDineOrdering.build/Objects-normal/i386/main.o for architecture i386 Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1

FMDB works fine in XCode 4.2, there must be a project configuration issue.

The only other viable path to take is Core Data.

EDIT: After seeing the errors you have, remove fmdb.m from your target. The only classes/categories that you should be compiling for FMDB are:

FMDatabase FMDatabaseAdditions FMResultSet

Those are all I have.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM