missing required architecture i386 in file

Apr 5, 2011 at 2:53 PM


I am getting below warning when I try to add libMSODataLib.a framework in my iPad app.

ld: warning: in /Users/User1/Desktop/ODataSDK/framework/bin/odatalib/lib/iPhoneSimulatorLibs/iPhone_Simulator_3.2/release/libMSODataLib.a, missing required architecture i386 in file


Can anyone help me around it?

Apr 8, 2011 at 2:44 PM

There is a libMSODataLib.a for the simulator and for the device.  You need to reference the device lib in order for it to work on your iPad.  To get around not having to switch my reference each time I created build conditions for the simulator that reference the odata simulator lib and another one that was for any iOS SDK for the device lib.  To add build conditions, click on the library search path and in the lower left is a drop down for build conditions.