AGSMapView doesn't appear in the list of class

1129
7
12-14-2011 03:05 AM
JoseMorales
New Contributor
I'm following this tutorial to create a project with ArcGIS API for iOS: http://help.arcgis.com/en/arcgismobile/10.0/apis/iOS/2.1/concepts/index.html#/Displaying_A_Map/00pw0...

When I want choose the AGSMapView class , this doesn't appear in the list of class. Finaly when I built de project this failed.

This is the message of error: Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_AGSTiledMapServiceLayer", referenced from:
      objc-class-ref in ViewController.o

Anyone know what happening? Maybe a library is not linked?

Thanks
0 Kudos
7 Replies
JoseMorales
New Contributor
Sorry, I forget it. I work with Xcode 4.2, ArcGIS for iOS 2.1 y Mac OS X Lion 10.7.2
0 Kudos
NimeshJarecha
Esri Regular Contributor
You must also specify the -ObjC and -all_load linker flags in your project's 'Other Linker Flags' build setting. Do you have these set?

Regards,
Nimesh
0 Kudos
JoseMorales
New Contributor
Yes I have. I follow all the tutorial steps but I have doubt about "User Header Search Paths", $(HOME)/Library/SDKs/ArcGIS/iOS.sdk/usr/local/include/**, maybe it is ".../include/*.*".

I see the sample MapViewDemo and work fine. That sample include the library "libArcGIS.a". It is necesary in my project???
0 Kudos
NimeshJarecha
Esri Regular Contributor
Yes, everything is in the "libArcGIS.a" and you must add it to your project. Along with that you must  follow steps outlined in Setting up your XCode project.

Regards,
Nimesh
0 Kudos
JoseMorales
New Contributor
Ok, how to link libArcGIS.a library in Xcode 4?

I have seen that in sample MapViewDemo is highlighted in red color.
0 Kudos
NimeshJarecha
Esri Regular Contributor
The detail steps are outlined in the Configuring an Xcode Project.

Regards,
Nimesh
0 Kudos
JoseMorales
New Contributor
Thank you very much!!
0 Kudos