Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

donaghy

macrumors member
Original poster
Hi all,

I've using the Cloudmade maps API in my app. It runs and builds fine in the simulator but when I try to build it using the iPhone device get the following error:

warning: in /Volumes/shared/GoogleMaps/libs/CloudMade/Device/libCloudMadeApi.a, file is not of required architecture

This is my other linker file:
OTHER_LDFLAGS[sdk=iphoneos*][arch=*] = -ObjC -lCloudMadeApi -lMapView -lProj4

This is my library search path:
LIBRARY_SEARCH_PATHS[sdk=iphoneos*] = "$(SRCROOT)/libs/CloudMade/Device" "$(SRCROOT)/libs/Proj4/Device" "$(SRCROOT)/libs/route-me/Device"


Can anyone give me any ideas how to resolve issue.
 
Did you download a Binary of the library? If so you need to check if they supplied both Intel and ARM versions? You need Intel for the simulator and ARM for a real device...
 
Deleted the library and re-added the latest version I got from Cloudmade, problem solved. I've done something stupid along the line but all good now, just wish i didnt spend hours looking at it.

cheers.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.