我一直在安装pods并且pod正确安装。但是,在项目导航器中,.xcconfig文件为红色,我无法在项目中设置相同的>信息 - >配置,因为它们没有列出,只列出了没有。调试时,我发现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。有人可以帮忙吗?
P.S,我尝试过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)
答案 0 :(得分:0)
安装pod的步骤
$ pod init.
platform :ios, '9.0' use_frameworks! target 'yourProjectName' do pod 'Alamofire' end
pod install
答案 1 :(得分:0)
首先删除所有pod和Podfile.lock
通过此
编辑您的podfile platform :ios, '8.0'
use_frameworks!
target 'MyApp' do
//add your all pods
end
pod install
MyApp.xcworkspace
文件这会对你有帮助。
答案 2 :(得分:0)
更新您的Cocoapods版本,我在Cocoapods 1.5.3中遇到了这个问题,该问题已在1.6.1中修复
要做那个打开的终端,然后键入
gem install cocoapods