Comments (46)
Hey all,
I have just pushed up a Swift 3 compatible version to the swift-3-dev branch
. It hasn't made any of the changes for the new API design guidelines, but will compile and work for your Swift 3 projects. I will continue to update this thread as we continue to work on full Swift 3 support
Carthage:
update your cartfile to contain
github "https://github.com/uber/rides-ios-sdk.git" "swift-3-dev"
Cocoapods:
update your podfile to contain:
pod "UberRides", :git => "https://github.com/uber/rides-ios-sdk.git", :branch => "swift-3-dev"
from rides-ios-sdk.
Hey all,
Just wanted to let you know that I am actively working on this and you should expect a working Swift 3 version soon. I will be pushing a version up to the swift-3-dev
branch that will close #149
from rides-ios-sdk.
I need the working Uber Rides to integrate in my application when can i expect the SDK to be ready
OR
Is there any other way so that I can integrate the SDK in swift 3
from rides-ios-sdk.
Thank you. I can confirm that it works.
from rides-ios-sdk.
Due to the incompatibility between swift 2 and 3 we are going to need to make a separate Swift 3 branch. Unfortunately, because of staffing, we likely won't have that ready for a few weeks. However, if you want to take a swing at it and submit a PR, we would be happy to work with you on it
from rides-ios-sdk.
@jbrophy17 Have you created Swift-3.0 branch. We love to contributes.
from rides-ios-sdk.
It might be valuable to just release a working Swift 3 version before working towards meeting the API guidelines. Seeing as this is pre-1.0 you can then focus on the API guidelines even if it means another breaking change. As this probably isn't a dependency to many other popular libraries, version pinning is a viable option for most of us downstream.
from rides-ios-sdk.
Can you run your carthage command with --configuration Debug
and post the output here?
To clarify, was this working for you before you started using Xcode 8?
from rides-ios-sdk.
I'm sorry I don't understand. What command should I run actually? Yes it worked fine before this.
from rides-ios-sdk.
carthage update --platform iOS --configuration Debug
And then when you run that there should be a line that says *** xcodebuild output can be found in
with a file path. Can you include the contents of that file here, it should provide some insight into what went wrong.
from rides-ios-sdk.
This is the output I got in xcodebuild output can be found in /var/folders/d7/4wwjzgsj6qb9g1hdwnzw34v40000gn/T/carthage-xcodebuild.2u26Ow.log
:
/usr/bin/xcrun xcodebuild -workspace /Users/Carthage/Checkouts/ObjectMapper/ObjectMapper.xcworkspace -scheme ObjectMapper-iOS -configuration Debug -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean buildBuild settings from command line:
BITCODE_GENERATION_MODE = bitcode
CARTHAGE = YES
CODE_SIGN_IDENTITY =
CODE_SIGNING_REQUIRED = NO
ONLY_ACTIVE_ARCH = NO
SDKROOT = iphoneos10.0
=== CLEAN TARGET ObjectMapper-iOS OF PROJECT ObjectMapper WITH CONFIGURATION Debug ===
Check dependencies
“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.
“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.
=== BUILD TARGET ObjectMapper-iOS OF PROJECT ObjectMapper WITH CONFIGURATION Debug ===
Check dependencies
“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.
“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.
from rides-ios-sdk.
Okay so looks like the problem is that by default Xcode 8 is using Swift 3, but the dependencies are using Swift 2. I think you should be able to get around this by using this command:
TOOLCHAINS=com.apple.dt.toolchain.Swift_2_3 carthage update --platform iOS
from rides-ios-sdk.
Same error but it's like this now:
The following build commands failed:
CompileSwift normal arm64 /Users/shantanudesai/Desktop/App dev/Touch-ID/Carthage/Checkouts/rides-ios-sdk/source/UberRides/Utilities/RidesUtil.swift
CompileSwift normal arm64 /Users/shantanudesai/Desktop/App dev/Touch-ID/Carthage/Checkouts/rides-ios-sdk/source/UberRides/RideRequestView.swift
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
from rides-ios-sdk.
Can you provide the xcode build output for that command as well? I think fixing this for xcode 8 might require some updates to the project to specify what version of Swift to use
from rides-ios-sdk.
Is this what you mean:
/usr/bin/xcrun xcodebuild -workspace /Users/Desktop/Carthage/Checkouts/ObjectMapper/ObjectMapper.xcworkspace -scheme ObjectMapper-iOS -configuration Release -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean buildBuild settings from command line:
BITCODE_GENERATION_MODE = bitcode
CARTHAGE = YES
CODE_SIGN_IDENTITY =
CODE_SIGNING_REQUIRED = NO
ONLY_ACTIVE_ARCH = NO
SDKROOT = iphoneos10.0
TOOLCHAINS = com.apple.dt.toolchain.Swift_2_3
from rides-ios-sdk.
No, I mean the build log like you included before. Unless that is all that it produced?
I will need to investigate more into Issues caused from Xcode 8 / Swift 3
from rides-ios-sdk.
It's more than a 1000 lines. For every file included in the SDK, there's an error.
carthage.txt
@jbrophy17
from rides-ios-sdk.
Do help. No matter what I do, it just isn't getting integrated. Tried a lot. But in vain. :(
from rides-ios-sdk.
Sorry, I haven't had a chance to investigate these issues with the Xcode 8 beta yet. Can you share what you've tried so far so I don't duplicate your efforts?
from rides-ios-sdk.
When I do carthage update --platform iOS --configuration Debug
, I get:
/usr/bin/xcrun xcodebuild -workspace /Users/shantanudesai/Desktop/App dev/TestApp/Carthage/Checkouts/ObjectMapper/ObjectMapper.xcworkspace -scheme ObjectMapper-iOS -configuration Debug -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean buildBuild settings from command line:
BITCODE_GENERATION_MODE = bitcode
CARTHAGE = YES
CODE_SIGN_IDENTITY =
CODE_SIGNING_REQUIRED = NO
ONLY_ACTIVE_ARCH = NO
SDKROOT = iphoneos10.0
=== CLEAN TARGET ObjectMapper-iOS OF PROJECT ObjectMapper WITH CONFIGURATION Debug ===
Check dependencies
“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.
“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.
=== BUILD TARGET ObjectMapper-iOS OF PROJECT ObjectMapper WITH CONFIGURATION Debug ===
Check dependencies
“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.
“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.
I even tried to change the legacy settings of both objectmapper and ohttp by forking them and modifying them. Nothing worked. It fails still. :(
from rides-ios-sdk.
I think the problem is with TOOLCHAIN
part where I don't have toolchains at all. I only have Xcode 8 Beta 3
AND Xcode 7.3.1
. Is this of any relevance @jbrophy17 ?
from rides-ios-sdk.
Okay so it looks like it is definitely an issue with the newest version of Swift, which the SDK has not been updated for yet. Is your project currently using Swift 3 features? If not, you might be able to get things to work by setting the Use Legacy Swift Language Version in your project's build settings to Swift 2.3 for now.
from rides-ios-sdk.
Yes my project is using the swift 3 @jbrophy17 :( . I tried every possible workaround. Nothing works. The whole SDK has to be written in swift 3 now. What do we do? Any suggestions? Please?
from rides-ios-sdk.
any news on the swift3 branch?
from rides-ios-sdk.
I'm in the process of putting up dev branches for swift 2.3 & swift 3. However, for now, they are just for contributors who want to help with the migration, they are not production ready yet.
from rides-ios-sdk.
added branches swift-2.3-dev and swift-3-dev
swift-2.3-dev has gone through the migrator to update syntax to 2.3, but some tests are still failing around the keychain & saving tokens
swfit-3-dev has not gone through the migrator yet, I made an initial pass but there were just too many errors for me to address before pushing it up. I updated the cartfile to use the swift-3 branches for the dependencies, however
from rides-ios-sdk.
Hi,
I am using cocoa pods for Uber SDK. It shows lots of errors when upgraded to Xcode 8. When can we expect new uber sdk that is swift 3 compatible?
from rides-ios-sdk.
Adding Swift 3 support is on our roadmap, but we don't have an exact timeline of when it will be complete yet. In the meantime, we have a swift-3-dev branch where we are happy to review & merge PRs towards Swift 3 compatibility
from rides-ios-sdk.
Hi
I have tried pod 'ObjectMapper', '~> 2.0' in my project with xcode 8.0
I did not work.
Any Help?
Regards
from rides-ios-sdk.
Hello. I am just curious if there are any updates on this?
from rides-ios-sdk.
Any updates on the Swift 3 usability of the Uber Rides SDK. I'm using Cocoapods
from rides-ios-sdk.
Hi guys, sorry about the delay here. We still don't have a timeline of when Swift 3 support will be added, but understand that it is a pressing issue. Currently, #111 looks promising for adding support, but there are a few comments to be addressed still
from rides-ios-sdk.
Hi. The latest SDK doesn't seem to be Swift 2.3 compatible either. Is there an ETA on that? It'll really help to know when we might expect an updated SDK with 2.3 and xcode 8 support out of the box.
FYI, Regarding swift 2.3 update, looks like there are only a couple of issues
Please do let us know.
from rides-ios-sdk.
Hey all, wanted to give a quick update on this. The current plan is to do a final 2.2 release with a whole bunch of bug fixes and then follow that up with an update to 2.3. I am hoping to get the 2.2 updates out this week, and the 2.3 should follow soon after that
from rides-ios-sdk.
What is the status on Swift 3 support? The pesky ObjectMapper 1.0 dependency still seems to be causing problems.
from rides-ios-sdk.
Just released the final Swift 2.2 supported version, now starting work to get Swift 2.3 support. Swift 3 will be coming after that, but unfortunately I don't have a solid timeline at this point
from rides-ios-sdk.
Hello Everyone,
We understand that this is an inconvenience and want to ensure you that we have not forgotten about it.
The language changes for Swift 3 change many internal APIs, but also introduce a whole new set of API design guidelines. Before we release an updated SDK, we want to make sure that our APIs are updated to meet these guidelines, in order to minimizing the friction of upgrading & working with the SDK in the future.
I have just opened a few issues to track what needs to be completed for the Swift 3 updates of the SDK. (#149, #150, #151, #152, #153). We are targeting the second half of January for this work. However, in the meantime, if anybody in the community wants to start working on these issues, we are happy to review PRs. I would suggest making them against the swift-3-dev
branch & continuing to use this issue as a place to discuss changes.
Again, we apologize for the inconvenience and thank you for your understanding.
from rides-ios-sdk.
Hi ! Maybe you have some news about the swift 3 integration?
from rides-ios-sdk.
Hey what's the status of this? As of right now, the swift-3-dev version still has a dependency on ObjectMapper 1.0, which isn't using swift 3. I believe they have 2.2.2 now using swift 3.
from rides-ios-sdk.
Hey guys, any updates on this?
from rides-ios-sdk.
Also can confirm this works!
from rides-ios-sdk.
It works for now.
from rides-ios-sdk.
Why is it still not working for me on Swift 3?
from rides-ios-sdk.
@ezanalemma this should work on Swift 3! Please read the note on #167 for more details.
Closing this in favor of #167
from rides-ios-sdk.
I am using Xcode 10.0. The pod "UberRides", :git => "https://github.com/uber/rides-ios-sdk.git", :branch => "swift-3-dev" solution still require a migration. What is the fix for this ?
from rides-ios-sdk.
v0.11.0 will work for you :)
from rides-ios-sdk.
Related Issues (20)
- Add multiple stops
- Detecting when user taps on the rider button HOT 1
- Authorization Error HOT 1
- using gesture recognition to press button (Question)
- fetchRideRequestEstimate need client token ?
- Cocoapods: Version 0.12 podfile HOT 2
- User cancelled the login process iOS 13
- LoginManager.executeNativeAuthenticators returns `nil` error on iOS 13 HOT 2
- iOS 13 support... New release anytime? HOT 12
- Accessing Uber History Scope
- "Please reach out to your Uber Business Development representative for server token access" HOT 2
- Crash on launch of app on iPhone 5 devices
- Error Domain=com.uber.rides-ios-sdk.ridesAuthenticationError Code=19
- Server tokens ungeneratable HOT 2
- Bitcode Processing failed
- App Privacy Details (aka Nutrition Labels) information/policy for the SDK HOT 2
- CocoaPods install Xcode 12.4
- "User cancelled the login process" HOT 1
- Manual installation trouble
- Commuters
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 rides-ios-sdk.