-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Difficulty with manual integration #8
Comments
Would you mind sharing your compilation error? Are you running |
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. |
The manual integration does not work either. |
Here are the steps I'm taking to run the Obj-C example app:
If you've tried the above steps and they did not work, please copy and paste your compilation error here. |
With pod install it worked. After adding it as Embedded Binary worked in my project too. |
fatal error: unexpectedly found nil while unwrapping an Optional value
|
It can't find the bundle. It works when I copy the file from the bundle to the project. |
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)? |
I'm not using Cocoa Pods, just manual integration. |
Ah, I see the issue. Thanks for reporting! |
Dyld Message: Library not loaded: @rpath/UberRides.framework/UberRides When doing distribution build, even my workaround didn't help. |
Is this error occurring when you run Product -> Archive? |
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. |
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)? |
I'm trying to repro the issue you're running into. Is this export for Ad Hoc Deployment? |
Enterprise In house. Can it be because of that? |
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/. 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! |
Still, why do I have to move out the resources from the bundle in order to make it work even as debug build? |
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! |
I'm about to test with new certificate/provisioning profile. Will keep you posted. |
With new certificate/provisioning profile it did work! Thanks for your support! |
Glad you got that sorted out! A fix for the resources issue will be pushed to Github soon. |
App with Uber SDK won't compile.
The text was updated successfully, but these errors were encountered: