我刚刚完成了android的工作,转而使用Xcode,使用它非常具有挑战性。我也不熟悉pod,但我知道当我安装它们时,我从日志中得到了以下内容:
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)我读到,因为我有fetch-blob的pod,所以我不需要使用.xcodeproj,而是使用.xcworkspace。我从侧面板中删除了.xcodeproj,并从带有库的链接二进制文件中删除了.a。如何知道我是否在使用.xcworkspace?
下面是错误:
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发布于 2018-08-25 06:56:22
当你打开xcode时,点击‘打开另一个项目’,然后在finder中导航到你的.xcworkspace文件

在我的例子中,蓝色和白色的'A‘是xcodeproj,白色和蓝色的'A’是.xcworkspace
https://stackoverflow.com/questions/52012566
复制相似问题