简体   繁体   English

ld:找不到带有 pod 的 -lreact-native-fetch-blob 的库?

[英]ld: library not found for -lreact-native-fetch-blob with pods?

I just finished working with android and moved on to Xcode and it's been pretty challenging to work with.我刚刚完成了 android 的工作,然后转到了 Xcode,使用它非常具有挑战性。 I am also unfamiliar with pods, but I know that when I installed them I got this from the log:我也不熟悉 pods,但我知道当我安装它们时,我从日志中得到了这个:

    Fetching podspec for `RNVectorIcons` from `../node_modules/react-native-vector-icons`
Fetching podspec for `react-native-fetch-blob` from `../node_modules/react-native-fetch-blob`
Downloading dependencies
Installing QBImagePickerController (3.4.0)
Using RNVectorIcons (4.5.0)
Installing RSKImageCropper (2.1.0)
Installing React (0.11.0)
Using react-native-fetch-blob (0.10.6)

I read that since I have pods with fetch-blob I don't need to use .xcodeproj, instead use .xcworkspace.我读到了,因为我有带有fetch-blob pod,所以我不需要使用 .xcodeproj,而是使用 .xcworkspace。 I deleted the .xcodeproj from the side panel and removed the .a from the Link Binary With Libraries.我从侧面板中删除了 .xcodeproj,并从 Link Binary With Libraries 中删除了.a How do I know if I am using .xcworkspace?我如何知道我是否在使用 .xcworkspace?

Here is the error:这是错误:

    ld: warning: directory not found for option '-L/Users/laneyw/Desktop/ReactProjects/exampleapp/ios/build/Build/Products/Debug-iphonesimulator/RNVectorIcons'
ld: warning: directory not found for option '-L/Users/laneyw/Desktop/ReactProjects/exampleapp/ios/build/Build/Products/Debug-iphonesimulator/React'
ld: warning: directory not found for option '-L/Users/laneyw/Desktop/ReactProjects/exampleapp/ios/build/Build/Products/Debug-iphonesimulator/react-native-fetch-blob'
ld: library not found for -lreact-native-fetch-blob

right when you open xcode click 'Open another project' and then navigate to your .xcworkspace file in finder当您打开 xcode 时,单击“打开另一个项目”,然后在 finder 中导航到您的 .xcworkspace 文件在此处输入图片说明

In my case the blue with white 'A' is the xcodeproj and the white with blue 'A' is the .xcworkspace在我的情况下,带有白色“A”的蓝色是 xcodeproj,带有蓝色“A”的白色是 .xcworkspace

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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