【发布时间】:2017-04-04 10:54:14
【问题描述】:
我在一个 React Native iOS 项目上使用 auth0,我已经完成了以下步骤:
首先你需要运行以下命令来安装 react-native-lock
npm install --save react-native-lock
之后,将 react-native-lock 链接到您的 iOS 项目:
react-native link react-native-lock
在运行上述程序时,cocoapods 会安装一些依赖项,这些依赖项都安装成功:
Adding Podfile to iOS project
Installing Pods
Analyzing dependencies
Downloading dependencies
Using AFNetworking (3.1.0)
Using Lock (1.28.2)
Using Masonry (0.6.4)
Using SimpleKeychain (0.7.0)
Using TouchIDAuth (0.2.0)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 4 dependencies from the Podfile and 5 total pods installed.
在我的Project > Build Settings > Other Linker Flags 我有:
lc++
${inherited}
-ObjC
但是,当我将项目构建到物理 iPhone 时,每个 installed 依赖项都会出现此错误:
ld: warning: directory not found for option '-L/Users/dan/Library/Developer/Xcode/DerivedData/myapp-acmwajylejkvendtsdryuouwuvnl/Build/Products/Debug-iphoneos/AFNetworking'
【问题讨论】:
-
您的项目是否包含 .pch 文件??
-
我的应用程序中没有 .pch 文件。
-
好的,你的 MAC 有什么操作系统?
-
更新您的操作系统。
-
我正在运行 OSX El Capitan 版本 10.11.6。
标签: ios objective-c xcode react-native