cocoapods

Why is my library not able to expand on the CocoaPods website?

流过昼夜 提交于 2020-02-27 19:15:19
问题 I'm trying to access my library's information through the CocoaPods website, but I'm not able to. All the other libraries seem to be able to expand (mine is MKWeatherUndergroundKit) Here is my podspec Pod::Spec.new do |s| s.name = "MKWeatherUndergroundKit" s.version = "0.6" s.summary = "A simple iOS and OS X library for retrieving weather information using the Weather Underground API" s.homepage = "https://github.com/MendyK/MKWeatherUndergroundKit" s.license = { :type => "MIT", :file =>

Why is my library not able to expand on the CocoaPods website?

生来就可爱ヽ(ⅴ<●) 提交于 2020-02-27 19:14:39
问题 I'm trying to access my library's information through the CocoaPods website, but I'm not able to. All the other libraries seem to be able to expand (mine is MKWeatherUndergroundKit) Here is my podspec Pod::Spec.new do |s| s.name = "MKWeatherUndergroundKit" s.version = "0.6" s.summary = "A simple iOS and OS X library for retrieving weather information using the Weather Underground API" s.homepage = "https://github.com/MendyK/MKWeatherUndergroundKit" s.license = { :type => "MIT", :file =>

cocoapods

喜欢而已 提交于 2020-02-26 22:09:35
1.卡住 Cloning spec repo ` cocoapods ` from ` git@github.com:CocoaPods/Specs.git ` 解决办法: pod setup cd ~/.cocoapods/repos git clone --depth 1 https://github.com/CocoaPods/Specs.git master 2.错误 error: RPC failed; curl 18 transfer closed with outstanding read data remaining fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed 解决办法 git config --global http.postBuffer 524288000 来源: oschina 链接: https://my.oschina.net/u/3697347/blog/3168881

IOS中CocoaPods安装与使用

霸气de小男生 提交于 2020-02-26 08:10:08
网上有很多文章关于 cocoaPods配置文章,其实cocoaPods配置并不难,只是比较繁琐而已,我也是照着网站文章一步步搭建配置成功。写这篇文章的目的就是像做笔记一样,便于以后用的时候好回忆。废话不多说,直接开始。 CocoaPods在Ios中强大的功能,我就不再这里一一解说(不清楚的盆友,可以搜索一下) 一:安装前提 1:必须安装Xcode 2: 必须安装 xcode 中 command Line 二:开始安装cocoaPods (我假设大家都安装第一步) 1: 下载 /安装 cocoapods ①:打开终端 输入命令 ②:在终端上直接输入 gem install cocoapods 三:使用CocoaPods 1:你先随便在XCode中建一个项目。 2:打开终端,使用cd命令定位到需要使用CocoaPods的项目根路径。 3: 现在需要在项目中建立Podfile文件 (这个是 CocoaPods 固定规则) 步骤①:使用创建Podfile的命令 touch Podfile 步骤②: 然后编辑Podfile文件,命令 open -e Podfile 步骤③: 在弹出的编辑界面中输入(你要下载的内容) platform :ios, '7.0' pod 'Reachability', '~> 3.2' pod 'SDWebImage', '~> 3.7.3' pod

CocoaPods+PrefixHeader.pch+Const

北城以北 提交于 2020-02-26 06:48:50
Cocoapods意义体现在两个方面。第一,在引入第三方库时它可以自动为我们完成各种各样的配置,包括配置编译阶段、连接器选项、甚至是ARC环境下的-fno-objc-arc配置等。第二,使用CocoaPods可以很方便地查找新的第三方库,这些类库是比较“标准的”,而不是网上随便找到的,这样可以让我们找到真正好用的类库。 CocoaPods 的核心组件 CocoaPods是用 Ruby 写的,并划分成了若干个Gem包。 CocoaPods在解析执行过程中最重要的几个包的路径分别是:CocoaPods/CocoaPods、 CocoaPods/Core和 CocoaPods/Xcodeproj。 CocoaPods / CocoaPod:这是面向用户的组件,每当执行一个pod命令时,这个组件将被激活。它包括了所有实用CocoaPods的功能,并且还能调用其他gem包来执行任务。 CocoaPods / Core:Core gem提供了与CocoaPods相关的文件(主要是podfile和podspecs)的处理。 Podfile:该文件用于配置项目所需要的第三方库,它可以被高度定制。本文中我们主要在这里做动作。 Podspec:该文件描述了一个库将怎样被添加进工程中。.podspec文件可以标识该第三方库所需要的源码文件、依赖库、编译选项,以及其他第三方库需要的配置。

