Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined symbols for architecture x86_64 #39

Closed
Gordiii opened this issue Nov 11, 2013 · 2 comments
Closed

Undefined symbols for architecture x86_64 #39

Gordiii opened this issue Nov 11, 2013 · 2 comments

Comments

@Gordiii
Copy link

Gordiii commented Nov 11, 2013

Due to a new behaviour in iOS7 which caused me to believe there was an issue with my configurations sqlite3/sqlcipher/encrypted-core-data I added and removed various packages on my system. The behaviour was the fact sqlite built through compiling iOS generated two extra files, awl and shm (journal files). What was strange to me was that if I copied only the sqlite file to a different location no data would be retrieved/queried. This has now been resolved, however, I'm now encountering compilation issues with encrypted-core-data as shown below:

Undefined symbols for architecture x86_64:
"_sqlite3_bind_blob", referenced from:
-[EncryptedStore saveMetadata] in EncryptedStore.o
-[EncryptedStore bindProperty:withValue:forKey:toStatement:atIndex:] in EncryptedStore.o
"_sqlite3_bind_double", referenced from:
-[EncryptedStore bindProperty:withValue:forKey:toStatement:atIndex:] in EncryptedStore.o
___46-[EncryptedStore bindWhereClause:toStatement:]_block_invoke in EncryptedStore.o
"_sqlite3_bind_int", referenced from:
-[EncryptedStore bindProperty:withValue:forKey:toStatement:atIndex:] in EncryptedStore.o
"_sqlite3_bind_int64", referenced from:
-[EncryptedStore newValuesForObjectWithID:withContext:error:] in EncryptedStore.o
-[EncryptedStore newValueForRelationship:forObjectWithID:withContext:error:] in EncryptedStore.o
___59-[EncryptedStore handleInsertedObjectsInSaveRequest:error:]_block_invoke in EncryptedStore.o
___64-[EncryptedStore handleUpdatedObjectsInSaveRequest:cache:error:]_block_invoke in EncryptedStore.o
___58-[EncryptedStore handleDeletedObjectsInSaveRequest:error:]_block_invoke in EncryptedStore.o
-[EncryptedStore bindProperty:withValue:forKey:toStatement:atIndex:] in EncryptedStore.o
___46-[EncryptedStore bindWhereClause:toStatement:]_block_invoke in EncryptedStore.o
...
"_sqlite3_bind_text", referenced from:
.....

  ...

"_sqlite3_value_text", referenced from:
_dbsqliteRegExp in EncryptedStore.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Just throwing out the question, has anything changed recently that may have caused this?

I'm using SQLite version 3.7.17.

@Gordiii
Copy link
Author

Gordiii commented Nov 11, 2013

Seems like my configuration problems... I moved the folder where I had the files back to the original subdirectory (not in /Users//Documents/.... ) has resolved the compilation problem.

@Gordiii Gordiii closed this as completed Nov 11, 2013
@gavin-black
Copy link
Member

Glad you got it resolved, and also nice to see someone putting the library through it's paces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants