1
votes

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?

enter image description here

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

1
What exactly are the errors you're receiving? - Ryan Wersal
4.2 doesn't necessarily mean ARC. You're saying you modified the FMDB project to remove all release/autorelease messages? I can't quite make out your error screenshot... you should probably copy/paste the text of the error. - livingtech
@livingtech I added the error below. - Gayan

1 Answers

1
votes

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.