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

Build fails after running "react-native link" #1930

Closed
vinodr opened this issue Feb 17, 2017 · 3 comments
Closed

Build fails after running "react-native link" #1930

vinodr opened this issue Feb 17, 2017 · 3 comments
Labels

Comments

@vinodr
Copy link

vinodr commented Feb 17, 2017

Please fill out the following details:

  1. Version of Mobile SDK Used: 5.0.1
  2. Issue found in Native App or Hybrid App: React Native (iOS)
  3. XCode : Version 8.2.1
    CocoaPods: Version 1.2.0
  4. Device: iPhone 5
  5. Steps to reproduce: Create react native app using "forceios create" and run "react-native link"
  6. Actual behavior: Build fails with the following error.
  7. Expected Behavior: Build successful
  8. Error Log:

screen shot 2017-02-17 at 11 38 14 am

@wmathurin
Copy link
Contributor

Why are you running react-native link?

I just ran forceios then I opened App/iOS/App.xcworkspace and was able to build without any problems.

Are you opening the generated workspace or project?

If you don't see the workspace, then the problem might be cocoapod.
Try the latest version by first doing

sudo gem install cocoapods

Then go to App/iOS and run

pod update

@vinodr
Copy link
Author

vinodr commented Feb 17, 2017

I am going thru the Dream House React Native tutorial (https://github.com/ForceDotComLabs/dreamhouse-mobile-react) and as part of it, I am trying to install and link the force theme package (as mentioned at https://github.com/ForceDotComLabs/react.force.base.theme).

I am using "react-native link" instead of "rnpm link", not sure if this makes any difference.

I am opening the workspace. It builds for me immediately after creating the app but fails after running the linking command.

I also have external libraries (iOS SDKs) that I am including in the mobile app, so I already have cocoapods installed and seems to be working correctly.

When I run "react-native link", two libraries called "libFMDB.a" and "libFMDB-ios.a" are getting added to the frameworks and libraries list, along with the salesforce base theme library, where the error is showing up. I can manually link just the salesforce theme library in my app for now but thought someone might be interested in knowing about the issue and fix it.

@huminzhi huminzhi added the bug label Feb 27, 2017
@wmathurin
Copy link
Contributor

Please open an issue on the dreamhouse-mobile-react repo.
If you want to build react native application with SalesforceMobileSDK, please use our forceios command line tool.

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

No branches or pull requests

3 participants