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

4515
12
01-10-2013 12:31 PM
ShiminCai
Occasional Contributor III
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
Nicholas-Furness
Esri Regular Contributor
This has happened to me once but I couldn't reproduce it. I fixed it by uninstalling from wherever it got installed and running the installer package again. Then it was in the ~/Library... location.

I can't quite recall but I may also have rebooted between uninstalling and reinstalling.

I'm not happy with this answer, but it might get you going again until the real answer appears 🙂

Let me know whether it works?

Cheers,

Nick

P.S. Caveat: I'm not on the iOS team - they might have a better idea of the problem.

EDIT:

Ah yes. Now I see your response below, I recall that I had to manually delete the /Library/SDKs directory (not ~/Library/SDKs, mind you!) and the /Library/Application Support/AGSiOSRuntimeSDK directory because, as Divesh mentions, the uninstall script doesn't touch those 🙂

Once I'd deleted those (and made sure I didn't have one under ~/Library), I just tried again and it worked. However, I'm not so confident that'll work for you given your other replies.

Nick.
0 Kudos
ShiminCai
Occasional Contributor III
Thanks Nick for your reply. It's a relief that I'm not alone...

The install summary did report that it was installed at ~/Library/... locations but I found in the Finder that it is in the locations I listed in my initial post.

I tried uninstalling it but the uninstallAGSiOSSDK script at Macintosh HD/Library/Application Support/AGSiOSRuntimeSDK does not seem to uninstall anything. I located the script in the Finder and right click it. On the popup menu I selected the Open with Terminal and the uninstall started and completed without any error, but surprisingly everything was still there... Of course, I rebooted my MacBook many times...

With it not being uninstalled, I was still able to run the AGSRuntimeSDKiOSv10.1.1.pkg again and got the same successful install summary report and the SDK is still in the same locations...

For MyFirstMapApp up and running, I did not set the ArcGIS Framework Search Path as documented in the step 1 of the Configuring an Xcode Project. Instead I manually added the ArcGIS.framework to the project, and of course, followed the rest of the steps in the document. Then it is working fine...

I had to do the same for the installed sample MapViewDemo app, otherwise it just can't be built...

Hopefully the iOS team can give me some ideas what is happening...

Thanks again and cheers,

Shimin
0 Kudos
DiveshGoyal
Esri Regular 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


I am baffled why the SDK is getting installed under Macintosh HD/Library/. It should actually get installed under the Library folder of your home directory, which I assume is Macintosh HD/Users/shiminc.
Are you by any chance running the installer as root? And then running the XCode project as yourself?
0 Kudos
ShiminCai
Occasional Contributor III
I am baffled why the SDK is getting installed under Macintosh HD/Library/. It should actually get installed under the Library folder of your home directory, which I assume is Macintosh HD/Users/shiminc.
Are you by any chance running the installer as root? And then running the XCode project as yourself?


There is only one user account on my MacBook which is my account shiminc. Everytime I start the computer I must log in with my account. So I assume everything I do after login should be under my account...

The installer AGSRuntimeSDKiOSv10.1.1.pkg is located at the Downloads which is under the FAVORITES in the left-most panel of the Finder. I just double clicked the installer to start the install process and followed the onscreen instructions. I don't think I had any chance to specify where to install the SDK. If I drill down in the Finder, the installer is actually located in the Macintosh HD/Users/shiminc/Downloads. So the Downloads under the FAVORITES is just a shortcut to this path.

I don't understand how I ran the installer as root? It looks it was installed at the root. How do I correct it?

Thanks.

Shimin

P. S.: as mentioned before, now if I run the SDK uninstall script it DOES NOT uninstall anything at all...
0 Kudos
DiveshGoyal
Esri Regular Contributor
That is very strange. I do not understand why it is installing under /Macintosh HD

The uninstall script does not do anything, understandably, because it has been programmed to wipe clean the SDK artifacts under your $HOME folder. But since, there isn't any SDK installed there, it doesn't do anything.

Can you try to installing the SDK once again. But this time, wipe clean the remnants of the previous SDK under your $HOME/Library/SDKs folder.

Additionally, can you open up the Console application and make sure it is viewable along side the installation wizard. The console app is a nice way to troubleshoot issues on the mac. More info about it here. Let us know if you spot any logs related to AGS appear on the console.
0 Kudos
ShiminCai
Occasional Contributor III
Hi Divesh,

Thanks a lot for your help.

As instructed I deleted two folders related to the version 2.3.2 SDK in my home directory:
    the ArcGIS in the Macintosh HD/Users/shiminc/Library/SDKs
    the AGSiOSSDK in the Macintosh HD/Users/shiminc/Library/Application Support

I also checked the folder Macintosh HD/Users/shiminc/Library/Developer/Shared/Documentation/DocSets and there is nothing related to the ESRI/AGS.

Then after I opened up the Console app and inserted a marker, I started the installer and followed the instructions. At one stage the install wizard prompted for my login name and password and I made it happy. Then the install went ok and at the end I got the same successful install summary report. Unfortunately when I checked the $HOME/Library/SDKs folder it is empty... which means the install went somewhere else...

Here are the logs in the Console from the marker to the end of the installer:

12/01/13 1:52:42.679 PM Console[6303]:  Marker - 12/01/2013 1:52:42 PM
12/01/13 1:53:00.066 PM Dock[137]: no information back from LS about running process
12/01/13 1:53:00.398 PM Installer[6399]: CoreAnimation: warning, deleted thread with uncommitted CATransaction; set CA_DEBUG_TRANSACTIONS=1 in environment to log backtraces.
12/01/13 1:53:07.396 PM Installer[6399]: CoreAnimation: warning, deleted thread with uncommitted CATransaction; set CA_DEBUG_TRANSACTIONS=1 in environment to log backtraces.
12/01/13 1:53:11.744 PM Installer[6399]: CoreAnimation: warning, deleted thread with uncommitted CATransaction; set CA_DEBUG_TRANSACTIONS=1 in environment to log backtraces.
12/01/13 1:53:17.597 PM Installer[6399]: CoreAnimation: warning, deleted thread with uncommitted CATransaction; set CA_DEBUG_TRANSACTIONS=1 in environment to log backtraces.
12/01/13 1:53:37.286 PM coreservicesd[24]: Application App:"Installer" [ 0x0/0x685685]  @ 0x0x7fb2b0e933c0 tried to be brought forward, but isn't in fPermittedFrontASNs ( ( ASN:0x0-0x688688:) ), so denying.
12/01/13 1:53:37.286 PM WindowServer[75]: [cps/setfront] Failed setting the front application to Installer, psn 0x0-0x685685, securitySessionID=0x186a5, err=-13066
12/01/13 1:53:40.424 PM Installer[6399]: CoreAnimation: warning, deleted thread with uncommitted CATransaction; set CA_DEBUG_TRANSACTIONS=1 in environment to log backtraces.
    
Thanks again for your help. Really appreciated it.

Shimin
0 Kudos
ShiminCai
Occasional Contributor III
Hi Divesh,

Here are the install.log entries corresponding to that install in the /var/log for your information.

Thanks again,

Shimin

Jan 12 13:53:00 ShiminMacBookAir.local Installer[6399]: @(#)PROGRAM:Install  PROJECT:Install-735
Jan 12 13:53:00 ShiminMacBookAir.local Installer[6399]: @(#)PROGRAM:Installer  PROJECT:Installer-614
Jan 12 13:53:00 ShiminMacBookAir.local Installer[6399]: Hardware: MacBookAir5,2 @ 2.00 GHz (x 4), 8192 MB RAM
Jan 12 13:53:00 ShiminMacBookAir.local Installer[6399]: Running OS Build: Mac OS X 10.8.2 (12C2034)
Jan 12 13:53:00 ShiminMacBookAir.local Installer[6399]: Env: PATH=/usr/bin:/bin:/usr/sbin:/sbin
Jan 12 13:53:00 ShiminMacBookAir.local Installer[6399]: Env: TMPDIR=/var/folders/15/byw788wj2cx5gr5081hgwwh40000gp/T/
Jan 12 13:53:00 ShiminMacBookAir.local Installer[6399]: Env: SHELL=/bin/bash
Jan 12 13:53:00 ShiminMacBookAir.local Installer[6399]: Env: HOME=/Users/shiminc
Jan 12 13:53:00 ShiminMacBookAir.local Installer[6399]: Env: USER=shiminc
Jan 12 13:53:00 ShiminMacBookAir.local Installer[6399]: Env: LOGNAME=shiminc
Jan 12 13:53:00 ShiminMacBookAir.local Installer[6399]: Env: SSH_AUTH_SOCK=/tmp/launch-0Hcms4/Listeners
Jan 12 13:53:00 ShiminMacBookAir.local Installer[6399]: Env: Apple_Ubiquity_Message=/tmp/launch-YrcUmh/Apple_Ubiquity_Message
Jan 12 13:53:00 ShiminMacBookAir.local Installer[6399]: Env: Apple_PubSub_Socket_Render=/tmp/launch-lbF3D8/Render
Jan 12 13:53:00 ShiminMacBookAir.local Installer[6399]: Env: COMMAND_MODE=unix2003
Jan 12 13:53:00 ShiminMacBookAir.local Installer[6399]: Env: __CF_USER_TEXT_ENCODING=0x1F6:0:0
Jan 12 13:53:00 ShiminMacBookAir.local Installer[6399]: ArcGIS_Installer  Installation Log
Jan 12 13:53:00 ShiminMacBookAir.local Installer[6399]: Opened from: /Users/shiminc/Downloads/AGSRuntimeSDKiOSv10.1.1.pkg
Jan 12 13:53:00 ShiminMacBookAir.local Installer[6399]: Product archive /Users/shiminc/Downloads/AGSRuntimeSDKiOSv10.1.1.pkg trustLevel=202
Jan 12 13:53:17 ShiminMacBookAir.local Installer[6399]: InstallerStatusNotifications plugin loaded
Jan 12 13:53:24 ShiminMacBookAir.local Installer[6399]: ================================================================================
Jan 12 13:53:24 ShiminMacBookAir.local Installer[6399]: User picked Standard Install
Jan 12 13:53:24 ShiminMacBookAir.local Installer[6399]: Choices selected for installation:
Jan 12 13:53:24 ShiminMacBookAir.local Installer[6399]:  Upgrade: "ArcGIS_Installer"
Jan 12 13:53:24 ShiminMacBookAir.local Installer[6399]:  Upgrade: "SDK"
Jan 12 13:53:24 ShiminMacBookAir.local Installer[6399]:   AGSRuntimeSDKiOSv10.1.1.pkg#packageroot.pkg : com.esri.agsiossdk.pkg : 1
Jan 12 13:53:24 ShiminMacBookAir.local Installer[6399]: ================================================================================
Jan 12 13:53:24 ShiminMacBookAir.local Installer[6399]: It took 0.00 seconds to summarize the package selections.
Jan 12 13:53:24 ShiminMacBookAir.local Installer[6399]: -[IFDInstallController(Private) _buildInstallPlan]: location = file://localhost
Jan 12 13:53:24 ShiminMacBookAir.local Installer[6399]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Users/shiminc/Downloads/AGSRuntimeSDKiOSv10.1.1.pkg#packageroot.pkg
Jan 12 13:53:24 ShiminMacBookAir.local Installer[6399]: Set authorization level to root for session
Jan 12 13:53:37 ShiminMacBookAir.local runner[6408]: Administrator authorization granted.
Jan 12 13:53:37 ShiminMacBookAir.local Installer[6399]: Will use PK session
Jan 12 13:53:37 ShiminMacBookAir.local Installer[6399]: Starting installation:
Jan 12 13:53:37 ShiminMacBookAir.local Installer[6399]: Configuring volume "Macintosh HD"
Jan 12 13:53:37 ShiminMacBookAir.local Installer[6399]: Preparing disk for local booted install.
Jan 12 13:53:37 ShiminMacBookAir.local Installer[6399]: Free space on "Macintosh HD": 205.63 GB (205628784640 bytes).
Jan 12 13:53:37 ShiminMacBookAir.local Installer[6399]: Create temporary directory "/var/folders/15/byw788wj2cx5gr5081hgwwh40000gp/T//Install.6399Gy1dJt"
Jan 12 13:53:37 ShiminMacBookAir.local Installer[6399]: IFPKInstallElement (1 packages)
Jan 12 13:53:37 ShiminMacBookAir.local Installer[6399]: Using authorization level of root for IFPKInstallElement
Jan 12 13:53:37 ShiminMacBookAir.local installd[6412]: installd: Starting
Jan 12 13:53:37 ShiminMacBookAir.local installd[6412]: installd: uid=0, euid=0
Jan 12 13:53:37 ShiminMacBookAir.local installd[6412]: PackageKit: ----- Begin install -----
Jan 12 13:53:37 ShiminMacBookAir.local installd[6412]: PackageKit: request=PKInstallRequest <1 packages, destination=/>
Jan 12 13:53:37 ShiminMacBookAir.local installd[6412]: PackageKit: packages=(
     "PKLeopardPackage <file://localhost/Users/shiminc/Downloads/AGSRuntimeSDKiOSv10.1.1.pkg#packageroot.pkg>"
)
Jan 12 13:53:37 ShiminMacBookAir.local installd[6412]: PackageKit: Will do receipt-based obsoleting for package identifier com.esri.agsiossdk.pkg (prefix path=)
Jan 12 13:53:38 ShiminMacBookAir.local installd[6412]: PackageKit: Extracting file://localhost/Users/shiminc/Downloads/AGSRuntimeSDKiOSv10.1.1.pkg#packageroot.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandboxManager/1.sandbox/Root, uid=0)
Jan 12 13:53:39 ShiminMacBookAir.local installd[6412]: PackageKit: prevent user idle system sleep
Jan 12 13:53:39 ShiminMacBookAir.local installd[6412]: PackageKit: suspending backupd
Jan 12 13:53:39 ShiminMacBookAir.local installd[6412]: PackageKit: Executing script "./preinstall" in /private/tmp/PKInstallSandbox.YUVeQS/Scripts/com.esri.agsiossdk.pkg.IMsIOI
Jan 12 13:53:39 ShiminMacBookAir.local install_monitor[6417]: Temporarily excluding: /Applications, /Library, /System, /bin, /private, /sbin, /usr
Jan 12 13:53:39 ShiminMacBookAir.local installd[6412]: ./preinstall: This is the preflight
Jan 12 13:53:39 ShiminMacBookAir.local installd[6412]: PackageKit: Shoving /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandboxManager/1.sandbox/Root (1 items) to /
Jan 12 13:53:39 ShiminMacBookAir.local installd[6412]: PackageKit: Executing script "./postinstall" in /private/tmp/PKInstallSandbox.YUVeQS/Scripts/com.esri.agsiossdk.pkg.IMsIOI
Jan 12 13:53:39 ShiminMacBookAir.local installd[6412]: PackageKit: Writing receipt for com.esri.agsiossdk.pkg to /private/var/db/receipts
Jan 12 13:53:39 ShiminMacBookAir.local installd[6412]: Installed "ArcGIS_Installer" ()
Jan 12 13:53:39 ShiminMacBookAir.local install_monitor[6417]: Re-included: /Applications, /Library, /System, /bin, /private, /sbin, /usr
Jan 12 13:53:39 ShiminMacBookAir.local installd[6412]: PackageKit: releasing backupd
Jan 12 13:53:39 ShiminMacBookAir.local installd[6412]: PackageKit: allow user idle system sleep
Jan 12 13:53:39 ShiminMacBookAir.local installd[6412]: PackageKit: ----- End install -----
Jan 12 13:53:40 ShiminMacBookAir.local Installer[6399]: Running install actions
Jan 12 13:53:40 ShiminMacBookAir.local Installer[6399]: Removing temporary directory "/var/folders/15/byw788wj2cx5gr5081hgwwh40000gp/T//Install.6399Gy1dJt"
Jan 12 13:53:40 ShiminMacBookAir.local Installer[6399]: Finalize disk "Macintosh HD"
Jan 12 13:53:40 ShiminMacBookAir.local Installer[6399]: Notifying system of updated components
Jan 12 13:53:40 ShiminMacBookAir.local Installer[6399]:
Jan 12 13:53:40 ShiminMacBookAir.local Installer[6399]: **** Summary Information ****
Jan 12 13:53:40 ShiminMacBookAir.local Installer[6399]:   Operation      Elapsed time
Jan 12 13:53:40 ShiminMacBookAir.local Installer[6399]: -----------------------------
Jan 12 13:53:40 ShiminMacBookAir.local Installer[6399]:        disk      0.01 seconds
Jan 12 13:53:40 ShiminMacBookAir.local Installer[6399]:      script      0.00 seconds
Jan 12 13:53:40 ShiminMacBookAir.local Installer[6399]:        zero      0.02 seconds
Jan 12 13:53:40 ShiminMacBookAir.local Installer[6399]:     install      3.09 seconds
Jan 12 13:53:40 ShiminMacBookAir.local Installer[6399]:     -total-      3.13 seconds
Jan 12 13:53:40 ShiminMacBookAir.local Installer[6399]:
Jan 12 13:53:40 ShiminMacBookAir.local Installer[6399]: IFDInstallController DB31C4A0 state = 5
Jan 12 13:53:40 ShiminMacBookAir.local Installer[6399]: Displaying 'Install Succeeded' UI.
Jan 12 13:54:37 ShiminMacBookAir.local installd[6412]: installd: Exiting.
0 Kudos
ShiminCai
Occasional Contributor III
This has happened to me once but I couldn't reproduce it. I fixed it by uninstalling from wherever it got installed and running the installer package again. Then it was in the ~/Library... location.

I can't quite recall but I may also have rebooted between uninstalling and reinstalling.

I'm not happy with this answer, but it might get you going again until the real answer appears 🙂

Let me know whether it works?

Cheers,

Nick

P.S. Caveat: I'm not on the iOS team - they might have a better idea of the problem.

EDIT:

Ah yes. Now I see your response below, I recall that I had to manually delete the /Library/SDKs directory (not ~/Library/SDKs, mind you!) and the /Library/Application Support/AGSiOSRuntimeSDK directory because, as Divesh mentions, the uninstall script doesn't touch those 🙂

Once I'd deleted those (and made sure I didn't have one under ~/Library), I just tried again and it worked. However, I'm not so confident that'll work for you given your other replies.

Nick.


Hi Nick,

Sorry I didn't notice your Edit until now...

I tried what you suggested that is delete /Library/SDKs, /Library/Application Support/AGSiOSRuntimeSDK, ~/Library/SDKs and other stuff related to AGS in both /Library and ~/Library directories, but unfortunately it didn't work for me. The SDK still got installed at /Library and the installer didn't touch ~/Library at all. Thank you anyway.

Shimin
0 Kudos
DiveshGoyal
Esri Regular Contributor
Shimin,

I am a loss to explain why this might be happening. I suspect you have some system configuration that may be tripping up our installer. I recommend you contact Esri Support to pursue this issue further. They have the tools and the means to remote into your system and assist you. If I find anything on my side I will let you know.

Thanks. And sorry for the trouble.
0 Kudos