简体   繁体   中英

using React-native init, a new iOS app can't build in Xcode, build error 'ld: library not found for -lDoubleConversion

steps to reproduce:

react-native init FirstProject cd FirstProject open ios/FirstProject.xcodeproj

... Xcode opens the project:

在此处输入图片说明

I select build target iOS Simulator -> Iphone XR

A terminal window opens in the background:

在此处输入图片说明

However, Xcode returns a build error:

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

shown with warnings here https://gist.github.com/jasonfb/7b51a260df419590c6fadda93fb49348

在此处输入图片说明

You should be opening the workspace, not the project file as indicated per instructions at the end of the project creation script:

    • cd "/Users/xxx/FirstProject" && npx react-native run-ios
    - or -
    • Open FirstProject/ios/FirstProject.xcworkspace in Xcode or run "xed -b ios"
    • Hit the Run button```

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM