【问题标题】:React Native IOS build failed, linker command failed with exit code 1React Native IOS 构建失败,链接器命令失败,退出代码为 1
【发布时间】:2025-12-26 05:10:16
【问题描述】:

我在基于 Catalina 10.15.7 intel 的芯片上使用 Xcode 12.4。我用这个“https://reactnative.dev/docs/environment-setup”创建了一个示例反应原生项目,它构建和运行完美。 现在,在进一步处理项目之后,我安装了 react native navigation 和 stack navigator 以及样式化组件和矢量图标依赖项。现在我遇到了这个问题。请帮我解决这个问题。谢谢。

Xcode 构建出错

ld: warning: directory not found for option '-L-L/Users/ahyanawaz/Library/Developer/Xcode/DerivedData/Store-bekhqxqflgsqtyheijdxkrbwrksk/Build/Products/Debug-iphonesimulator/CocoaAsyncSocket'
ld: library not found for -lCocoaAsyncSocket
clang: error: linker command failed with exit code 1 (use -v to see invocation)

【问题讨论】:

    标签: xcode react-native linker command build-error


    【解决方案1】:

    也许试试npm installyarn 然后cd ios && pod install

    【讨论】:

      最近更新 更多