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

Could not link the SDK on react-native 0.59 #612

Closed
annakocheshkova opened this issue Jun 25, 2019 · 10 comments
Closed

Could not link the SDK on react-native 0.59 #612

annakocheshkova opened this issue Jun 25, 2019 · 10 comments

Comments

@annakocheshkova
Copy link

annakocheshkova commented Jun 25, 2019

Description

Note: Opening this issue to track the problem a customer has run into while installing our SDK in an app with react-native installed using cocopods.


Created a github repo here that recreated my issue where installing AppCenter on a react-native project that is using cocoapods. Official React-Native instructions on how to install React-Native using Cocoapod is located here.

I tried several attempts but no success:

  • Manually linked AppCenter (avoiding cocoapod), but ran into issues locating RN header files.
  • Modified appcenter.podspec file that is referenced in the PodFile. Pod install failed with "target has transitive dependencies that include static binaries:" Modified the appcenter.podspec in node_modules and added s.static_framework = true, and the pod install ran without issues. But when I built the workspace, it couldn't find <AppCenter/AppCenter.h>. I stopped at trying to create a podspec for AppCenterReactNativeShared and add s.static_framework = true there instead of appcenter.podspec.

Repro Steps

https://github.com/markmadlangbayan/appcenter-react-native-pods

Details

  1. Which version of the App Center SDK are you using?

  2. Which OS version did you experience the issue on?

  3. What third party libraries are you using?

  4. Run the following command and paste the output below: react-native info

  5. If you're developing for React Native iOS, run the following command and paste the output below: pod --version

@annakocheshkova
Copy link
Author

annakocheshkova commented Jun 25, 2019

@markmadlangbayan Opening this issue for you. Please fill in the details above by editing the comment.

@annakocheshkova
Copy link
Author

Could you also please confirm if you've followed these steps ?

@markmadlangbayan
Copy link

Could you also please confirm if you've followed these steps ?

@annakocheshkova It's almost the same step except I had to manually convert the project from manual to CocoaPods. < 0.59's react-native --init doesn't use CocoaPod.

@annakocheshkova
Copy link
Author

Got it @markmadlangbayan. What issues have you run into after performing those steps?

@annakocheshkova
Copy link
Author

Hi @markmadlangbayan we haven't heard from you in a while, do you have any updates? If so, please re-open this issue, we'd love to hear from you!

@markmadlangbayan
Copy link

Hi @markmadlangbayan we haven't heard from you in a while, do you have any updates? If so, please re-open this issue, we'd love to hear from you!

@annakocheshkova , please close the case. I was in touch with Vyas at the AppCenter support and determined that this has something to do with use_framework! support.

@JuanSeBestia
Copy link

@markmadlangbayan You know if there is any way to deal with the error that is occurring with the use_framework! flag?. Because I need it

@markmadlangbayan
Copy link

@markmadlangbayan You know if there is any way to deal with the error that is occurring with the use_framework! flag?. Because I need it

@JuanSeBestia, I haven't tested yet, but RN 0.61.0 should have this fix. https://github.com/facebook/react-native/releases/tag/v0.61.0 .

Let me know if that works.

@JuanSeBestia
Copy link

Not work :/
I know that in RN 0.61.0 it's "solved", I use RN 0.61.2 but when import your modules and use use_frameworks!, the error "it couldn't find <AppCenter/AppCenter.h>" appear

@Jamminroot
Copy link

Hey, @JuanSeBestia, let's track this problem here

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