- r - 以节省内存的方式增长 data.frame
- ruby-on-rails - ruby/ruby on rails 内存泄漏检测
- android - 无法解析导入android.support.v7.app
- UNIX 域套接字与共享内存(映射文件)
我从它的网站下载并安装了 CocoaPods,我的 pod 版本是 pod --version 1.0.0
。
当我想安装 Alamofire 或 swiftJSON 时,例如,通过将它们添加到我的 podfile 并运行 pod install
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
target 'random contact' do
pod 'Alamofire', '~> 3.4'
pod 'SwiftyJSON'
end
我收到这个错误:
Analyzing dependencies
[!] Unable to satisfy the following requirements:
- `Alamofire (~> 3.4)` required by `Podfile`
None of your spec sources contain a spec satisfying the dependency: `Alamofire (~> 3.4)`.
You have either:
* out-of-date source repos which you can update with `pod repo update`.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.
如错误所述,我在我的终端中运行 pod repo update
然后它打印出这条长消息:
Updating spec repo `master`
$ /Applications/CocoaPods.app/Contents/Resources/bundle/bin/git pull --ff-only
error: Your local changes to the following files would be overwritten by merge:
CocoaPods-version.yml
Specs/AGIPC/0.0.2/AGIPC.podspec.json
Specs/APIService-UmengAnalytics/3.6.6/APIService-UmengAnalytics.podspec.json
Specs/Accengage-iOS-SDK@iOS-stars/5.4.0/Accengage-iOS-SDK@iOS-stars.podspec.json
Specs/AdToApp/45.29/AdToApp.podspec.json
Specs/AdToApp/45.30/AdToApp.podspec.json
Specs/AdToApp/45.31/AdToApp.podspec.json
Specs/AdToApp/45.32/AdToApp.podspec.json
Specs/AesUtils/0.1.0/AesUtils.podspec.json
Specs/AesUtils/0.2.0/AesUtils.podspec.json
Specs/AesUtils/0.3.1/AesUtils.podspec.json
Specs/AesUtils/0.3.3/AesUtils.podspec.json
Specs/AesUtils/0.4.0/AesUtils.podspec.json
Specs/AesUtils/0.4.1/AesUtils.podspec.json
Specs/AesUtils/0.4.2/AesUtils.podspec.json
Specs/AesUtils/0.5.0/AesUtils.podspec.json
Specs/AesUtils/0.6.1/AesUtils.podspec.json
Specs/AudioPlayer-Swift/1.0/AudioPlayer-Swift.podspec.json
Specs/AudioPlayerSwift/1.0/AudioPlayerSwift.podspec.json
Specs/AutoSizeTableView/1.0.1/AutoSizeTableView.podspec.json
Specs/AutoSizeTableView/1.0.2/AutoSizeTableView.podspec.json
Specs/AutoSizeTableView/1.0.3/AutoSizeTableView.podspec.json
Specs/AutoSizeTableView/1.1.0/AutoSizeTableView.podspec.json
Specs/BCMagicMoveTransition/1.0.2/BCMagicMoveTransition.podspec.json
Specs/BMA4S/5.1.1.5/BMA4S.podspec.json
Specs/BMA4S/5.1.1.7/BMA4S.podspec.json
Specs/BMA4S/5.1.2/BMA4S.podspec.json
Specs/BMA4S/5.1.3/BMA4S.podspec.json
Specs/BMA4S/5.1.4/BMA4S.podspec.json
Specs/BMA4S/5.2.0/BMA4S.podspec.json
Specs/BMA4S/5.2.1/BMA4S.podspec.json
Specs/BMA4S/5.2.2/BMA4S.podspec.json
Specs/BMA4S/5.2.3/BMA4S.podspec.json
Specs/BMA4S/5.2.4/BMA4S.podspec.json
Specs/BMA4S/5.2.5/BMA4S.podspec.json
Specs/BMA4S/5.2.6/BMA4S.podspec.json
Specs/BMA4S/5.2.7/BMA4S.podspec.json
Specs/BMA4S/5.2.8/BMA4S.podspec.json
Specs/BMA4S/5.2.9/BMA4S.podspec.json
Specs/BMA4S/5.3.0/BMA4S.podspec.json
Specs/BMA4S/5.3.1/BMA4S.podspec.json
Specs/BMA4S/5.3.2/BMA4S.podspec.json
Specs/BMA4S/5.3.3/BMA4S.podspec.json
Specs/BMA4S/5.3.4/BMA4S.podspec.json
Specs/BMA4S/5.3.5/BMA4S.podspec.json
Specs/Bucket/0.1.0/Bucket.podspec.json
Specs/CrashlyticsFrameworkIOS/3.0.8/CrashlyticsFrameworkIOS.podspec.json
Specs/CtrlZ/0.1.0/CtrlZ.podspec.json
Specs/Curio_iOS_SDK/1.2.5/Curio_iOS_SDK.podspec.json
Specs/DSTableViewWithDynamicHeight/1.0.3/DSTableViewWithDynamicHeight.podspec.json
Specs/DZNCategories/1.0.4/DZNCategories.podspec.json
Specs/DZNCategories/1.1.1/DZNCategories.podspec.json
Specs/DZNCategories/1.1.2/DZNCategories.podspec.json
Specs/DZNCategories/1.1/DZNCategories.podspec.json
Specs/DZNCategories/1.2/DZNCategories.podspec.json
Specs/DemoWatch1/8.0.18/DemoWatch1.podspec.json
Specs/Drafter/1.0.0/Drafter.podspec.json
Specs/FCGIKit/0.1.2/FCGIKit.podspec.json
Specs/FCGIKit/0.1.7/FCGIKit.podspec.json
Specs/FCGIKit/0.1.8/FCGIKit.podspec.json
Specs/FCGIKit/0.2.0/FCGIKit.podspec.json
Specs/FCGIKit/0.2.1/FCGIKit.podspec.json
Specs/FCGIKit/0.2.2/FCGIKit.podspec.json
Specs/FCGIKit/0.2.3/FCGIKit.podspec.json
Specs/FCGIKit/0.2.4/FCGIKit.podspec.json
Specs/FCGIKit/0.2.5/FCGIKit.podspec.json
Specs/FCGIKit/0.2.6/FCGIKit.podspec.json
Specs/FCHTTPClient/0.1.1/FCHTTPClient.podspec.json
Specs/FCHTTPClient/0.1.21/FCHTTPClient.podspec.json
Specs/FCHTTPClient/0.1.22/FCHTTPClient.podspec.json
Specs/FCHTTPClient/0.1.4/FCHTTPClient.podspec.json
Specs/FIDataFlowArchitecture/1.0.0/FIDataFlowArchitecture.podspec.json
Specs/FIDataFlowArchitectureNew/1.0.0/FIDataFlowArchitectureNew.podspec.json
Specs/FIDataFlowArchitectureNew/1.0.1/FIDataFlowArchitectureNew.podspec.json
Specs/FIDataFlowArchitectureNew/1.0.10/FIDataFlowArchitectureNew.podspec.json
Specs/FIDataFlowArchitectureNew/1.0.11/FIDataFlowArchitectureNew.podspec.json
Specs/FIDataFlowArchitectureNew/1.0.12/FIDataFlowArchitectureNew.podspec.json
Specs/FIDataFlowArchitectureNew/1.0.13/FIDataFlowArchitectureNew.podspec.json
Specs/FIDataFlowArchitectureNew/1.0.14/FIDataFlowArchitectureNew.podspec.json
Specs/FIDataFlowArchitectureNew/1.0.2/FIDataFlowArchitectureNew.podspec.json
Specs/FIDataFlowArchitectureNew/1.0.3/FIDataFlowArchitectureNew.podspec.json
Specs/FIDataFlowArchitectureNew/1.0.4/FIDataFlowArchitectureNew.podspec.json
Specs/FIDataFlowArchitectureNew/1.0.5/FIDataFlowArchitectureNew.podspec.json
Specs/FIDataFlowArchitectureNew/1.0.6/FIDataFlowArchitectureNew.podspec.json
Specs/FIDataFlowArchitectureNew/1.0.7/FIDataFlowArchitectureNew.podspec.json
Specs/FIDataFlowArchitectureNew/1.0.8/FIDataFlowArchitectureNew.podspec.json
Specs/FIDataFlowArchitectureNew/1.0.9/FIDataFlowArchitectureNew.podspec.json
Specs/FIDataFlowArchitectureNew/1.1.0/FIDataFlowArchitectureNew.podspec.json
Specs/FIDataFlowArchitectureNew/1.1.1/FIDataFlowArchitectureNew.podspec.json
Specs/FIDataFlowArchitectureNew/1.2.0/FIDataFlowArchitectureNew.podspec.json
Specs/FIDataFlowArchitectureNew/1.2.1/FIDataFlowArchitectureNew.podspec.json
Specs/FIDataFlowArchitectureNew/1.2.2/FIDataFlowArchitectureNew.podspec.json
Specs/FIDataFlowArchitectureNew/1.2.3/FIDataFlowArchitectureNew.podspec.json
Specs/FIDataFlowArchitectureNew/1.2.4/FIDataFlowArchitectureNew.podspec.json
Specs/FIDataFlowArchitectureNew/1.2.5/FIDataFlowArchitectureNew.podspec.json
Specs/FIDynamicViewController/0.1.0/FIDynamicViewController.podspec.json
Specs/FIDynamicViewController/1.2.0/FIDynamicViewController.podspec.json
Specs/FIDynamicViewController/1.2.1/FIDynamicViewController.podspec.json
Specs/FIDynamicViewController/1.3.0/FIDynamicViewController.podspec.json
Specs/FIDynamicViewController/1.3.1/FIDynamicViewController.podspec.json
Specs/FIDynamicViewController/1.3.2/FIDynamicViewController.podspec.json
Specs/FUIVerticalTabBarController/1.0.1/FUIVerticalTabBarController.podspec.json
Specs/FUIVerticalTabBarController/1.0.2/FUIVerticalTabBarController.podspec.json
Specs/FUIVerticalTabBarController/1.0.3/FUIVerticalTabBarController.podspec.json
Specs/FUIVerticalTabBarController/1.0/FUIVerticalTabBarController.podspec.json
Specs/GoogleOAuth2/1.0.126/GoogleOAuth2.podspec.json
Specs/JMButtons/0.1.0/JMButtons.podspec.json
Specs/JMButtons/0.1.1/JMButtons.podspec.json
Specs/JMButtons/0.1.5/JMButtons.podspec.json
Specs/JMButtons/0.1.7/JMButtons.podspec.json
Specs/JMButtons/0.1.8/JMButtons.podspec.json
Specs/JMButtons/0.2.0/JMButtons.podspec.json
Specs/JMButtons/0.2.1/JMButtons.podspec.json
Specs/JMButtons/0.2.2/JMButtons.podspec.json
Specs/JMButtons/0.2.3/JMButtons.podspec.json
Specs/JMButtons/0.2.4/JMButtons.podspec.json
Specs/JMProgressStepper/0.0.4/JMProgressStepper.podspec.json
Specs/LCTabBarControllerForLM/1.1.2/LCTabBarControllerForLM.podspec.json
Specs/LeanCloud/3.1.0/LeanCloud.podspec.json
Specs/MNSRemoteAB/1.0.0/MNSRemoteAB.podspec.json
Specs/MNSRemoteAB/1.0.1/MNSRemoteAB.podspec.json
Specs/MNSRemoteAB/1.0.2/MNSRemoteAB.podspec.json
Specs/MNSRemoteAB/1.0.3/MNSRemoteAB.podspec.json
Specs/MNSRemoteAB/1.0.6/MNSRemoteAB.podspec.json
Specs/MNSRemoteAB/1.0.7/MNSRemoteAB.podspec.json
Specs/MNSRemoteAB/1.0.8/MNSRemoteAB.podspec.json
Specs/NHToolSets/0.1.1/NHToolSets.podspec.json
Specs/NHToolSets/0.1.2/NHToolSets.podspec.json
Specs/NHToolSets/0.1.3/NHToolSets.podspec.json
Specs/NHToolSets/0.2.0/NHToolSets.podspec.json
Specs/NHToolSets/0.2.1/NHToolSets.podspec.json
Specs/NudgeSpotDemo/0.1.0/NudgeSpotDemo.podspec.json
Specs/NudgeSpotDemo/0.1.1/NudgeSpotDemo.podspec.json
Specs/ODObjCRuntime/1.0.0/ODObjCRuntime.podspec.json
Specs/ODObjCRuntime/1.1.0/ODObjCRuntime.podspec.json
Specs/ODObjCRuntime/1.1.1/ODObjCRuntime.podspec.json
Specs/OneAPMLib/2.1.2/OneAPMLib.podspec.json
Specs/PBToolKits/0.2.2/PBToolKits.podspec.json
Specs/PBToolKits/0.2.3/PBToolKits.podspec.json
Specs/PBToolKits/0.2.4/PBToolKits.podspec.json
Specs/PBToolKits/0.2.5/PBToolKits.podspec.json
Specs/PBToolKits/0.2.6/PBToolKits.podspec.json
Specs/PBToolKits/0.2.7/PBToolKits.podspec.json
Specs/PBToolKits/0.3.0/PBToolKits.podspec.json
Specs/PBToolKits/0.3.1/PBToolKits.podspec.json
Specs/PBToolKits/0.3.2/PBToolKits.podspec.json
Specs/PBToolKits/0.3.3/PBToolKits.podspec.json
Specs/PBToolKits/0.3.4/PBToolKits.podspec.json
Specs/PBToolKits/0.3.5/PBToolKits.podspec.json
Specs/PBToolKits/0.3.6/PBToolKits.podspec.json
Specs/PBToolKits/0.3.7/PBToolKits.podspec.json
Specs/React/0.1.0/React.podspec.json
Specs/React/0.10.0-rc/React.podspec.json
Specs/React/0.10.0/React.podspec.json
Specs/React/0.11.0-rc/React.podspec.json
Specs/React/0.11.0/React.podspec.json
Specs/React/0.12.0-rc/React.podspec.json
Specs/React/0.13.0-rc/React.podspec.json
Specs/React/0.2.0/React.podspec.json
Specs/React/0.2.1/React.podspec.json
Specs/React/0.3.0/React.podspec.json
Specs/React/0.3.1/React.podspec.json
Specs/React/0.3.11/React.podspec.json
Specs/React/0.3.2/React.podspec.json
Specs/React/0.3.3/React.podspec.json
Specs/React/0.3.4/React.podspec.json
Specs/React/0.3.8/React.podspec.json
Specs/React/0.4.0/React.podspec.json
Specs/React/0.4.1/React.podspec.json
Specs/React/0.4.2/React.podspec.json
Specs/React/0.4.3/React.podspec.json
Specs/React/0.4.4/React.podspec.json
Specs/React/0.5.0/React.podspec.json
Specs/React/0.6.0-rc/React.podspec.json
Specs/React/0.6.0/React.podspec.json
Specs/React/0.7.0-rc.2/React.podspec.json
Specs/React/0.7.1/React.podspec.json
Specs/React/0.8.0-rc.2/React.podspec.json
Specs/React/0.8.0-rc/React.podspec.json
Specs/React/0.8.0/React.podspec.json
Specs/React/0.9.0-rc/React.podspec.json
Specs/React/0.9.0/React.podspec.json
Specs/Rollout.io/0.14.0/Rollout.io.podspec.json
Specs/Rollout.io/0.14.1/Rollout.io.podspec.json
Specs/SFProgressHUD/0.0.2/SFProgressHUD.podspec.json
Specs/SFProgressHUD/0.0.3/SFProgressHUD.podspec.json
Specs/SFProgressHUD/0.0.4/SFProgressHUD.podspec.json
Specs/SFProgressHUD/0.1.1/SFProgressHUD.podspec.json
Specs/SMW/0.1.1/SMW.podspec.json
Specs/SOAPEngine/1.21.2/SOAPEngine.podspec.json
Specs/SOAPEngine/1.24/SOAPEngine.podspec.json
Specs/SOAPEngine/1.25.1/SOAPEngine.podspec.json
Specs/SZCircleView/0.0.1/SZCircleView.podspec.json
Specs/SZCircleView/0.0.2/SZCircleView.podspec.json
Specs/SZCircleView/0.0.3/SZCircleView.podspec.json
Specs/SZFrameHelper/0.0.1/SZFrameHelper.podspec.json
Specs/SZQRCodeCoverView/0.0.1/SZQRCodeCoverView.podspec.json
Specs/SZQRCodeCoverView/0.0.2/SZQRCodeCoverView.podspec.json
Specs/SZTabSwitchBar/0.0.1/SZTabSwitchBar.podspec.json
Specs/SZTabSwitchBar/0.0.2/SZTabSwitchBar.podspec.json
Specs/SZTabSwitchBar/0.0.3/SZTabSwitchBar.podspec.json
Specs/ShipLib/1.7.1/ShipLib.podspec.json
Specs/ShipLib/1.7.3/ShipLib.podspec.json
Specs/ShipLib/1.7.5/ShipLib.podspec.json
Specs/ShipLib/1.7.6/ShipLib.podspec.json
Specs/ShipLib/1.7/ShipLib.podspec.json
Specs/ShipLib/2.0.0/ShipLib.podspec.json
Specs/ShipLib/2.0.2/ShipLib.podspec.json
Specs/ShipLib/2.0.3/ShipLib.podspec.json
Specs/ShipLib/2.0.4/ShipLib.podspec.json
Specs/ShipLib/2.0.5/ShipLib.podspec.json
Specs/SuperModel/0.0.2/SuperModel.podspec.json
Specs/SuperModel/0.0.3/SuperModel.podspec.json
Specs/Tesseract-wrapper/0.0.2
Specs/TestGhostPlus/1.05/TestGhostPlus.podspec.json
Specs/TestGhostPlus/1.21/TestGhostPlus.podspec.json
Specs/TestGhostPlus/1.22/TestGhostPlus.podspec.json
Specs/UIImage+BPG/0.0.1/UIImage+BPG.podspec.json
Specs/UIImage+BetterAdditions/2.0.0/UIImage+BetterAdditions.podspec.json
Specs/UIImage+BetterAdditions/2.0.1/UIImage+BetterAdditions.podspec.json
Specs/UIImage+BetterAdditions/2.0.2/UIImage+BetterAdditions.podspec.json
Specs/ably/0.7.0/ably.podspec.json
Specs/iOSBlocks/1.0.1/iOSBlocks.podspec.json
Specs/iOSBlocks/1.0.2/iOSBlocks.podspec.json
Specs/iOSBlocks/1.0/iOSBlocks.podspec.json
Specs/iOSBlocks/1.1.1/iOSBlocks.podspec.json
Specs/iOSBlocks/1.1/iOSBlocks.podspec.json
Specs/iOSBlocks/1.2/iOSBlocks.podspec.json
Specs/mParticle_Kahuna/2.10.1/mParticle_Kahuna.podspec.json
Specs/mParticle_Kahuna/2.11.0/mParticle_Kahuna.podspec.json
Specs/mParticle_Kahuna/2.11.1/mParticle_Kahuna.podspec.json
Specs/mParticle_Kahuna/2.11.2/mParticle_Kahuna.podspec.json
Specs/mParticle_Kahuna/2.11.3/mParticle_Kahuna.podspec.json
Specs/mParticle_Kahuna/2.11.4/mParticle_Kahuna.podspec.json
Specs/mParticle_Kahuna/2.12.0/mParticle_Kahuna.podspec.json
Please, commit your changes or stash them before you can merge.
Aborting
Updating 075ddcb..44c0917
[!] CocoaPods was not able to update the `master` repo. If this is an unexpected issue and persists you can inspect it running `pod repo update --verbose`
我该如何解决这个问题?
最佳答案
您的 Specs 存储库可能已损坏。 Cocoapods 建议您删除本地副本并重新克隆。尝试:
$ sudo rm -fr ~/.cocoapods/repos/master
然后:
$ pod setup
我还建议运行:
sudo rm -fr ~/Library/Caches/CocoaPods/
在运行 pod setup 以清除缓存之前。
这是他们的链接:http://blog.cocoapods.org/Repairing-Our-Broken-Specs-Repository/
关于ios - CocoaPods 中的 "` pod repo 更新 ` does not happen"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38030317/
有没有办法在 CocoaPod 文件中写入注释?我看了他们的CocoaPods Guide ,但我什么也没看到。 最佳答案 您可以使用 Ruby 注释语法在 Podfile 中添加注释: 内联 #co
我在 Xcode 项目中有多个目标,它们必须依赖于相同的 pod 列表。我可以这样写 Podfile: target :target1 do pod 'pod1' pod 'pod2'
我正在创建一个新的 cocoapod,并希望包含另一个 cocoapod 作为依赖项。 我在 podspec 中添加了必要的行: s.dependency 'Locksmith', '~> 2.0
我执行了我的正常 pod update并收到以下消息: [!] There was an error reading '~/.cocoapods/repos/master/CocoaPods-vers
背景 几年前,我为我正在从事的项目安装了 cocoapods。从那以后我就没有使用过它,现在我需要更新它才能让 Flutter 工作。 系统 操作系统 MacOS Mojave 版本 10.14.3
我想知道用 CocoaPod 包含演示项目的最佳方法是什么。特别是,我希望它成为任何人都可以尝试使用 pod try 的组件。命令。 我看到两个选项: 选项 1:使用 Podfile 在 Exampl
我正在尝试为 firebase 获取一个 pod,但是我在搜索框中输入的任何名称都没有返回任何内容。是网站打不开还是?谢谢 最佳答案 这似乎是许多开发人员不时面临的问题,包括我自己,但是 cocoap
我有一个库的公共(public)分支,该库已存在于 CocoaPods/Specs 中。在 Podfile 中,我可以通过执行以下操作来引用此 fork pod: pod 'CoolLibrary',
pod 命令是否支持列出给定项目中已安装的 CococaPods 的选项? pod list 似乎显示了所有已发布 pod 的列表。我查看了文档,但找不到执行此操作的方法。 最佳答案 如 @DougA
我在 Amazon s3 中存储了一个预编译的框架。 “pod spec lint”失败并出现以下错误。 - ERROR | [iOS] file patterns: The `source_file
我正在用一些资源文件创建我自己的 pod。它基本上是这样定义的: Pod::Spec.new do |s| s.name = 'MyName' s.version = '0.
我正在尝试在我的项目中使用编译到 iOS 的 libFLAC,并使用 CocoaPod 作为依赖项进行安装。 问题是,如果我使用 CocoaPod 0.39 版,工作区创建得很好,但如果我使用 Coc
我在使 CocoaPods 依赖项在 RubyMotion 中工作时遇到了各种问题。首先,如果我添加 dependency 'JSONKit'到我的 Rakefile 然后运行 rake它被 ca
当使用 faSTLane 和 cocoapods 构建我们的 iOS 应用程序时,我注意到 faSTLane 不使用我使用安装的 cocoapods 版本 sudo gem install cocoa
有没有办法在 Podfile 中指定那个 xcconfig文件应该是 #include d 在 Cocoapods 生成的那个? 是否有公开的方法/变量用于附加此 #include还是我需要阅读生成的
在新的 XCode5 中构建我的项目时,我收到以下警告: Pods-App 作为“libPods-App.a”的隐式依赖项被拒绝,因为其架构“i386”不包含所有必需的架构“x86_64” . 最佳答
我已经使用以下命令在 bundle 中安装了 Cocoapods-art: bundle exec gem install cocoapods-art 这是成功消息: Fetching cocoap
在 Xcode 7 中,cocoapods 库的库具有排除代码覆盖率的功能。 但在 Xcode 8 中,该库将包含代码覆盖率。 我是否可以在代码覆盖率中排除该库? 示例:安装 pod 'TPKeybo
我目前正在寻找一个仅支持 Carthage 作为包管理器的库。我希望将其集成的项目已经有一些 CocoaPods 依赖项。有人尝试过同时使用这两个管理器吗? 我觉得这是一个坏主意,但我很想听听实际情况
我刚刚在 Specs Repo 中使用 Pod trunk Push 发布了 Pod 的 Beta 版本。我想知道是否有任何方法可以从规范存储库中删除此版本规范。我没有找到任何通过 pod 命令执行此
我是一名优秀的程序员,十分优秀!