Code Monkey home page Code Monkey logo

Comments (23)

faarwa avatar faarwa commented on August 16, 2024

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.

ashottonoyan avatar ashottonoyan commented on August 16, 2024

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.

ashottonoyan avatar ashottonoyan commented on August 16, 2024

The manual integration does not work either.

from rides-ios-sdk.

faarwa avatar faarwa commented on August 16, 2024

Here are the steps I'm taking to run the Obj-C example app:

  1. Download rides-ios-sdk.zip and unzip folder.
  2. Go to examples/Obj-C SDK/.
  3. Run pod install - this installs the UberRides dependency (requires Cocoapods https://cocoapods.org/)
  4. Open Obj-C SDK.xcworkspace (running in Obj-C SDK.xcodeproj will not work)
  5. 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.

ashottonoyan avatar ashottonoyan commented on August 16, 2024

With pod install it worked. After adding it as Embedded Binary worked in my project too.

from rides-ios-sdk.

ashottonoyan avatar ashottonoyan commented on August 16, 2024

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.

ashottonoyan avatar ashottonoyan commented on August 16, 2024

It can't find the bundle. It works when I copy the file from the bundle to the project.

from rides-ios-sdk.

faarwa avatar faarwa commented on August 16, 2024

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.

ashottonoyan avatar ashottonoyan commented on August 16, 2024

I'm not using Cocoa Pods, just manual integration.

from rides-ios-sdk.

faarwa avatar faarwa commented on August 16, 2024

Ah, I see the issue. Thanks for reporting!

from rides-ios-sdk.

ashottonoyan avatar ashottonoyan commented on August 16, 2024

Dyld Message: Library not loaded: @rpath/UberRides.framework/UberRides

When doing distribution build, even my workaround didn't help.

from rides-ios-sdk.

faarwa avatar faarwa commented on August 16, 2024

Is this error occurring when you run Product -> Archive?

from rides-ios-sdk.

ashottonoyan avatar ashottonoyan commented on August 16, 2024

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.

faarwa avatar faarwa commented on August 16, 2024

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.

ashottonoyan avatar ashottonoyan commented on August 16, 2024

Yes.
screenshot 2016-01-26 19 48 51

from rides-ios-sdk.

faarwa avatar faarwa commented on August 16, 2024

I'm trying to repro the issue you're running into. Is this export for Ad Hoc Deployment?

from rides-ios-sdk.

ashottonoyan avatar ashottonoyan commented on August 16, 2024

Enterprise In house. Can it be because of that?

from rides-ios-sdk.

faarwa avatar faarwa commented on August 16, 2024

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.

ashottonoyan avatar ashottonoyan commented on August 16, 2024

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.

faarwa avatar faarwa commented on August 16, 2024

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.

ashottonoyan avatar ashottonoyan commented on August 16, 2024

I'm about to test with new certificate/provisioning profile. Will keep you posted.

from rides-ios-sdk.

ashottonoyan avatar ashottonoyan commented on August 16, 2024

With new certificate/provisioning profile it did work! Thanks for your support!

from rides-ios-sdk.

faarwa avatar faarwa commented on August 16, 2024

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)

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.