Tuesday, December 3, 2013

iphone link SQLite3 loading error ...

Procedure: Use Xcode4.3.3 do a SQLite3 database link, you first need to load the directory / Developer / Platforms / iPhoneOS.platform / Developer / SDKs / libsqlite3.0.dylib file iPhoneOS.sdk / usr / lib under.
Problem Description: Xcode4.3.3 no previous versions of add -> Existing Frameworks option, so I opened the catalog directly drag the file over, choose Create groups for any added folders, and then compile directly being given,
Given the following information:

ld: warning: ignoring file / Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk/usr/lib/libsqlite3.dylib, missing required architecture i386 in file
ld: warning: ignoring file / Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk/usr/lib/libSystem.dylib, missing required architecture i386 in file
ld: in / Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk/usr/lib/libobjc.A.dylib, missing required architecture i386 in file for architecture i386
clang: error: linker command failed with exit code 1 (use-v to see invocation)

Add library is not the case here, add it? ? ? Friends want to know answers to the next, to find another example iphone link Sqlite mail: aroundinyour@vip.qq.com Thank you very much ...
Reply:
I xcode 4.3.1 added no problem at all, ah, but I was not dragged into the. 4.3 is add -> Existing Frameworks options. And 3.X just a little different. First point of the project, and then build phases, and then find the link binary with libraries, and then point the + bottom left corner, you have to input the system library can be added into it.
Reply:
cited a floor reply:
my xcode 4.3.1 added no problem at all, ah, but I was not dragged into the. 4.3 is add -> Existing Frameworks options. And 3.X just a little different. First point of the project, and then build phases, and then find the link binary with libraries, and then point the + bottom left corner, you have to input the system library can be added into it.

So, I made a mistake, thank you very much.

No comments:

Post a Comment