just can't add ArcGIS SDK to my project.

308
2
Jump to solution
07-17-2012 01:27 PM
JamieChristensen
New Contributor II
Hello,

This is my first time developing with ArcGIS SDK.  I installed the latest SDK 2.3 and I see ArcGIS.framework and Samples folder.

I added MapViewDemoViewController xib and h/m files from the samples folder and added to my project to test but I get this error.  

Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_MapViewDemoViewController", referenced from:
      objc-class-ref in TestMapViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)



I followed
1. Did install of v2.2 successfully completed?
2. Do you see ArcGIS.framework and Samples folder under ${HOME}/Library/SDKs/ArcGIS?
3. You mentioned that the Framework Search Paths in build settings of MapViewDemo is $HOME/Library/SDKs. It must be either ${HOME}/Library/SDKs/** or ${HOME}/Library/SDKs/ArcGIS.
4. Do you see 'Other Linker Flags' set to -ObjC -all_load -framework ArcGIS -lstdc++?

from other link from this site.


Any ideas?  (sample project works though so I assume it's installed correctly.)

Thanks
0 Kudos
1 Solution

Accepted Solutions
PaulLohr
Regular Contributor
Do you have all the dependent libraries added to your project?

See "2. Add dependent libraries" at the link below.

http://resources.arcgis.com/en/help/runtime-ios-sdk/concepts/#/Configuring_an_Xcode_Project/00pw0000...

View solution in original post

0 Kudos
2 Replies
PaulLohr
Regular Contributor
Do you have all the dependent libraries added to your project?

See "2. Add dependent libraries" at the link below.

http://resources.arcgis.com/en/help/runtime-ios-sdk/concepts/#/Configuring_an_Xcode_Project/00pw0000...

View solution in original post

0 Kudos
JamieChristensen
New Contributor II
Yes, I got all of the references in that list.

I read and followed it but same error.


-update: it was me, I forgot that I referenced the file viewcontroller from the demo project instead of copying the file.  But adding dependent libraries helped as well.
0 Kudos