Skip to content
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

Loading static frameworks as shared frameworks #373

Closed
maknz opened this issue Oct 15, 2015 · 7 comments
Closed

Loading static frameworks as shared frameworks #373

maknz opened this issue Oct 15, 2015 · 7 comments
Assignees
Milestone

Comments

@maknz
Copy link

maknz commented Oct 15, 2015

We're trying to use Raygun4iOS, which is a crash reporting library. I've tried specifying it in a plugin's Podfile, and just putting the framework into platforms/ios in the plugin. Regardless, when the app is starting, we are told that NativeScript could not load the framework -- as a log line when the app is starting and listing the frameworks it's loading. There's no other error detail though, so I don't know why this would be happening.

Instructions for setting up Raygun in a regular iOS application are here: https://raygun.io/docs/languages/ios.

@jasssonpet
Copy link
Contributor

Hello @maknz,

It seems that the Raygun4iOS is distributed as a static framework, but we are trying to load it as a shared framework. This is a bug on our side.

If you ignore the erroneous console warning, the app should be able to use the APIs just fine.

Thank you for reporting this, we will be fixing it shortly.

@jasssonpet jasssonpet added the bug label Oct 15, 2015
@ligaz
Copy link

ligaz commented Oct 16, 2015

Hey @maknz,

I'm very interested why you have chosen Raygun for crash reporting. Have you tried or considered Telerik's own Analytics solution which apart from providing app insights has a crash reporting built into it as well?

@maknz
Copy link
Author

maknz commented Oct 16, 2015

I didn't actually know about it -- but we'd like to keep all our error reporting across the board (Ruby, iOS, Android) consolidated which is something Raygun provides. Of course it doesn't delve too much into analytics outside of error reporting, we haven't looked too far into that yet.

@fealebenpae
Copy link
Contributor

We've determined that even though the runtime complains it can't find the Raygun4iOS.framework because it it static, classes in it should still be available in JavaScript through the fallback mechanism. You can disregard the error message unless Raygun APIs are not available in JavaScript.

However, it would be better to use either a Cocoa framework, or a Podfile that references the Raygun4iOS pod.

@maknz
Copy link
Author

maknz commented Nov 9, 2015

We are using the Podfile method currently. We're fine with ignoring the error, it does all work :)

@jasssonpet jasssonpet changed the title Problem with Raygun4iOS Loading static frameworks as shared frameworks Nov 10, 2015
@jasssonpet
Copy link
Contributor

One thing we can do for now is to report the error message only the first time we try to load the framework, not on each call to it. Also we can modify the message to suggest that this is expected with static frameworks, until we find a way to include in the metadata whether a framework is static or shared.

@jasssonpet
Copy link
Contributor

This is also seems to be the case for the googleads-mobile-ios CocoaPod.

@jasssonpet jasssonpet self-assigned this Nov 13, 2015
@jasssonpet jasssonpet added this to the 1.6.0 (Under review) milestone Nov 13, 2015
jasssonpet added a commit that referenced this issue Nov 13, 2015
jasssonpet added a commit that referenced this issue Nov 13, 2015
jasssonpet added a commit that referenced this issue Nov 13, 2015
jasssonpet added a commit that referenced this issue Nov 16, 2015
jasssonpet added a commit that referenced this issue Nov 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants