[英]Adding cocoapods to a iOS workspace created with cordova 6.5
我正在使用Apache Cordova 6.5,添加了iOS平台,並試圖在cordova iOS項目創建的工作區中使用cocoapods。
當我運行命令
吊艙安裝
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.
這是我為解決此問題而執行的步驟:
科爾多瓦創建app1
光盤app1 /
科爾多瓦平台添加ios
cd平台/ ios
莢初始化
吊艙安裝
我嘗試使用基本的Podfile和添加了工作空間名稱的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
通過修改build-debug.xcconfig和build-release.xcconfig文件並替換可以解決此問題。
#include "../pods-release.xcconfig"
像
#include "../Pods/Target Support Files/Pods-HelloCordova/Pods-HelloCordova.release.xcconfig
然后再做一次
pod install
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.