GithubHelp home page GithubHelp logo

Comments (32)

superfell avatar superfell commented on June 2, 2024

You need to write a cocoapods spec file, and add it to the specs repo, pretty straight forward, i did it for zkSforce, it works great.

from salesforcemobilesdk-ios.

khawkins avatar khawkins commented on June 2, 2024

That looks pretty cool. I'll take a look.

from salesforcemobilesdk-ios.

akaromka avatar akaromka commented on June 2, 2024

Do you have any news about Cocoapods request?

from salesforcemobilesdk-ios.

khawkins avatar khawkins commented on June 2, 2024

We've reorganized our dependencies for our upcoming 2.0 release, so I hope to be able to add Cocoapods support soon.

from salesforcemobilesdk-ios.

edelabar avatar edelabar commented on June 2, 2024

Any update on this? We're about to go down a path to create private pod specs for the binaries, but if this is going to be done any time soon we may wait it out.

from salesforcemobilesdk-ios.

khawkins avatar khawkins commented on June 2, 2024

We're likely going to take on this work as part of our next release. So hopefully we'll get something started in the near future.

from salesforcemobilesdk-ios.

paweldudek avatar paweldudek commented on June 2, 2024

Are there any updates on this? We'd love to use Salesforce as a dependency managed by Cocoapods. If you guys need any help with setting cocoapods up I could quickly get a podspec up and running.

from salesforcemobilesdk-ios.

 avatar commented on June 2, 2024

We would like to be able to use this SDK as a pod too.

@paweldudek please let us know if you build the podspec, because we would be interested on using it. Thanks!

from salesforcemobilesdk-ios.

paweldudek avatar paweldudek commented on June 2, 2024

@veducm I've managed to get whole SDK up and running on cocoapods, but with a few caveats so don't get your hopes up yet.

First, due to a bit tangled dependency tree I had to separate code into five repositories:

  • The SalesforceCommonUtils repository
  • Networking (which uses a custom definition of MKNetworking pod spec since SFDC uses a custom fork and depends on SalesforceCommonUtils)
  • OAuth (which depends on Networking and SalesforceCommonUtils)
  • Core (which depends on SalesforceCommonUtils)
  • Native SDK (which finally depends on OAuth and Core)

The second caveat is that I had to use custom repos for all this stuff, meaning you'll probably end in merging hell in a few years. The good news here is that SFDC is pretty nicely separated into modules (excluding the dependency of common tools, which got elegantly solved by shared pod), so it might not end up that bad.

Third caveat is that pod definitions for SFDC are located at internal (and thus private) pod specs definition repo at my company. You might want to set up your own private pod spec repo (I can point you to some tutorials), which is pretty simple once you get a hang of how it works.

Fourth and final caveat is that originally our SFDC Mobile SDK repository, on which I've based the main Native component, was private and I have to consult whether I can make it public.

Last but not least, I haven't even touched the hybrid version, so you'd probably have to do a bit more work if you need that version. Good news is that foundation is already laid out. ;)

from salesforcemobilesdk-ios.

 avatar commented on June 2, 2024

@paweldudek Woooow!! Thanks for your explanation. Definitely, it's not an easy task. I will try to see if I can mimic what you did and make it work. Luckily for us, we don't need the hybrid version either.

from salesforcemobilesdk-ios.

paweldudek avatar paweldudek commented on June 2, 2024

FYI you might also run into an issue with the static library containing cocoa lumberjack symbols. I've removed with some lipo hackery, you can grab the modified version here: https://github.com/Taptera/SalesforceCommonUtils-Taptera

There's also a pod spec there, you can use for your own dependencies too. I might still do some work there so the version 1.0 can still change.

from salesforcemobilesdk-ios.

paweldudek avatar paweldudek commented on June 2, 2024

Ok, so...

If you're using Cococa Lumberjack as a dependency you won't be able to use the aforementioned component. You can consult this #430 issue for more info.

from salesforcemobilesdk-ios.

paweldudek avatar paweldudek commented on June 2, 2024

@veducm I've managed to solve all the issues with using SF as a dependency, so it's definitely doable. You can check out the repos I set up for this, they have all the required pod specs. The changes I made to code are minimal, if any.

from salesforcemobilesdk-ios.

khawkins avatar khawkins commented on June 2, 2024

@paweldudek That's awesome! We'll take a look too, when we get to the work. CocoaPods is still up the priority list on our radar, but not at the top. Hopefully we'll make some traction in the next couple of months.

from salesforcemobilesdk-ios.

paweldudek avatar paweldudek commented on June 2, 2024

@khawkins it did require a bit of a different attitude when it comes to builds settings, however I haven't touched anything else, so far. Let me know if there're any details you need to get this working officially!

from salesforcemobilesdk-ios.

 avatar commented on June 2, 2024

@paweldudek Thanks for sharing the great work! I will take a look again and see if I manage to replicate it for us.

Anyway, I really hope this gets supported officially soon!

from salesforcemobilesdk-ios.

edelabar avatar edelabar commented on June 2, 2024

We were able to hack something together with binaries and a private CocoaPods repo, but it's a bit of a nightmare to keep up to date. We also had problems similar to @paweldudek with the custom fork of MKNetworking. Long story short, it would be great to have an officially-supported spec in the master repo!

from salesforcemobilesdk-ios.

jeffbailey avatar jeffbailey commented on June 2, 2024

+1 for official support for a cocoapod. Is there a technical reason Saleforce doesn't support it? If not, very disappointing...

from salesforcemobilesdk-ios.

akhileshgupta avatar akhileshgupta commented on June 2, 2024

We are working on providing this support with our next release. Stay tuned.. #safeharbor

from salesforcemobilesdk-ios.

carlcarter avatar carlcarter commented on June 2, 2024

Excellent news! Thank you

Sent from my iPhone

On 18 Sep 2014, at 18:18, akhileshgupta [email protected] wrote:

We are working on providing this support with our next release. Stay
tuned.. #safeharbor

Reply to this email directly or view it on GitHub
#90 (comment)
.

from salesforcemobilesdk-ios.

jeffbailey avatar jeffbailey commented on June 2, 2024

Yes, great news. In the meantime do you have a recommended approach to integrate the SDK into an existing project?

from salesforcemobilesdk-ios.

akhileshgupta avatar akhileshgupta commented on June 2, 2024

Sorry for delayed response. I just updated the steps to add the SDK to existing projects. You can find that here: SalesforceMobileSDK-iOS-Distribution Repo

from salesforcemobilesdk-ios.

khawkins avatar khawkins commented on June 2, 2024

CocoaPods spec is now available on our unstable branch. Take a look and please post if you run into any issues.

from salesforcemobilesdk-ios.

jschmid avatar jschmid commented on June 2, 2024

With a Podfile like:

pod 'SalesforceMobileSDK-iOS/SalesforceRestAPI', :git => 'https://github.com/forcedotcom/SalesforceMobileSDK-iOS.git', :branch => 'unstable'

I get an error:

Installing SalesforceMobileSDK-iOS (3.0.0)
[!] /bin/bash
set -e
sed -i -e 's/#import \"Categories\//#import \"/g' external/MKNetworkKit/MKNetworkKit/MKNetworkKit.h

sed: external/MKNetworkKit/MKNetworkKit/MKNetworkKit.h: No such file or directory

from salesforcemobilesdk-ios.

khawkins avatar khawkins commented on June 2, 2024

Make sure to use :submodules => true, in your Podfile, as the Mobile SDK makes use of them.

from salesforcemobilesdk-ios.

btelintelo avatar btelintelo commented on June 2, 2024

Why was MKNetworking forked?

from salesforcemobilesdk-ios.

khawkins avatar khawkins commented on June 2, 2024

There have been some Salesforce-specific additions that have been made to our fork of MKNetworkKit.

from salesforcemobilesdk-ios.

rovqapint avatar rovqapint commented on June 2, 2024

Try to build solution with CocoaPods.
Build Failed with error: 'SalesforceCommonUtils/SFLogger.h' file not found

from salesforcemobilesdk-ios.

rovqapint avatar rovqapint commented on June 2, 2024

Could you help me with this "'SalesforceCommonUtils/SFLogger.h' file not found" error?

from salesforcemobilesdk-ios.

khawkins avatar khawkins commented on June 2, 2024

You can join the discussion in progress on our community, if you'd like to post details.

from salesforcemobilesdk-ios.

khawkins avatar khawkins commented on June 2, 2024

The issue with the missing header file(s) has been resolved. Give it a shot with the latest version on master.

from salesforcemobilesdk-ios.

jschmid avatar jschmid commented on June 2, 2024

👍 it works now

from salesforcemobilesdk-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.