Skip to content

SQLCipher in ios6 Undefined symbols for architecture armv7s (architecture already changed) #44

Closed
@jeven36

Description

@jeven36

Hi,

I have a problem building sqlcipher with xcode 4.5.2. Basically I followed the examples at http://mobileorchard.com/tutorial-iphone-sqlite-encryption-with-sqlcipher/ and http://sqlcipher.net/ios-tutorial/ . Unfortunately I end up with a message telling me that the ssl lib and the sqlcipher lib are not build for armv7s.

Error message:

ld: warning: ignoring file /Users/jeven/Library/Developer/<...>/Debug-iphoneos/libsqlcipher.a, file was built for archive which is not the architecture being linked (armv7s): /Users/jeven/Library/Developer/<...>/Debug-iphoneos/libsqlcipher.a
ld: warning: ignoring file /Users/jeven/Library/Developer/<...>/Debug-iphoneos/libcrypto.a, file was built for archive which is not the architecture being linked (armv7s): /Users/jeven/Library/Developer/<...>/Debug-iphoneos/libcrypto.a

Undefined symbols for architecture armv7s:
      "_sqlite3_prepare_v2", referenced from:
...

I know this has been posted a couple of times but I already changed the target architecture for the openssl and the sqlcipher projects, as you can see in the following screen shots.

openssl:
openssl

sqlcipher:
sqlcipher

I am really kind of stuck here :( Does anyone has a hint for me?

(I posted this question also at stack overflow.com and I promise to cross link the answer ;) )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions