function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
YoskeYoske 

Cannot Install/Update Mobile SDK on Mac

Hi all,

 

I'm trying to update to the latest version of the SDK on Mac by running install.sh but keep getting the following error:

 

iOSShared.compile:
     [echo] installing PhoneGapLib for SDK iphoneos
     [exec] Build settings from command line:
     [exec]     INSTALL_ROOT = /Desktop/forcedotcom-SalesforceMobileSDK-iOS-6febcdd/external/callback-ios/sfdc_build/artifacts/PhoneGapLib
     [exec]     SDKROOT = iphoneos5.1
     [exec] 
     [exec] xcodebuild: error: '/Desktop/forcedotcom-SalesforceMobileSDK-iOS-6febcdd/external/callback-ios/PhoneGap/PhoneGapLib/PhoneGapLib.xcodeproj' does not exist.

 Do I need to manually install PhoneGap (again)?  Is anyone else getting this error?

 

Thanks!

Best Answer chosen by Admin (Salesforce Developers) 
SoleesSolees

1) Get into Terminal.app, go to your favorite folder in the command line (for example Documents) and execute the following command line (be sure not to have spaces in the name of your subfolders or the installation will fail):

"git clone https://github.com/forcedotcom/SalesforceMobileSDK-iOS.git"

 

 

2) Then execute the following command lines (it may ask for your password for this changes):

first "sudo xcode-select -switch /Applications/Xcode.app"

second "sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer"

third "xcodebuild -version" and you will see something like "Xcode 4.3.2 Build version 4E2002"

 

3) Get in the folder you cloned the github documents "cd SalesforceMobileSDK-iOS"

 

4) Finally execute the following command line

"./install.sh"

 

5) Thats it, have fun.

All Answers

SoleesSolees

Try not to have white spaces in the name of your folders and try again.

YoskeYoske

Double checked for white spaces and tried again but it didn't help...Any ideas?

SoleesSolees

1) Get into Terminal.app, go to your favorite folder in the command line (for example Documents) and execute the following command line (be sure not to have spaces in the name of your subfolders or the installation will fail):

"git clone https://github.com/forcedotcom/SalesforceMobileSDK-iOS.git"

 

 

2) Then execute the following command lines (it may ask for your password for this changes):

first "sudo xcode-select -switch /Applications/Xcode.app"

second "sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer"

third "xcodebuild -version" and you will see something like "Xcode 4.3.2 Build version 4E2002"

 

3) Get in the folder you cloned the github documents "cd SalesforceMobileSDK-iOS"

 

4) Finally execute the following command line

"./install.sh"

 

5) Thats it, have fun.

This was selected as the best answer
YoskeYoske

Thank you SO MUCH!!!