Build issue with Library: file not of required architecture

Discussion in 'iOS Programming' started by donaghy, Feb 8, 2010.

  1. donaghy macrumors member

    Joined:
    Aug 6, 2009
    #1
    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.
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    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...
     
  3. donaghy thread starter macrumors member

    Joined:
    Aug 6, 2009
    #3
    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.
     

Share This Page