cocoapods

Cocoapods for development only

萝らか妹 提交于 2020-02-05 06:37:17
问题 Is there a way to use a dependency only in development? I don't want to ship the Reveal SDK :/ I'm searching for something similar to #ifdef DEBUG Can't find anything in the cocoapods docs. 回答1: Looks like it's scheduled for next release. See here: https://github.com/CocoaPods/CocoaPods/issues/731 回答2: There is an issue on the CocoaPods github that is discussing the ability to dynamically link a pod based on the selected build configuration, but there is currently no release that supports

Cocoapods for development only

蹲街弑〆低调 提交于 2020-02-05 06:36:46
问题 Is there a way to use a dependency only in development? I don't want to ship the Reveal SDK :/ I'm searching for something similar to #ifdef DEBUG Can't find anything in the cocoapods docs. 回答1: Looks like it's scheduled for next release. See here: https://github.com/CocoaPods/CocoaPods/issues/731 回答2: There is an issue on the CocoaPods github that is discussing the ability to dynamically link a pod based on the selected build configuration, but there is currently no release that supports

CocoaPods安装和使用教程

北慕城南 提交于 2020-02-04 12:03:42
CocoaPods是什么? 当你开发iOS应用时,会经常使用到很多第三方开源类库,比如JSONKit,AFNetWorking等等。可能某个类库又用到其他类库,所以要使用它,必须得另外下载其他类库,周而复始,可见手动一个个去下载所需类库十分麻烦。另外一种常见情况是,你项目中用到的类库有更新,你必须得重新下载新版本,重新加入到项目中,十分麻烦。然而CocoaPods能解决这些恼人的问题。 CocoaPods应该是iOS最常用最有名的类库管理工具了,上述两个烦人的问题,通过cocoaPods,只需要一行命令就可以完全解决,当然前提是你必须正确设置它。重要的是,绝大部分有名的开源类库,都支持CocoaPods。所以,作为iOS程序员的我们,掌握CocoaPods的使用是必不可少的基本技能了。 如何下载和安装CocoaPods? 在安装CocoaPods之前,首先要在本地安装好Ruby环境。至于如何在Mac中安装好Ruby环境,请google一下,本文不再涉及。 假如你在本地已经安装好Ruby环境,那么下载和安装CocoaPods将十分简单,只需要一行命令。在Terminator(也就是终端)中输入以下命令: sudo gem install cocoapods 但是,且慢。如果你在天朝,在终端中敲入这个命令之后,会发现半天没有任何反应。原因无他,因为那堵墙阻挡了cocoapods.org

how to fix pods license file error

时光总嘲笑我的痴心妄想 提交于 2020-02-03 04:24:11
问题 When I type pods install or pods update I get the following for one library: Unable to read the license file /Users/me/Documents/project/myproject/company/myproduct/Pods/OHAttributedLabel/OHAttributedLabel/LICENSE for the spec OHAttributedLabel (3.5.3) Does anyone know why? I have been suggested: pod repo remove master pod setup to no avail 回答1: TL;DR It's Ruby 2.2.+ in OS X. Go back to Ruby 2.1.6. This was my problem. [!] Unable to read the license file '.../LICENSE_.txt' for the spec 'pod

Xcode -FirebaseCore Lexical or preprocessor issue 'GoogleUtilities/GULAppEnvironmentUtil.h' file not found

半城伤御伤魂 提交于 2020-02-03 01:56:51
问题 I'm using cocoapod version /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.3/lib/cocoapods.rb , Swift 5 , and Xcode 10.2.1 . I cleaned the derived data. I just updated to Swift 5 (just got a cpu that could support MoJave) and when I try to build my project I keep getting the error FirebaseCore Lexical or preprocessor issue 'GoogleUtilities/GULAppEnvironmentUtil.h' file not found Before I updated this never happened before in my old project. It seems it's specifically coming from Firebase/Core I

Firebase crash report dump_syms is not permitted in iTunes connect upload

↘锁芯ラ 提交于 2020-02-02 06:30:10
问题 I am integrating the Firebase SDK into my app without using CocoaPods for Analytics and Crash Report. When I upload app to the app store, I get the following error. Any idea of what I'm doing wrong here? ERROR ITMS-90171: "Invalid Bundle Structure - The binary file 'xxxx.app/dump_syms' is not permitted. Your app can’t contain standalone executables or libraries, other than the CFBundleExecutable of supported bundles. Refer to the Bundle Programming Guide at https://developer.apple.com/go/?id

Google SignIn without CocoaPods

岁酱吖の 提交于 2020-01-30 06:20:44
问题 I am trying to integrate the GoogleSign-In for iOS with the documentation found here: https://developers.google.com/identity/sign-in/ios/start-integrating How can I do this without using Cocoapods? I've tried using the libraries and headers that Cocoapods download directly, but this led to many issues. Has anyone successfully converted a Cocoapod into a standalone library/framework? 回答1: The standalone SDK is available here now: https://developers.google.com/identity/sign-in/ios/sdk/ As

制作Cocoapods私有库

本小妞迷上赌 提交于 2020-01-29 01:30:32
为自己写好的代码添加pod管理是非常有必要的, 既方便自己的项目管理,也方便他人调用自己的代码模块,这里说一下Cocoapods私有库的制作。 一、远端创建存放项目工程文件仓库(github、gitlab、码云等) 这里使用github创建XPYTestLib项目,Private需要收费,暂时使用Public。.gitignore和license文件可以不选,因为后面创建本地库的时候会自动创建 二、创建本地项目 (1)这里在本地桌面创建项目。打开终端,使用pod lib create命令,之后会有一些问题,根据自己需求作答。 (2)至此就创建好了本地项目,可以在桌面看到XPYTestLib项目,进入项目的Example目录,打开XPYTestLib.xcworkspace,可以直接运行空白项目。可以看到Podspec Metadata目录下的XPYTestLib.podspec文件就是私有库管理文件,选中可以直接进行编辑。 (3)编辑完终端进入Example目录,使用pod install命令,更新项目pod。这里因为pod版本问题可能会遇到各种问题,最常见的解决方法就是使用pod update命令先检查更新,关于cocoapods 1.8.0版本以后使用CDN还是继续使用以前版本的问题可以自行上网解决,推荐使用CDN,毕竟与时俱进。 (4)验证该文件的有效性

使用cocoapods

旧街凉风 提交于 2020-01-28 06:17:00
使用 cocoapods 0. 如果发现装 cocoapods 时 出错就更新 gem 到最新版本,在终端中输入: $ sudo gem update --system , 注意不要把 “$” 复制上。等待一会儿会看到 我已经敲过 所以是 1. 移除原有的源 gem sources --remove https://rubygems.org/ 2. 添加淘宝的镜像 gem sources -a https://gems.ruby-china.org/ ( 原来的淘宝镜像 https://ruby.taobao.org/ 已经不能用了 ) 。 3. 检查源 可以用 gem sources -l 来检查使用替换镜像位置成功,结果应该只有 https://gems.ruby-china.org/ 才对 5. 安装 CocoaPods ,终端输入: sudo gem install cocoapods 等待一会儿会看到: 出现问题查阅解决方法 https 导致 stackflow 中也有案例链接 http://stackoverflow.com/questions/30812777/cannot-install-cocoa-pods-after-uninstalling-results-in-error/30851030#30851030 解决方法是 sudo gem install -n

cocoapods安装说明,最快安装,以及使用

一笑奈何 提交于 2020-01-27 14:43:42
安装卸载更新新推荐 文章最后 其他问题总结; 1 添加taobao提供的镜像地址:http://ruby.taobao.org/ 移除命令:gem sources --remove https://rubygems.org/ 添加命令:gem sources -a http://ruby.taobao.org/ 查看gem来源列表:$ gem sources -l 2 在命令终端输入: sudo gem install cocoapods 等待15分钟: $ sudo gem install cocoapods Password: Fetching: i18n-0.7.0.gem (100%) Successfully installed i18n-0.7.0 Fetching: thread_safe-0.3.4.gem (100%) Successfully installed thread_safe-0.3.4 Fetching: tzinfo-1.2.2.gem (100%) Successfully installed tzinfo-1.2.2 Fetching: minitest-5.5.1.gem (100%) Successfully installed minitest-5.5.1 Fetching: activesupport-4.2.0.gem (100%)