Monday, July 26, 2010

iPhone ios 4.0 build error : missing i386 architecture

Seriously, why does Apple and other software vendors have to change the configuration for every release?


Anyways, I got ios4.0 couple of weeks ago. I finally started to develop my first ios4.0 app. I realized that the compiler does not work at all, when i attempted to port code over from 3.2. 


XCode 3.2.1 will not recognize the sqlite lib3 libraries at all.  I just had to import the library in sdk 3.2 and it worked like a charm. It is not the case in ios4.0.


Tips to make it work in ios4.0:


Double click the executable in xcode. Open up the build tab and then scroll all the way down till you see Search paths node and in the element Library search paths, add the following
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk or the equivalent sdk version.


If you are going to deploy the project, then replace the simulator with the device version.


So simple, but not much information available online.
Hope this helps