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

App not launching after integration #10

Open
oferRounds opened this issue Jan 28, 2018 · 9 comments
Open

App not launching after integration #10

oferRounds opened this issue Jan 28, 2018 · 9 comments

Comments

@oferRounds
Copy link
Contributor

oferRounds commented Jan 28, 2018

Hi Buglife,

Getting this error after integrating the RN library. Any idea?
Thanks!

dyld: Library not loaded: @rpath/Buglife.framework/Buglife
  Referenced from: /var/containers/Bundle/Application/DA75F366-6311-4B13-9522-1CA7DB66AE6E/Bob.app/Bob
  Reason: image not found
@oferRounds
Copy link
Contributor Author

Also, in Android the app crash once it’s launched, currently couldn’t find the error...

@schukin
Copy link
Contributor

schukin commented Jan 30, 2018

Hi @oferRounds - Thanks for reporting this, it looks like a duplicate of #8

Please let us know if you're continuing to see this issue!

@schukin
Copy link
Contributor

schukin commented Jan 30, 2018

@oferRounds are you able to attach a stack trace / log of the crash on Android?

@oferRounds
Copy link
Contributor Author

@schukin I’ll try, didn’t see one at first look, but perhaps it‘s because my lack of experience with Android. I’ll try to fetch more details.

@lucascarvalho
Copy link
Contributor

I'm also having the same problem.

The full stack trace on Xcode is:

dyld: Library not loaded: @rpath/Buglife.framework/Buglife
  Referenced from: /var/containers/Bundle/Application/360DD310-805C-4104-91DD-0B03E45B0075/myapp.app/myapp
  Reason: image not found

@oferRounds
Copy link
Contributor Author

hi @schukin
Just returned now to the repository, switching to use the RN version. Still having the same issue – app crash on launch on Android. Seeing this crash:
http://crashes.to/s/eca6facc1e8

Could you have a look?

@oferRounds
Copy link
Contributor Author

@oferRounds
Copy link
Contributor Author

Ok, this failure was due to the fact the package was not added to Android’s MainApplication’s getPackages method.
To sum up, there are issues with the linking:

  • On Android, the new BuglifePackage() should be added to getPackages’s list
  • On iOS, for some reason there is a need to add the Buglife.framework to the Embedded Binaries. So this should be included, or, if not possible, to add it to the Readme file

@sandfox
Copy link

sandfox commented Mar 1, 2019

When installing 0.1.13 we had to manually add Buglife.framework to the embedded frameworks list in xcode. Without this step the app would compile in debug but then crash with no obviously correlated error, and release builds would fail with some equally "not helpful" message (thanks xcode!).

On Android, when running react-native link react-native-buglife, none of the imports were added to the MainApplication.java and we had to add them manually

import com.buglife.sdk.Buglife;
import com.buglife.sdk.InvocationMethod;
import com.buglife.BuglifeModule;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants