[英]Pods not installing properly
我一直在安裝Pod,並且Pod已正確安裝。 但是,在Project導航器中,.xcconfig文件是紅色的,我無法在project-> info->配置中設置相同的顏色,因為它們沒有列出,也沒有列出。 調試后,我可以發現xcode在以下路徑中訪問了.xcconfig文件
/Volumes/Macintosh HD/Users/xxxxxxxxxx/Documents/xxxxxxxx/app/Pods/Pods/Target Support Files/Pods-broadcastuploadSetupUI/Pods-broadcastuploadSetupUI.release.xcconfig
/ Pods在那里兩次,因此我收到以下錯誤:
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.
我正在使用Xcode 9 beta。 任何人都可以幫忙嗎?
PS,我已經嘗試過sudo gem install,pod update,disintegrate,install和作為解決方案在互聯網上可用的所有內容。 如果有人可以幫忙,我會很高興
這是我的podfile:
#platform :ios, ‘11.0’
source 'https://URL_TO_ACCESS_PODSPEC_FOR_POD'
source 'https://github.com/CocoaPods/Specs.git'
target 'app' do
pod 'objective-zip', '~> 1.0'
pod 'AssistScreenShareKit'
use_frameworks!
end
target ‘broadcastupload’ do
pod 'AssistScreenShareKit'
use_frameworks!
end
target ‘broadcastuploadSetupUI' do
pod 'AssistScreenShareKit'
use_frameworks!
end
錯誤:
The file “Pods-app.release.xcconfig” couldn’t be opened because there is no such file. (/Volumes/Macintosh HD/Users/xxxxxxxx/Documents/xxxxx/app/Pods/Pods/Target Support Files/Pods-app/Pods-app.release.xcconfig)
安裝Pod的步驟
$ pod init.
platform :ios, '9.0' use_frameworks! target 'yourProjectName' do pod 'Alamofire' end
pod install
首先刪除所有Pod和Podfile.lock
以此編輯您的Podfile
platform :ios, '8.0' use_frameworks! target 'MyApp' do //add your all pods end
pod install
MyApp.xcworkspace
文件 檢查更多內容: 命令行參考
這將為您提供幫助。
更新您的Cocoapods版本,Cocoapods 1.5.3出現了此問題,此問題已在1.6.1中修復。
要做那個開放的終端,只需鍵入gem install cocoapods
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.