我刚刚完成了与 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)
我读到了,因为我有 pod,fetch-blob
我不需要使用 .xcodeproj,而是使用 .xcworkspace。我从侧面板中删除了 .xcodeproj,并.a
从 Link Binary With Libraries 中删除了 .xcodeproj。我如何知道我是否在使用 .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