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

Fresh application [email protected] error build in Xcode 11.0 #26748

Closed
oleksandr-dziuban opened this issue Oct 7, 2019 · 14 comments
Closed
Labels
Bug Resolution: Locked This issue was locked by the bot.

Comments

@oleksandr-dziuban
Copy link

Impossible to assemble a build in latest Xcode 11.0 with fresh application, [email protected].
Xcode always shows "Failed Build error":

ld: library not found for -lDoubleConversion
clang: error: linker command failed with exit code 1 (use -v to see invocation)

With Xcode 10.2.1 everything worked fine.

React Native version:

System:
    OS: macOS 10.14.6
    CPU: (4) x64 Intel(R) Core(TM) i5-6360U CPU @ 2.00GHz
    Memory: 105.80 MB / 8.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 12.4.0 - ~/.nvm/versions/node/v12.4.0/bin/node
    Yarn: 1.19.0 - /usr/local/bin/yarn
    npm: 6.9.0 - ~/.nvm/versions/node/v12.4.0/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 13.0, DriverKit 19.0, macOS 10.15, tvOS 13.0, watchOS 6.0
    Android SDK:
      API Levels: 23, 24, 25, 26, 27, 28
      Build Tools: 23.0.1, 25.0.1, 26.0.1, 26.0.2, 26.0.3, 27.0.3, 28.0.0, 28.0.3
      System Images: android-23 | Intel x86 Atom_64, android-23 | Google APIs Intel x86 Atom, android-23 | Google APIs Intel x86 Atom_64, android-25 | Google APIs Intel x86 Atom, android-27 | Google Play Intel x86 Atom, android-28 | Google APIs Intel x86 Atom
  IDEs:
    Android Studio: 3.5 AI-191.8026.42.35.5791312
    Xcode: 11.0/11A420a - /usr/bin/xcodebuild
  npmPackages:
    @react-native-community/cli: 2.9.0 => 2.9.0 
    react: 16.9.0 => 16.9.0 
    react-native: 0.61.2 => 0.61.2 
  npmGlobalPackages:
    react-native-cli: 2.0.1

Steps To Reproduce

  1. Generate fresh application with react-native init TestApp
  2. Open this project in Xcode 11.0
  3. Press build application
  4. Always throws an error

Expected result:
Build assembled correctly.

@franckboudraa
Copy link

franckboudraa commented Oct 8, 2019

Same issue for me when building for device from Xcode.

ld: library not found for -lDoubleConversion clang: error: linker command failed with exit code 1 (use -v to see invocation)

Xcode 11.0
react-native 0.60.5

When building to iOS simulator from Xcode I don't have the problem.

EDIT: downgrading to Xcode 10.3 fixed the bug.

@oleksandr-dziuban
Copy link
Author

@franckboudraa Thanks to confirm.
Interesting that with CLI everything assembling correctly

@pabloluz
Copy link

pabloluz commented Oct 9, 2019

Same as @franckboudraa here.

@pabloluz
Copy link

In my case, downgrading to Xcode 10.3 didn't resolve the issue.

@franckboudraa
Copy link

In my case, downgrading to Xcode 10.3 didn't resolve the issue.

Have you tried to reinstall pods and clean the Xcode build cache ?

@pabloluz
Copy link

pabloluz commented Oct 10, 2019 via email

@pabloluz
Copy link

In my case, downgrading to Xcode 10.3 didn't resolve the issue.

Have you tried to reinstall pods and clean the Xcode build cache ?

I tried to reinstall everything (all libraries I'm currently using) again (for the 3rd or 4th time), using a fresh RN project, cleaning up the caches, installing the pods and everything else... and now I'm able to build for both Android and iOS...

However, I still can't build using Xcode. Maybe later on today I'll try to upgrade again to Xcode 11 and build using it.

@oleksandr-dziuban
Copy link
Author

@pabloluz Even with fresh generated rect native project we can't build project in Xcode. Reinstallation of everything doesn't help.
With CLI everything is working as usual

@pabloluz
Copy link

@oleksandr-dziuban @franckboudraa are any of you guys able to build and release sign your apps? If so, could you please tell me how? Via command line?

Thank you very much.

@oleksandr-dziuban
Copy link
Author

I’m using Fastlane to sign, build and deploy apps

@franckboudraa
Copy link

@pabloluz Yes, on Xcode : select build for "Generic iOS device", then go to "Product > Archive".

On Android Studio : go to "Build > Generate signed bundle / APK".

@pabloluz
Copy link

.xcodeproj doesn't build, but when I tried using .xcworkspace file it worked.
Thank you @franckboudraa, @oleksandr-dziuban.

Even though I'm now able to build and release-sign the app, the issue initially mentioned by @oleksandr-dziuban is still happening.

@pabloluz
Copy link

Hey guys, quick update: it's now working for me. If you are still interested in the topic, please check my comments out on this issue: #25546 (comment)

Should you have any questions, feel free to ask me ;)

@oleksandr-dziuban
Copy link
Author

Thanks @pabloluz
I will close this issue as we have newest same issue with more comments.

@facebook facebook locked as resolved and limited conversation to collaborators Oct 3, 2021
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Oct 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants