我有一个工作项目,使用pod文件几个星期了.当我得知我的一些pod有更新后,我尝试'pod install'就得到了这个奇怪的错误
Analyzing dependencies
[!] Pod::Executable pull
Updating 1337455..e9f6e93
error: The following untracked working tree files would be overwritten by merge:
AeroGear-Push/0.7.0/AeroGear-Push.podspec
AeroGear/1.2.0/AeroGear.podspec
BrynKit/1.3.0/BrynKit.podspec
BrynKit/1.3.1/BrynKit.podspec
CSURITemplate/0.3/CSURITemplate.podspec
EXiLE/1.0.2/EXiLE.podspec
FlurrySDK/4.2.3/FlurrySDK.podspec
FoundationExtension/0.39.1/FoundationExtension.podspec
FoundationExtension/0.39/FoundationExtension.podspec
GCDObjects/0.0.1/GCDObjects.podspec
HTAutocompleteTextField/1.2.1/HTAutocompleteTextField.podspec
HTAutocompleteTextField/1.2.2/HTAutocompleteTextField.podspec
HTAutocompleteTextField/1.2/HTAutocompleteTextField.podspec
IDMPhotoBrowser/1.1.2/IDMPhotoBrowser.podspec
Igor/0.5.0/Igor.podspec
KFOpenWeatherMapAPI/0.2.0/KFOpenWeatherMapAPI.podspec
NGSegmentedViewController/0.1.1/NGSegmentedViewController.podspec
PPiFlatSegmentedControl/1.3/PPiFlatSegmentedControl.podspec
PiwikTracker/2.0.0/PiwikTracker.podspec
SDWebImage/3.4/SDWebImage.podspec
libwbxml/0.11.2/libwbxml.podspec
wbxml/0.0.1/wbxml.podspec
Please move or remove them before you can merge.
Aborting
Run Code Online (Sandbox Code Playgroud)
另一篇文章建议使用'rm -rf~/.cocoapods'命令行,但这导致我的cocoapods停止一起工作所有项目现在所有项目我试图'pod install'我得到'无法找到规范..'错误
[!]无法找到规格
CorePlot (= 1.3).
当我尝试pod repo update和时出现此错误pod install
CDN:无法下载主干 URL: https ://cdn.cocoapods.org/deprecated_podspecs.txt,错误:无法打开到 cdn.cocoapods.org:443 的 TCP 连接(没有到主机的路由 - connect(2) for "cdn.cocoapods.org" 端口 443)
有人知道如何解决这个问题吗?
localhost:PodTest3 haiwang$ pod install
Analyzing dependencies
Downloading dependencies
Installing MBProgressHUD (0.9.2)
Installing Masonry (1.0.2)
Generating Pods project
Abort trap: 6
Run Code Online (Sandbox Code Playgroud)
升级到Xcode 8后,cocoapods不再起作用.我试图卸载并安装,但它仍然无法正常工作.
我正在使用CocoaPods作为macOS应用程序.我有AFNetworking(当前版本,1.2.1)的编译错误,并发现这些在先前版本(1.2.0)中不存在.
我做了一些研究,但没有找到定义pod版本的可能性(例如,版本1.2.0而不是1.2.1).
这是可能的还是我必须等到该库的新版本?
我正在运行XCode 7,Swift 2.0,iOS 9.
我想使用Cocoapods在我的项目中安装Alamofire.我做了以下事情:
gem install cocoapods
pod setup
pod init
将Podfile更新为:
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
use_frameworks!
target 'JSONeg' do
pod 'Alamofire', :branch => 'swift-2'
end
Run Code Online (Sandbox Code Playgroud)
然后我安装了pod:
pod install
我将以下内容添加到ViewController.swift中
import Alamofire
这会引发以下错误:
Cannot load underlying module for 'Alamofire'
我测试了另一个pod并且它引发了同样的错误,所以我猜问题是安装了Cocoapods.任何帮助将不胜感激.
我正在尝试添加一个由cocoapods添加的pod,我正在使用swift 3,而pod(SQlite.swift).
我试图使用没有最新swift版本的高手,但是有一个分支为swift 3.
那么我应该如何设置我的podfile来下载特定的分支?可能吗?
这是我的podfile:
platform :ios, '10.0'
target 'RedShirt' do
use_frameworks!
# Pods for RedShirt
pod 'SQLite.swift', :git => 'https://github.com/stephencelis/SQLite.swift.git'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.0'
end
end
end
Run Code Online (Sandbox Code Playgroud) 更新到Xcode 7.3后,它会抛出Cannot create __weak reference in file using manual reference countingpod文件中的错误.有人解决了这个问题吗?
我有一些项目我正在尝试使用Xcode 6 Beta 2.这些项目都有一些类型的库使用XCTest(Kiwi/XCTest和Specta)而不是在Xcode 6中构建,因为XCTest/XCTest.h不能被发现.
fatal error: 'XCTest/XCTest.h' file not found
#import <XCTest/XCTest.h>
Run Code Online (Sandbox Code Playgroud)
我注意到XCTest.framework不再出现在"带有二进制文件的链接库"构建阶段列表中,但这很好,因为当我使用Xcode 6 创建一个新项目时,看起来库是自动链接的.
也许是一些相关性,我的XCTest需要的依赖关系都是通过Cocoapods引入的.
有什么我不知道我需要用我的项目更新吗?
我正在尝试使用cocoapods库在Xcode 6 Beta-6中构建照片App扩展.Xcode为照片扩展创建的桥接标头无法从cocoapods中看到任何内容.
例如:#import <GPUImage/GPUImage.h>导致错误"GPUImage/GPUImage.h" file not found.
我已经尝试了所有可以想象的导入路径(括号和引号)并且几乎没有成功.例外情况是,对于简单的pod来说SVProgressHUD,以下丑陋可怕的黑客行为:
#import "../Pods/SVProgressHUD/SVProgressHUD/SVProgressHUD.h".
但对于GPUImage,它走进GPUImage.h标题并决定它突然看不到,GPUImageContext.h尽管没有问题,当导入时使用桥接标头作为不属于应用程序扩展的普通swift代码.
编译应用程序扩展有什么不同,这会阻止桥接头部表现得很好?
注意:我已经阅读了本教程的所有可能的排列,并且它不能立即应用,以防万一有人认为他们已经找到答案.
cocoapods ×10
ios ×4
xcode ×4
swift ×3
objective-c ×2
podfile ×2
abort ×1
afnetworking ×1
alamofire ×1
git ×1
ios8 ×1
iphone ×1
xcode6-beta6 ×1
xcode8 ×1
xctest ×1