簡體   English   中英

吊艙安裝不正確

[英]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的步驟

  1. 打開一個終端窗口,然后$ cd進入您的項目目錄。
  2. 要創建Podfile,您需要運行$ pod init.
  3. 打開您的Podfile。 第一行應指定支持的平台和版本。
  platform :ios, '9.0' use_frameworks! target 'yourProjectName' do pod 'Alamofire' end 
  1. 然后安裝吊艙

pod install

首先刪除所有Pod和Podfile.lock

  1. 打開終端並轉到文件夾路徑
  2. 以此編輯您的Podfile

    platform :ios, '8.0' use_frameworks! target 'MyApp' do //add your all pods end

  3. pod install

  4. 關閉xcode並打開MyApp.xcworkspace文件

檢查更多內容: 命令行參考

這將為您提供幫助。

更新您的Cocoapods版本,Cocoapods 1.5.3出現了此問題,此問題已在1.6.1中修復。

要做那個開放的終端,只需鍵入gem install cocoapods

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM