cocoapods

Attempt to read non existent folder `/private/tmp/CocoaPods/Lint/Pods/

老子叫甜甜 提交于 2019-12-10 01:39:59
问题 AM getting this while validating pod spec: Attempt to read non existent folder `/private/tmp/CocoaPods/Lint/Pods/Test Pls help. 回答1: You need to run git tag 'x.x.x' and git push --tags before pod spec lint . 回答2: Try running your command with --verbose to see more helpful error messages: pod spec lint --verbose ... fatal: Remote branch 0.4.8 not found in upstream origin fatal: The remote end hung up unexpectedly This error is caused by git checkout failed. In my case the tag was not pushed to

'GoogleUtilities/GULAppEnvironmentUtil.h' file not found

ε祈祈猫儿з 提交于 2019-12-10 01:23:37
问题 Trying to compile my project after adding some pods. While compiling it gives below error 'GoogleUtilities/GULAppEnvironmentUtil.h' file not found Podfile.lock snippet - FirebaseCore (5.1.1): - GoogleUtilities/Logger (~> 5.2) - FirebaseDynamicLinks (3.0.2): - FirebaseAnalytics (~> 5.1) - FirebaseInAppMessaging (0.11.0): - FirebaseAnalytics (~> 5.1) - FirebaseCore (~> 5.1) - FirebaseInstanceID (~> 3.2) - GoogleUtilities/Environment (~> 5.0) - FirebaseInstanceID (3.2.1): - FirebaseCore (~> 5.1)

Unable to find a pod with name, author, summary, or description matching `xxx`

前提是你 提交于 2019-12-09 23:43:10
问题 pod search xxx and then output Unable to find a pod with name, author, summary, or description matching xxx 回答1: Open terminal run pod setup then run rm -rf ~/Library/Caches/Cocoapods then pod search {anything} and it will work 来源: https://stackoverflow.com/questions/40581352/unable-to-find-a-pod-with-name-author-summary-or-description-matching-xxx

Modify existing pod in xcode

左心房为你撑大大i 提交于 2019-12-09 22:02:04
问题 Working on a project in Xcode, I need to import a project class header in a pod class. Obviously if I use: #import "MyProjectClass.h" fails. Where I have to specify path? 回答1: You should not do it this way, you should just extend the class from the pod you are using your project and add the necessary change in the derived class. 回答2: Pods should not be directly edited, as any subsequent 'pod install' will wipe out your changes. As stated by rckoenes the easiest approach is to subclass the

Manage Dependencies of Multiple Targets with Cocoapods

戏子无情 提交于 2019-12-09 17:31:53
问题 I just started tinkering with cocoapods to manage dependencies of my iOS Projects. Currently I am trying to integrate unit tests using GHIOSUnit. I followed all their instructions and tried their sample tests and it all worked like charm. However, problems start when I start using my actual project files for testing. I am using AFNetworking for client server comms and whenever I access my sharedClient called 'CRLClient', a wrapper for AFHTTPClient, it gives me undefined symbols errors.

Cocopods的升级错误解决

穿精又带淫゛_ 提交于 2019-12-09 13:09:53
写在前面: 这篇笔记的由来,是因为在这个周五下班后想起了之前 GitHub 上一个关于 iOS Charts 的 demo 仍处于未完待续的状态。便想着完成了它,遂打开了该工程,开始用 pod 更新第三方库。更新完 pod 管理的三方库,看到提示,让更新到更新版本的 pod 。 这篇笔记建立在已经安装过 Cocoapods 且有 科学上网工具 的基础上,如果尚未安装,则参考此篇笔记—— Cocoapods 安装 & 解决安装错误 & 使用 在 iTerm(一种终端) 中输入 sudo gem install cocoapods ,对 Cocoapods 进行升级 ; 出现如下错误: Could not find a valid gem 'cocoapods' (>= 0), here is why: Unable to download data from https://gems.ruby-china.org/ 「或:https://ruby.taobao.org/ 或:https://gems.ruby.taobao.org/」- bad response Not Found 404 (https://gems.ruby-china.org/specs.4.8.gz)「或:https://gems.ruby.taobao.org/specs.4.8.gz」 解决错误: 首先

How to add a private Spec Repo for using private pods?

情到浓时终转凉″ 提交于 2019-12-09 13:09:35
问题 I went through this tutorial http://guides.cocoapods.org/making/private-cocoapods.html but coun't get any hint like how to create it. Its just shows what would be the structure only. On the other side if i try to run pod install this came. Here i am trying to install sample-pod (Private pod) to one of my local project. siddarths-MacBook-P:PodInstallDemoApp siddarthchaturvedi$ pod install Analyzing dependencies Pre-downloading: `sample-pod` from `git@github.com:MY_COMAPNY_NAME/sample-pod.git`

Use AdobeMobileLibrary (for iOS) with cocoapods?

别来无恙 提交于 2019-12-09 12:54:59
问题 We are going to use Omniture-Tracking for iOS, which is part of AdobeMobileLibrary. AdobeAdobeMobileLibrary is not available via cocoapods-repo (only an older version of Omniture), but as a static-library, that you can download from the Adobe Website. I wonder if it is possible to maintain this static-library with cocoapods? I've created a podspec-file: Pod::Spec.new do |s| s.name = 'AdobeMobileLibrary' s.version = '4.0.2' s.license = 'Commercial' s.summary = 'Adobe Omniture SiteCatalyst

Can't archive on Xcode: CocoaPods linking error

岁酱吖の 提交于 2019-12-09 12:11:13
问题 On an iOS project, when I compile my project to run it, it works fine. But if I archive it, it fails with the following error: ld: file not found: /Users/xxxxx/Work/xxxxx/codes/xxxxx/DerivedData/xxxxx/Build/Intermediates/ArchiveIntermediates/xxxxx/InstallationBuildProductsLocation/Applications/libPods.a clang: error: linker command failed with exit code 1 (use -v to see invocation) I'm using Xcode 4.6 and iOS 5.0. 回答1: I searched for a long time and finally got something and solved the same

[CocoaPods]pod安装与pod更新

萝らか妹 提交于 2019-12-09 10:16:15
简介 许多以CocoaPods开头的人似乎认为 pod install 只在第一次使用CocoaPods设置项目时使用, pod update 之后才会使用。但事实并非如此。 本指南的目的是解释何时使用 pod install 以及何时使用 pod update 。 TL; DR: 使用 pod install 以安装新的吊舱在您的项目。即使你已经拥有 Podfile 并跑 pod install 过去 ; 所以,即使你只是在已经使用CocoaPods的项目中添加/删除pod。 使用 pod update [PODNAME] 只有当你想更新荚到新版本。 命令的详细介绍 注意: install vs 的词汇 update 实际上并不特定于CocoaPods。它的灵感来自许多其他依赖管理器,如bundler,RubyGems或composer,它们具有类似的命令,具有与本文档中描述的完全相同的行为和意图。 pod install 这是在您第一次要检索项目的pod时使用,也是每次编辑Podfile以添加,更新或删除Pod时使用。 每次 pod install 运行命令 - 并下载并安装新的pod时 - 它会为 Podfile.lock 文件中的每个pod写入已安装的版本。此文件跟踪每个pod的已安装版本并锁定这些版本。 当您运行 pod install