首页 文章

找不到-lDoubleConversion的库

提问于
浏览
1

我试图在XCode上构建,但发生了 ld: library not found for -lDoubleConversion 错误 . 我可以 Build react-native run-ios . 这样可行,但XCode无法构建......

ld:warning:找不到选项'-L / Users / xxxxx / Library / Developer / Xcode / DerivedData / xxxxx / Build / Products / Debug-iphonesimulator / DoubleConversion'ld:warning:找不到选项'-L的目录/ Users / xxxxx / Library / Developer / Xcode / DerivedData / xxxxx / Build / Products / Debug-iphonesimulator / Folly'ld:warning:找不到选项'-L / Users / xxxxx / Library / Developer / Xcode / DerivedData /的目录xxxxx / Build / Products / Debug-iphonesimulator / GTMOAuth2'ld:警告:找不到选项'-L / Users / xxxxx / Library / Developer / Xcode / DerivedData / xxxxx / Build / Products / Debug-iphonesimulator / GTMSessionFetcher'ld的目录:警告:找不到选项'-L / Users / xxxxx / Library / Developer / Xcode / DerivedData / xxxxx / Build / Products / Debug-iphonesimulator / Google-Maps-iOS-Utils'ld:warning:找不到目录选项'-L / Users / xxxxx / Library / Developer / Xcode / DerivedData / xxxxx / Build / Products / Debug-iphonesimulator / GoogleToolboxForMac'ld:warning:找不到选项'-L / Users / xxxxx / Libra的目录ry / Developer / Xcode / DerivedData / xxxxx / Build / Products / Debug-iphonesimulator / Protobuf'ld:warning:找不到选项'-L / Users / xxxxx / Library / Developer / Xcode / DerivedData / xxxxx / Build / Products / Debug-iphonesimulator / React'ld:warning:找不到选项'-L / Users / xxxxx / Library / Developer / Xcode / DerivedData / xxxxx / Build / Products / Debug-iphonesimulator / glog'ld的目录:警告:目录不是找到选项'-L / Users / xxxxx / Library / Developer / Xcode / DerivedData / xxxxx / Build / Products / Debug-iphonesimulator / leveldb-library'ld:warning:找不到选项'-L / Users / xxxxx /的目录Library / Developer / Xcode / DerivedData / xxxxx / Build / Products / Debug-iphonesimulator / nanopb'ld:warning:找不到选项'-L / Users / xxxxx / Library / Developer / Xcode / DerivedData / xxxxx / Build / Products / Debug-iphonesimulator / react-native-google-maps'ld:warning:找不到选项'-L / Users / xxxxx / Library / Developer / Xcode / DerivedData / xxxxx / Build / Products / Debug-iphonesimulator / react-本机 Map ld:警告:找不到选项'-L / Users / xxxxx / Library / Developer / Xcode / DerivedData / xxxxx / Build / Products / Debug-iphonesimulator / yoga'ld的目录:找不到-lDoubleConversion clang的库:错误:链接器命令失败,退出代码为1(使用-v查看调用)

1 回答

  • 1

    XCode找不到lDoubleConversion库,需要将库添加到cocoa pods文件中 .

    您可以按照以下步骤轻松完成此操作

    1.将库文件添加到podfile

    pod 'DoubleConversion', :podspec => './../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
    

    2.删除Podfile.lock

    3.运行pod安装

    4.在xcode链接框架和库中添加DoubleConversion.a

    5.清理项目并重新构建 .

    这应该有效 .

相关问题