0
我正在使用Apache Cordova 6.5,添加iOS平台并尝试在由cordova iOS项目创建的工作区内使用cocoapods。将cocoapods添加到使用cordova创建的iOS工作区中6.5
当我运行命令
吊舱安装
Xcode项目将无法编译,我得到以下错误
diff: /../Podfile.lock: No such file or directory
diff: /Manifest.lock: No such file or directory
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
下面是我做的步骤得到这个问题:
- 创建一个新的科尔多瓦6.5项目
科尔多瓦创建APP1
- 转到项目文件夹,并添加iOS平台
CD APP1/
cordova平台添加ios
- 转到iOS的项目文件夹,运行荚
CD平台/ IOS
荚初始化
吊舱安装
我试过两个b asic podfile和一个我添加了我的工作区名称的地方
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
workspace 'HelloCordova'
xcodeproj 'HelloCordova.xcodeproj'
target 'HelloCordova' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for HelloCordova
end
有关如何解决这个问题的任何想法?
PS:我用的科尔多瓦6.5.0,科尔多瓦-IOS 4.3.1时,Xcode 8.2