Comments (32)
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.
That looks pretty cool. I'll take a look.
from salesforcemobilesdk-ios.
Do you have any news about Cocoapods request?
from salesforcemobilesdk-ios.
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.
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.
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.
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.
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.
@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.
@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.
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.
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.
@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.
@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.
@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.
@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.
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.
+1 for official support for a cocoapod. Is there a technical reason Saleforce doesn't support it? If not, very disappointing...
from salesforcemobilesdk-ios.
We are working on providing this support with our next release. Stay tuned.. #safeharbor
from salesforcemobilesdk-ios.
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.
Yes, great news. In the meantime do you have a recommended approach to integrate the SDK into an existing project?
from salesforcemobilesdk-ios.
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.
CocoaPods spec is now available on our unstable branch. Take a look and please post if you run into any issues.
from salesforcemobilesdk-ios.
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.
Make sure to use :submodules => true
, in your Podfile, as the Mobile SDK makes use of them.
from salesforcemobilesdk-ios.
Why was MKNetworking forked?
from salesforcemobilesdk-ios.
There have been some Salesforce-specific additions that have been made to our fork of MKNetworkKit.
from salesforcemobilesdk-ios.
Try to build solution with CocoaPods.
Build Failed with error: 'SalesforceCommonUtils/SFLogger.h' file not found
from salesforcemobilesdk-ios.
Could you help me with this "'SalesforceCommonUtils/SFLogger.h' file not found" error?
from salesforcemobilesdk-ios.
You can join the discussion in progress on our community, if you'd like to post details.
from salesforcemobilesdk-ios.
The issue with the missing header file(s) has been resolved. Give it a shot with the latest version on master
.
from salesforcemobilesdk-ios.
👍 it works now
from salesforcemobilesdk-ios.
Related Issues (20)
- SFOAuthCoordinator handleWebServerResponse: URL has no query string. HOT 4
- Hi All, Once we successfully logged using Salesforce SDK in mobile application using custom domain why it is asking for “Connect Salesforce Authentication”? HOT 3
- Hi All, Once we successfully logged using Salesforce SDK in mobile application using custom domain why it is asking for “Connect Salesforce Authentication”?
- Hi All, Once we successfully logged using Salesforce SDK in mobile application using custom domain why it is asking for “Connect Salesforce Authentication”? HOT 2
- Missing permissions for IDP Flow HOT 2
- IDP flow - provider flow stops when client logins in and out multiple times HOT 1
- Add login_hint parameter to login process HOT 1
- Sales
- Unable to log in with SSO from outside the IP restrictions of [Apply IP restrictions and relax refresh tokens] in 11.1.0 HOT 1
- Multiple Callbacks Issued on Salesforce SDK's AuthHelper.loginIfRequired() in iOS App HOT 1
- When opening any image url link, getting Failed to load resource: Too many http redirects HOT 1
- User list presented after logging out can be dismissed, leaving app in an uncertain state HOT 1
- Biometric Login not working HOT 2
- v11.1.0 - Successful login but gets an error popup, SFOAuthSessionRefresher completeWithError: Code=668 HOT 7
- Apple privacy manifest HOT 3
- AuthHelper.loginIfRequired { } retaining the closures in memory HOT 1
- App crash while logout in IOS HOT 1
- iOS SFDCOAuthLoginHost not supporting multiple servers in PList HOT 1
- XCFramework's requested HOT 4
- Server Error Can't connect to the server: Unexpected HTTP response code from the identity service: 404. only on iOS HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from salesforcemobilesdk-ios.