uber / uber-ios-sdk

Uber iOS SDK (beta)
https://developer.uber.com/docs
MIT License
376 stars 125 forks source link

How to install SDK in old objective-c project with Cocoa Pods, please say detail in step by step? #142

Closed Saravana181187 closed 7 years ago

Saravana181187 commented 7 years ago

How to Install the SDK in old objective-c project with cocoa pods. If I Installing in Pod using the following command It getting lot of issues that has make very difficult me and I unable to Solve that.

`use_frameworks! target 'My Project Name' do pod 'UberRides' end

And the Using this Command..

$ pod install

Can you please say Detail and Please say step by step for to easy understanding.?

suriksarkisyan commented 7 years ago

@Saravana181187 you can try to use Carthage for UberRides SDK and other swift frameworks.

Saravana181187 commented 7 years ago

@suriksarkisyan I want to Install from cocoa pods not in carthage please say about that, If it is possible or not.

suriksarkisyan commented 7 years ago

@Saravana181187, yes you can. But you will get some problems with other frameworks as you see. You can try to fix them or you can use Carthage. That problems occur because of use_frameworks!. I know only two ways to avoid that issues: fix them manually or use Carthage. Maybe somebody else can help you, sorry.

jbrophy17 commented 7 years ago

It is possible that this is due to conflicting versions of Swift in pods that you are trying to use. Once the SDK has been updated to Swift 3 (#60) your problems might be fixed

ivhpMX commented 7 years ago

Hi, I am using Carthage to install Uber SDK, my project is build in Objective c; my Xcode is 8.2.1 and on the last part of the tutorial, when I need to set the Embedded Content Contains Swift Code flag to YES in the Build Settings tab, that option doesn't show to me and I cannot add it to my project; What else I need to do to install correctly the API?

Thank you!

suriksarkisyan commented 7 years ago

@ivhpMX this will help you :)

edjiang commented 7 years ago

Closing since it seems like a language version problem. See #167 for how to use this SDK with Swift 3.