Select to view content in your preferred language

How to add libAGSiPhone.a into iPhone OS Application Project??

1719
3
04-21-2010 10:14 PM
shinkookim
New Contributor
Hello, I installed ArcGIS API for iPhone SDK,
and I succeeded to show MapServives with ArcGIS Templates in XCode.

And, I just made Project with iPhone OS Application(View-Based) And I'd try to Add Map on the View.
So I Added frameworks which are QuartzCore, CoreLocation, CoreGraphics And libAGSiPhone.a.

But, Compiler says several errors which is
1. AGSiPhone.h : No such file or directory
2. Expected specifier-qualifier-list before 'AGSMapView'

If I write the code #import "AGSMapVIew.h", Compiler says same as upper massages.

How Could I make Project with iPhone OS Application(View-Based) to show Map on the View, properly.
Is there something else? to show Map on the View.
0 Kudos
3 Replies
DiveshGoyal
Esri Regular Contributor
Have you tried using an ArcGIS Project template instead of a standard iPhone template? The ArcGIS template will add the necessary ArcGIS libraries for you.

You can find more info here : http://help.arcgis.com/en/arcgismobile/10.0/apis/iPhone/concepts/index.html#/Creating_a_New_Xcode_Pr...

_
Divesh
0 Kudos
shinkookim
New Contributor
I'm just wondering that how I can show a AGSMapView on the View without ArcGIS Templete.
In other word, My question is How I can make ArcGIS Templete?

However, WebSite You write above is very very helpful for me!!
Thank you for answer, Technobrat.
0 Kudos
DiveshGoyal
Esri Regular Contributor
If you don't want to use an ArcGIS project template, but instead want to use the ArcGIS SDK in a standard iPhone project template or an existing project  , the above link I provided contains information on which project settings to modify. See the Using iPhone Application Project Templates section.

_
Divesh
0 Kudos