Flutter 项目之libwebp pod install报错

吃可爱长大的小学妹 提交于 2020-02-26 06:30:21
解决方法: 1、前往文件夹:/用户/FL/.cocoapods/repos/master/Specs/1/9/2/libwebp 2、打开相对应的版本 本人的版本号是1.0.3 3、打开相对应的文件并将 "source": { "git": "https://github.com/webmproject/libwebp.git", "tag": "v1.0.3" } 将其中的“git”对应的url替换为https://github.com/webmproject/libwebp.git,并保存执行pod install 来源: oschina 链接: https://my.oschina.net/u/2519763/blog/3167257

[!] CDN: trunk Repo update failed

冷暖自知 提交于 2020-02-25 23:56:05
环境 CocoaPods 1.8.4 Xcode 11.3 macOS 10.15.2 问题 pod install 安装库的时候出现了以下问题 [!] CDN: trunk Repo update failed - 3 error(s): CDN: trunk URL couldn’t be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/7/5/AFNetworking/1.0/AFNetworking.podspec.json, error: Failed to open TCP connection to raw.githubusercontent.com:443 (Connection refused - connect(2) for “raw.githubusercontent.com” port 443) CDN: trunk URL couldn’t be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/7/5/AFNetworking/2.6.0/AFNetworking.podspec.json, error: Failed to open TCP

How to create cocoa-pod of a Objective-C framework?

冷暖自知 提交于 2020-02-21 22:01:41
问题 I have a framework of which I want to create cocoapods. I am using that framework in several projects. Kindly tell how can i create cocoapods of a FRAMEWORK. So its like I have my Xcode proj ready and framework and also git. But how to create cocoapod of it. 来源: https://stackoverflow.com/questions/36810612/how-to-create-cocoa-pod-of-a-objective-c-framework

How to create cocoa-pod of a Objective-C framework?

杀马特。学长 韩版系。学妹 提交于 2020-02-21 21:56:09
问题 I have a framework of which I want to create cocoapods. I am using that framework in several projects. Kindly tell how can i create cocoapods of a FRAMEWORK. So its like I have my Xcode proj ready and framework and also git. But how to create cocoapod of it. 来源: https://stackoverflow.com/questions/36810612/how-to-create-cocoa-pod-of-a-objective-c-framework

cocoapods 卸载,重装,高版本的使用

无人久伴 提交于 2020-02-19 07:57:05
今天清理下电脑,发现自己电脑上的cocoapods经常出现的一个问题就是一些经常用的第三方库cocoapods搜不到,比如SDWebImage,然后就鼓捣了一下 $pos list 命令发现M 以后的库查询不到了,发现 $ pod search 和 $ pod list 查找的都是本地的第三方类库,并不是服务器的类库, 于是原因肯定就出在本地和远程不同步的问题。 最后在网上找了写资料也有解决的办法 使用 pod repo update master 命令同步远程服务器的第三方类库, 发现有可能是网络问题,有可能是远程服务器就是github,然后类库列表不全。 然后想到了另外的办法,有大神在gitcafe和oschina上建立了CocoaPods索 引库的镜像。因为gitcafe和oschina都是国内的服务器,所以在执行索引更 新操作时,会快很多。 //下面的切换命令本人没有切换成功 一直报这个错误 [!] To setup the master specs repo, please run `pod setup`. $pod repo remove master ​ $ pod repo add master https://gitcafe.com/akuandev/Specs.git (2016.5.31日网站已关闭) $​pod repo update ​ 或者可用http: