Comments (23)
Would you mind sharing your compilation error? Are you running pod install
and opening the .xcworkspace
project file for the respective examples?
from rides-ios-sdk.
No, I just downloaded the zip file, opened the Obj-C example and it would not run. The SDK was not linked, which I did myself, but when trying to run, the app is not able to get the images from the .bundle file.
from rides-ios-sdk.
The manual integration does not work either.
from rides-ios-sdk.
Here are the steps I'm taking to run the Obj-C example app:
- Download rides-ios-sdk.zip and unzip folder.
- Go to examples/Obj-C SDK/.
- Run
pod install
- this installs the UberRides dependency (requires Cocoapods https://cocoapods.org/) - Open
Obj-C SDK.xcworkspace
(running inObj-C SDK.xcodeproj
will not work) - Run.
If you've tried the above steps and they did not work, please copy and paste your compilation error here.
from rides-ios-sdk.
With pod install it worked. After adding it as Embedded Binary worked in my project too.
from rides-ios-sdk.
fatal error: unexpectedly found nil while unwrapping an Optional value
#1 0x0000000100e8f04c in RequestButton.(getImage in _1BC843BE53C9D0EAD7BBE45C42A0713E)(String) -> UIImage at /Users/ashottonoyan/Workspace/xcode/rad_ios/RAD/RAD/Vendor/Uber/UberRides/RequestButton.swift:165
from rides-ios-sdk.
It can't find the bundle. It works when I copy the file from the bundle to the project.
from rides-ios-sdk.
If you look under Pods/UberRides/Resources in the Pods project, do you see a Media.xcassets folder containing a 'Badge' asset (without copying the file from the bundle)?
from rides-ios-sdk.
I'm not using Cocoa Pods, just manual integration.
from rides-ios-sdk.
Ah, I see the issue. Thanks for reporting!
from rides-ios-sdk.
Dyld Message: Library not loaded: @rpath/UberRides.framework/UberRides
When doing distribution build, even my workaround didn't help.
from rides-ios-sdk.
Is this error occurring when you run Product -> Archive?
from rides-ios-sdk.
No, archiving and sending out beta build worked, but as soon as people launched the app, it was crashing. Then I checked with Xcode -> Window -> Devices console and was getting this message every time I try to launch and get it crashed.
from rides-ios-sdk.
There's a flag under Build Settings > Build Options called "Embedded Content Contains Swift Code". Is this set to Yes (for both debug and release)?
from rides-ios-sdk.
from rides-ios-sdk.
I'm trying to repro the issue you're running into. Is this export for Ad Hoc Deployment?
from rides-ios-sdk.
Enterprise In house. Can it be because of that?
from rides-ios-sdk.
I found this article relating to the error you're receiving for enterprise builds: https://www.airsignapp.com/ios-apps-using-swift-crash-when-signed-with-inhouse-certificate/.
Take a look and see if the errors they had are similar to yours. It seems they solved their issue through creating a new certificate and provisioning profile.
From an Apple Technical Q&A: "All Enterprise and standard iOS developer certificates that are created after iOS 8 was released have the new Team ID field in the proper place to allow Swift language apps to run." (https://developer.apple.com/library/ios/qa/qa1886/_index.html).
Let me know if you have any luck with this!
from rides-ios-sdk.
Still, why do I have to move out the resources from the bundle in order to make it work even as debug build?
from rides-ios-sdk.
The resources for the manual integration is an issue I'm working to resolve, and there will be a fix available soon that doesn't require your workaround.
I don't believe the enterprise build issue is related to this, however, so this may be something on your development/distribution account. Please let me know if you have reason to believe otherwise!
from rides-ios-sdk.
I'm about to test with new certificate/provisioning profile. Will keep you posted.
from rides-ios-sdk.
With new certificate/provisioning profile it did work! Thanks for your support!
from rides-ios-sdk.
Glad you got that sorted out! A fix for the resources issue will be pushed to Github soon.
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.