Skip to main content

Hi There !

I am trying to install Salesforce iOS SDK using command line but getting the following error...

[!] Error installing SalesforceNetwork

[!] /usr/bin/git clone https://github.com/forcedotcom/SalesforceMobileSDK-iOS.git /var/folders/_s/4v8f_4wd4837d88jkqd9m9500000gq/T/d20160222-1233-j5e0r7 --single-branch --depth 1 --branch pod_v4.1.0 --recursive

Submodule 'external/CocoaLumberjack' (https://github.com/forcedotcom/CocoaLumberjack.git) registered for path 'external/CocoaLumberjack'

Submodule 'external/cordova-ios/cordova-ios' (https://github.com/apache/cordova-ios.git) registered for path 'external/cordova-ios/cordova-ios'

Submodule 'external/fmdb' (https://github.com/forcedotcom/fmdb) registered for path 'external/fmdb'

Submodule 'external/ocmock' (https://github.com/erikdoe/ocmock.git) registered for path 'external/ocmock'

Submodule 'external/react-native' (https://github.com/forcedotcom/react-native.git) registered for path 'external/react-native'

Submodule 'external/shared' (https://github.com/forcedotcom/SalesforceMobileSDK-Shared.git) registered for path 'external/shared'

Submodule 'external/wypopovercontroller' (https://github.com/sammcewan/WYPopoverController) registered for path 'external/wypopovercontroller'

Submodule path 'external/CocoaLumberjack': checked out 'dc71c916b2da4223d5b289bc64cc06b888190c7f'

Submodule path 'external/cordova-ios/cordova-ios': checked out 'd712fb0827671c83952cd75d9c190f7b083167b0'

Submodule path 'external/fmdb': checked out '4dfdb03a63d3d00885256bf5e528d091c8f8f9b0'

Submodule path 'external/ocmock': checked out 'c4affdcdad1401ea4d331f457cd60523e0bb425a'

Cloning into '/var/folders/_s/4v8f_4wd4837d88jkqd9m9500000gq/T/d20160222-1233-j5e0r7'...

Note: checking out '3ca7b9f0e322838d276d4e228c8e1e86813874b1'.

You are in 'detached HEAD' state. You can look around, make experimental

changes and commit them, and you can discard any commits you make in this

state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may

do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

Cloning into 'external/CocoaLumberjack'...

Cloning into 'external/cordova-ios/cordova-ios'...

Cloning into 'external/fmdb'...

Cloning into 'external/ocmock'...

Cloning into 'external/react-native'...

error: RPC failed; result=56, HTTP code = 200

fatal: The remote end hung up unexpectedly

fatal: early EOF

fatal: index-pack failed

Clone of 'https://github.com/forcedotcom/react-native.git

' into submodule path 'external/react-native' failed

-------------

My pod file is having following lines..

⌗ Uncomment this line to define a global platform for your project

⌗ platform :ios, '8.0'

⌗ Uncomment this line if you're using Swift

⌗ use_frameworks!

target 'KSFDemo' do

source 'https://github.com/forcedotcom/SalesforceMobileSDK-iOS-Specs.git'

source 'https://github.com/CocoaPods/Specs.git'

pod 'SalesforceSDKCore'

pod ‘SalesforceNetwork’

pod ‘SalesforceRestAPI’

end

target 'KSFDemoTests' do

end

target 'KSFDemoUITests' do

end

----

Is there something missing from my side ? Please suggest the solution. Thank You.
1 Antwort
  1. 22. Feb. 2016, 12:31

    I solved this on my own. But Now I am getting an unexpected error.

    I am trying to use MFDatabase which is located in SmartStore in the pod 

    But it always saying that FMDatabase.h file not found. I tried different ways to import it into my class. While All SF classes are being imported successfully. 

    please answer on this issue so that I can go ahead with my work.

    Thank you.