Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Carthage support #1470

Closed
rskuja opened this issue Mar 31, 2016 · 14 comments
Closed

Carthage support #1470

rskuja opened this issue Mar 31, 2016 · 14 comments
Assignees

Comments

@rskuja
Copy link

rskuja commented Mar 31, 2016

Any plans for Carthage support? Just pushing out compiled frameworks with releases would be enough.

@rskuja
Copy link
Author

rskuja commented Mar 31, 2016

When making new release attach zip named similarly like this with similar contents and you are good to go.
SalesForceMobileSDK-iOS-4.1.1.framework.zip

@kgrigsby59
Copy link

I need this too.

@idStar
Copy link

idStar commented Aug 18, 2016

Carthage support would be really welcome. It's often the lighter weight approach and many of us want to use frameworks that pull in the SF SDK in apps that also use the SF SDK, and we run as much of it as we can, using Carthage. Mixing in Cocoapods makes it quite difficult to get builds working.

I would really love to see this feature supported by Salesforce, for this SDK.

@quidcomobile
Copy link

Hi there,

Is there any news on Carthage support? Working with the v6.x SDK is a nightmare.

Thanks

@idStar
Copy link

idStar commented Jan 17, 2018

No, not that I've heard. I'm not sure why it's not a priority, given Carthage's rise in popularity and it's minimalist, clean approach.

@bhariharan
Copy link
Contributor

@quidcomobile Could you expand a bit on "working with the v6.x SDK is a nightmare"? It should work well using forceios and Cocoapods. Also, it is possible to use Carthage with Mobile SDK with our framework targets. All you need to do is create a root level .cart file and consume our framework targets.

@quidcomobile
Copy link

Hey @bbirman ,

If you have some some documentation, read me or step-by-step on how to build the frameworks using Carthage, that would be awesome. We use Carthage as dependency manager and I would prefer not to rely on Cocoapods.

Thanks in advance.

@idStar
Copy link

idStar commented Jan 17, 2018

Agreed. Having some step by step instructions as part of this repo's README doc would be really helpful. Then, it's a self-serve proposition that others can leverage.

@bhariharan
Copy link
Contributor

I'll look into it.

@bhariharan bhariharan self-assigned this Jan 17, 2018
@khawkins
Copy link
Contributor

To the extent that I've worked with Carthage and the Mobile SDK, the required documentation didn't need to go further than Carthage's Cartfile docs. The bootstrapping of the Mobile SDK through Carthage is pretty down the middle as a Carthage use case, from my experience anyway.

@quidcomobile
Copy link

Thans @khawkins , @bhariharan

I have managed to change my cartfile and I have now the frameworks all in order. Would be good to document this on READ.me though.

@bhariharan
Copy link
Contributor

I have verified that consuming the Mobile SDK by following the steps outlined by Carthage works fine. We will update our developer guide to include these instructions.

@kamalmtxb2b
Copy link

I am using below command to include salesforce mobile sdk iOS through Carthage :
github "forcedotcom/SalesforceMobileSDK-iOS" "master"

but I am facing an error:

A shell task (/usr/bin/env git checkout --quiet 77462ca5f450c903dce9e6b621497e036cecad76 (launched in //Carthage/Checkouts/SalesforceMobileSDK-iOS/external/fmdb)) failed with exit code 128:
fatal: Cannot switch branch to a non-commit '77462ca5f450c903dce9e6b621497e036cecad76'

@bhariharan
Copy link
Contributor

@kamalmtxb2b Once you create the Cartfile, run the following steps:

  • Run carthage update --no-build. This will fetch the dependencies specified in your Cartfile.
  • Navigate to Carthage/Checkouts/SalesforceMobileSDK-iOS and run . install.sh to fetch the dependencies needed by Mobile SDK.
  • Run carthage build to build the schemes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants