cocoapods

Unable to add a source with url `https://cdn.cocoapods.org/` named `trunk`

只谈情不闲聊 提交于 2020-04-30 08:44:37
问题 I'm building an app with capacitor for ios. When I launch the command 'npx cap sync ios' (which launch pod install ) and I get this error : ✖ Updating iOS native dependencies with "pod install" (may take several minutes): ✖ update ios: [error] Error running update: Analyzing dependencies Cloning spec repo `trunk` from `https://cdn.cocoapods.org/` [!] Unable to add a source with url `https://cdn.cocoapods.org/` named `trunk`. You can try adding it manually in `/Users/damien/.cocoapods/repos`

Getting a 403 response when trying to run 'pod setup'

前提是你 提交于 2020-04-30 07:35:38
问题 So I've started a new Xcode project and want to add cocoapods to it. I've successfully installed the gem but when I run pod setup I get the following: Setting up CocoaPods master repo [!] Pod::Executable pull error: The requested URL returned error: 403 Forbidden while accessing https://github.com/CocoaPods/Specs.git/info/refs fatal: HTTP request failed If I navigate to the address in question through my browser I can see the git repo without issue so can't figure out why it's rejecting it

When trying to installing Pods I get the error “with_indifferent_access”

空扰寡人 提交于 2020-04-30 04:49:06
问题 When I made pod install on terminal this problem appeared. cocoapods-core-1.7.2/lib/cocoapods-core/source/metadata.rb:15:in initialize': undefined method with_indifferent_access' for false:FalseClass (NoMethodError) 回答1: rm -rf ~/.cocoapods/repos/trunk/ Try this command. It works for me 来源: https://stackoverflow.com/questions/56612927/when-trying-to-installing-pods-i-get-the-error-with-indifferent-access

CDN: trunk URL couldn't be downloaded: *** Response: Couldn't connect to server

廉价感情. 提交于 2020-04-25 14:56:56
进行swift开发,执行pod install时出现 CDN: trunk URL couldn't be downloaded: *** Response: Couldn't connect to server 错误,可以尝试如下两种解决办法: 1. 执行 pod repo remove trunk 命令,移除掉trunk源就行了 2. 打开你工程的podfile文件,在最顶部添加 source ' https://github.com/CocoaPods/Specs.git' 来源: oschina 链接: https://my.oschina.net/dong706/blog/4053403

AFNetworking封装-项目使用

烂漫一生 提交于 2020-04-24 17:47:26
本篇博客是接着上一篇AFNetworking源码解析的后续,如果想对AFNetworking源码有所了解。 请读一下 https://www.cnblogs.com/guohai-stronger/p/9191497.html 。 YTKNetwork的源码详解: https://www.cnblogs.com/guohai-stronger/p/9194519.html 这篇博客主要是对AFNetworking代码进行封装,也是自己在实际项目中所使用过的(对中小型企业或者项目)可直接使用,也会在github上传(偷偷窃喜一下,一直想在github上有所项目,一直没有时间),趁着端午几天有时间,给github贡献点自己力量。本篇读下来大约10-15分钟,欢迎指正。 一.结构解析 最核心(可直接拖拽到新项目中) (拓展cocoapods的拖入) 拖入之前,需要导入AFNetworking,最好利用cocoapods导入,cocoapods导入时 vim Podfile --->输入i platform :ios, ' 8.0 ' target " targetName " do pod ' AFNetworking ' end (有一点在 然后按Esc,并且输入“ :”号进入vim命令模式,然后在冒号后边输入wq )最后pod install。编译一下,拖入项目的类就好了

@_dynamicReplacement(for: ) error in simulator

自古美人都是妖i 提交于 2020-04-18 05:35:57
问题 I use CocoaPods to manage my private components. Now I have a component Test . The declaration of one of the classes is as follows: open class Test { open dynamic func test() { print("test") } } I have no problems with this component, it is already in my private repo Now I have another component called Test2 . I want to use @_dynamicReplacement(for:) in Test2 to exchange the test() method in Test as follows: public extension Test { @_dynamicReplacement(for: test()) public func test2() { print

No such module 'SDWebImage' using pod

|▌冷眼眸甩不掉的悲伤 提交于 2020-04-14 07:29:27
问题 This question is already asked here But no answers work for me. I have tried all the ways which are mentioned below. Open project using .xcworkspace Deleted all the pod related file from project and again pod install even updated the cocoa pods. Added $(inherited) flag in Other Linker Flags. and -ObjC also, so it may find path from pod framework. Added bridging file to import SDWebImage. Deep clean, build every time and restart the project. I am checking all scenario since 4 to 5 hours but I

百度App iOS工程化实践: EasyBox破冰之旅

半腔热情 提交于 2020-04-13 17:32:36
【今日推荐】:为什么一到面试就懵逼!>>> 本文作者:yanxin1563 本文作者: Yunpeng-基础技术 前言 百度App从单一的搜索工具发展到今天以搜索和Feed流为双引擎的综合性内容消费服务平台,其复杂程度已然不可同日而语矣。 作为一个日活过亿的超级App,业务规模庞大,相关技术人员超过千人,客户端支持主流的移动技术,涉及近百业务方,技术形态复杂,各种组件近三百个,代码百万量级,由此带来的工程化问题是技术团队的一个极大挑战。 项目的膨胀导致了很多不起眼的小问题被无限放大,组件管理不规范、编译时间长、工程文件合并冲突、Xcode默认非彻底编译隔离等等问题,导致开发人员在开发环境上耗费了大量时间。目前业界较流行的工具对于大规模工程的支持力度相对较弱,实践起来总是有些掣肘,难以达到理想状态。 EasyBox的诞生,就是致力于为超级App量身打造一套现代、高效、优雅的研发工具链。 这篇文章的主要目的是 站在工具链的角度 上,分享一下我们在实践工程化过程中一些经验。 概述 EasyBox主体由工程组装器(Installer)、多仓库管理工具(MGit)、二进制管理工具(LFS)三部分构成,分别负责工作区的构建(组件依赖分析、工程的生成与组合)、源码仓库的管理以及二进制的管理。EasyBox架构图: 由多仓库管理工具克隆所需仓库源码,由二进制管理工具下载二进制包

Error installing cocoapods “sudo gem install cocoapods” MacOs Catalina

自闭症网瘾萝莉.ら 提交于 2020-04-13 06:27:49
问题 I am trying to install cocoapods in my mac system but Unfortunately not able to install due to below error. I have already used below commands. sudo gem install -n /usr/local/bin cocoapods --pre export GEM_HOME=~/.gems export PATH=$GEM_HOME/bin:$PATH gem install cocoapods 回答1: Seems like you don't have access to usr/bin directory. i have been there!! please try below command. sudo gem install -n /usr/local/bin cocoapods this should work. Thanks!! Please refer this post more information about

iOS Swift how to debug SIGABRT :“fatal error: call of deleted method” from a CocoaPod?

丶灬走出姿态 提交于 2020-04-12 08:24:19
问题 I have an app which uses SlideMenuControllerSwift. I've modified some code to see how to present different panels, then rolled back my changes. When running the project I get SIGABRT fatal error: call of deleted method in console when SlideMenuControllerSwift is initializing. No other error messages are given. The project's source control appears to be in exactly the same state as before changes. I did a "clean" Reinstalled pods. Deleted pods directory and made a clean install Deleted app