我正在使用Apache Cordova 6.5,添加iOS平台并尝试在cordova iOS项目创建的工作区内使用cocoapod。
当我运行命令
时pod install
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.
以下是我为解决此问题所采取的措施:
cordova创建app1
cd app1 /
cordova平台添加ios
cd platforms / ios
pod init
pod install
我尝试使用基本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:我使用的是cordova 6.5.0,cordova-ios 4.3.1,Xcode 8.2
答案 0 :(得分:1)
通过修改 build-debug.xcconfig 和 build-release.xcconfig 文件解决了此问题替换
#include "../pods-release.xcconfig"
使用类似
的路径#include "../Pods/Target Support Files/Pods-HelloCordova/Pods-HelloCordova.release.xcconfig
然后再做一次
pod install