豆荚安装不正确
我一直在安装豆荚,豆荚已正确安装。但是,在项目导航器中,.xcconfig文件呈红色,我无法在项目 - >信息 - >配置中设置相同,因为它们未列出,只列出任何项目。调试时,我能找到的.xcconfig文件由Xcode的以下路径豆荚安装不正确
/Volumes/Macintosh HD/Users/xxxxxxxxxx/Documents/xxxxxxxx/app/Pods/Pods/Target Support Files/Pods-broadcastuploadSetupUI/Pods-broadcastuploadSetupUI.release.xcconfig
/荚得到访问的有两次,因为其中我收到以下错误:
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测试版。任何人都可以提供帮助吗?
P.S,我尝试了sudo gem install,pod更新,解体,安装以及互联网上提供的一切解决方案。我会很高兴,如果有人可以帮助
这是我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)
步骤安装荚
- 打开一个终端窗口, $ cd到您的项目目录中。
- 要创建Podfile,您需要运行
$ pod init.
- 打开您的Podfile。第一行应指定所支持的平台和版本号。
platform :ios, '9.0' use_frameworks! target 'yourProjectName' do pod 'Alamofire' end
- 然后安装荚
pod install
没有工作Saurabh! –
您是否检查过您的代码是否需要在编辑下转换为当前Swift语法。 –
首先删除所有吊舱和Podfile.lock
- 打开终端进入这个
platform :ios, '8.0' use_frameworks! target 'MyApp' do //add your all pods end
pod install
- 密切Xcode和开放
MyApp.xcworkspace
文件
检查文件夹路径
编辑您的podfile F或更多:Command-line Reference
这会帮助你。
谢谢,但它没有工作Yuyutsu。 –
你可以删除'source'https:// URL_TO_ACCESS_PODSPEC_FOR_POD'' 'source'https:// github.com/CocoaPods/Specs.git''这一行 – Yuyutsu
这不是一个pod,它的podspec文件在Cocopods 。它是一个本地提到的pod,所以它必须在那里才能识别podspec文件 –
删除您的工作区,pod锁定,pod文件,pod文件夹,派生数据,然后再次初始化pod文件并重新安装 - 清理,编译并运行。 – Rivendell
让我试试这个 –
我试过了,但不幸的是,没有成功! :/ –