Select to view content in your preferred language

Installation issues of the new ArcGIS Runtime SDK for iOS V10.1.1.142

5245
12
01-10-2013 12:31 PM
ShiminCai
Frequent Contributor
Hi there,

I'm new to Apple and the ArcGIS SDK for iOS and may be asking silly questions or have done something wrong...

I just uninstalled the ArcGIS Runtime SDK for iOS version 2.3.2 and downloaded and installed the new version 10.1.1 on my MacBook Air (OS X 10.8.2). The uninstall and install went smoothly. I checked based on the install summary and confirmed that the new version has been installed in the following directories in the Finder:
    Macintosh HD/Library/SDKs/ArcGIS/iOS/ArcGIS.framework
    Macintosh HD/Library/SDKs/ArcGIS/iOS/Samples
    Macintosh HD/Library/Developer/Shared/Documentation/SocSets
    Macintosh HD/Library/Application Support/AGSiOSRuntimeSDK

However, when I went through the steps of the Configuring an Xcode Project in the Getting Started section of the ArcGIS Runtime SDK for iOS online help, in the step 1 Add ArcGIS to the Framework Search Paths, the recommended Framework Search Path: $(HOME)/Library/SDKs/ArcGIS/iOS/** does not seem to be valid because there is no iOS directory in my home directory: Macintosh HD/Users/shiminc/Library/SDKs/ArcGIS, under which there is only one directory called Samples, and I guess they might be the leftovers of the version 2.3.2... As a result of the issue, Xcode couldn't find the <ArcGIS/ArcGIS.h>...

Just wondering if the new SDK is really installed in the home directory or what I could have done wrong? I think the 2.3.2 seemed working fine...

Thank you,

Shimin Cai
0 Kudos
12 Replies
NimeshJarecha
Esri Regular Contributor
Hi Shimin,

Seems that user(you) is a root user. Hence package is getting installed at /Library instead of ~/Library. Here is article from Apple, Enabling and using the "root" user in Mac OS X. Try disabling user (you) as root user and it should work.

I'm suggesting this because in your install log, one line reads, "Set authorization level to root for session". Actually, it should be, "Set authorization level to none for session".

Hope this helps!

Regards,
Nimesh"
0 Kudos
ShiminCai
Frequent Contributor
Hi Nimesh,

I checked that the root user is not enabled according to the instructions in the article you referred to. Now how do I disable my account as a root user? I googled and everybody is talking about how to disable/enable the actual "root" account in Mac OS X...

Actually does it really matter that the SDK needs to be installed in the ~/Library? What would be the implications if the SDK is installed in the /Library? Can you confirm this please?

I think if the install location doesn't affect development and deployment I wouldn't care where the SDK is installed. In my case I just need to set the Framework Search Path to point to the /Library and it has been working fine...

Thanks,

Shimin
0 Kudos
Scott_C_Smith
New Contributor
Hi Shimin, Nick, Divesh et al.,
Nice to see this discussion as I think I am having the same exact issue.

I have followed all the steps meticulously, but when I try to run MyProject after adding

#import <ArcGIS/ArcGIS.h>

to my ViewController.h file, I'm getting the error message

'ArcGIS/ArcGIS.h' file not found

I will read through the thread again and see if there's an easy answer hiding in there, as it seems from your comments that uninstalling, reinstalling, changing the root, etc is too complicated at the moment.

Scott
(Hi Nick!  You helped me at the Esri UC Hackathon in San Diego)

EDIT:
A few hours later, it's fixed!

Here's what fixed it.  I uninstalled. Re-installed exactly the same way.  But then instead of assuming the ArcGIS.framework would be where Xcode needed it, I:

1) went to Build Phases of my Xcode target project
2) went to the Link Binary with Libraries heading
3) clicked +, then chose the Add Other button since ArcGIS.framework was not already there
4) navigated to ~/Library/SDKs/ArcGIS/iOS/ArcGIS.framework
5) clicked Open when the entire ArcGIS.framework folder was selected
6) the 'toolbox' log appeared with ArcGIS
7) hit Run in Xcode (having done the previous set up earlier) and Voila!

** NOTE:  I would not have been able to do this if I had previously used Terminal to command:
sudo chflags nohidden ~/Library/
[It did not work for me without 'sudo' as the tutorial has it; Nick Furness helped me with that].

I assume that what I did manually was supposed to have been handled by including
-all_load -ObjC -framework ArcGIS
in the Other Linker Flags heading under Build Settings (step 3 in the tutorial).

I don't know why that didn't work for me.  I checked and double checked that I'd done it exactly as directed.

So I hope this solution helps anyone else that runs into a similar problem.
0 Kudos