cocoapods

Can not update my pod library

白昼怎懂夜的黑 提交于 2019-12-10 10:02:03
问题 I have published my component HDTableDataSource on Cocoapods. I have now updated the version of the code by adding some code. While trying to compile it using command "pod spec lint", it gives me following error. [!] /usr/local/bin/git clone https://github.com/\<GITHUB_USERNAME\>/HDTableDataSource.git /private/var/folders/fm/vxq9zgy52zq28lvcq0qwzpj80000gn/T/CocoaPods/Lint/Pods/HDTableDataSource --single-branch --depth 1 --branch 0.1.0 Cloning into '/private/var/folders/fm

watchOS 2 working with CocoaPods

天大地大妈咪最大 提交于 2019-12-10 09:46:29
问题 Has anyone gotten CocoaPods working with watchOS 2? I tried using ‘use_framework!’ with ‘platform :watchos, ‘2.0’ but it says "[!] Invalid Podfile file: Unsupported platform watchos2 . Platform must be :ios or :osx .. Updating CocoaPods might fix the issue.” I am on the latest version of CocoaPods. 回答1: CocoaPods currently doesn't support watchos. There is a work in progress issue here for adding support for it. 回答2: CocoaPods released new version which is 0.38.0 and now supports watchOS 2.

iOS using pod install as Pre-action run script for building the project

点点圈 提交于 2019-12-10 09:35:55
问题 I added the Pods/* to the .gitignore, I have the Podfile.lock under the source control. While creating a new branch, I have to run the pod install . As I don't have the pods installed for the new branch. I tried adding the Pre-Action Run Script. The Pre-Action Run Script will do the following Move to the Project Directory Run the pod install . I am able to see all the pods installed. However if I try to build, XCode throws error saying that there is no such module in the source files . 来源:

How do I install a cocoapod in mavericks with ruby and Command Line Tools correctly?

本秂侑毒 提交于 2019-12-10 09:26:06
问题 This is my setup: Mavericks 10.9.1 Xcode 5.0.2 which ruby returns this: /Users/quique123/.rvm/rubies/ruby-1.9.3-p194/bin/ruby but dvm install ruby returns: Already installed ruby-2.1.0. To reinstall use: rvm reinstall ruby-2.1.0 So doesn't this mean I have ruby 2.1.0? gems list says I have installed cocoa pods & cocoapods-core 0.29.0 and some other gems. After sudo gem install cocoa pods I get the bunch of fetches and change log and Successfully Installed cocoa pods 0.29.0. It then parses and

GoogleMaps SDK classes undeclared type or unresolved identifier

萝らか妹 提交于 2019-12-10 08:06:04
问题 I am using cocoapods to import libraries. I just updated my pods and since then some of the GoogleMaps SDK classes are not available anymore. For example GMSAutocompletePrediction or GMSPlacesClient labeled as "use of undeclared type" and "use of unresolved identifier". I have tried to remove the GoogleMaps pods and then to reinstall it but it didnt work. Even though, some classes are still usable, like GMSAddress for example. I noticed that GoogleMaps was not one of the target in the Pods

iOS-cocoaPods安装,使用,卸载

对着背影说爱祢 提交于 2019-12-10 07:18:47
CocoaPods是什么? 当你开发iOS应用时,会经常使用到很多第三方开源类库,比如JSONKit,AFNetWorking等等。手动一个个去下载所需类库十分麻烦。另外一种常见情况是,你项目中用到的类库有更新,你必须得重新下载新版本,重新加入到项目中,十分麻烦。所以,你需要CocoaPods。CocoaPods应该是iOS最常用最有名的类库管理工具了,上述两个烦人的问题,通过cocoaPods,只需要一行命令就可以完全解决,当然前提是你必须正确设置它。重要的是,绝大部分有名的开源类库,都支持CocoaPods. 如何下载和安装CocoaPods? 在本地安装好Ruby环境 OS X系统默认可以运行Ruby,运行sudo gem update --system 升级Ruby, 移除现有Ruby默认源 $ gem sources --remove https://rubygems.org/ //等有反应之后再敲入以下命令 $ gem sources -a https://ruby.taobao.org/ 验证新源是否替换成功 $gem sources -l 如果显示如下就是成功的,上面的命令,有时试了会没有效,请参考淘宝网的 https://ruby.taobao.org cocoapods 这时候,你再次在终端中运行: $ sudo gem install cocoapods

cocopods升级到1.0,导入第三方库,出现问题及解决方式

笑着哭i 提交于 2019-12-10 07:15:07
cocopods升级到1.0,导入第三方库,出现问题及解决方式 一,CocoaPods版本升级(0.35.0升级至1.0) CocoaPods版本升级那些坑 二,CocoaPods升级成功,项目升级问题及解决 -问题一、 项目当你初次升级成功,不能一开始就pod install,pod 的里面的项目会全部没了 podfile的格式与原来的0.35.0版本不一样 platform :ios, '6.1' #use_frameworks! //这个问题在问题4中 target ‘fjtax’ do pod 'SVPullToRefresh', '~> 0.4.1' pod 'SVProgressHUD', '~> 1.1.2' pod 'SDWebImage' end 具体可查看cocopods 官方文档 初始化成功后,由于之前ASIHTTPRequest有经过封装,接着出现下面的问题。 问题二,Could not build mode “ASIHTTPRequest……” 文件目录不一致,改为引号“” 问题三,Include of non-modular header inside framework module ‘ASIHTTPRequest.ASIDataDecompressor’ 解决方法: 问题四. embedded dylibs/frameworks are only

CocoaPods generates invalid project file (header not found)

心不动则不痛 提交于 2019-12-10 03:19:19
问题 I have a project file with a Podfile that looks like this: platform :ios, '7.0' def import_pods pod 'Specta', '0.1.8' pod 'Expecta', '0.2.1' pod 'RestKit', '0.20.3' pod 'MagicalRecord', '2.1' pod 'RestKit/Testing', '0.20.3' end link_with 'LocalMedTests' import_pods When I run pod install, it generates the Podfile.lock, Pods directory, and workspace for my project. When I open the workspace to build it, I get errors like this: 'RestKit.h' file not found. It seems to only be an issue for

Xcode can't find Alamofire, error: No such module 'Alamofire'

老子叫甜甜 提交于 2019-12-10 03:01:03
问题 I'm trying to include Alamofire in my Swift project following the github(https://github.com/Alamofire/Alamofire#cocoapods) instruction. I've created a new project, navigated to the project directory and run this command sudo gem install cocoapods . Then I faced following error: ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/pod After searching I managed to install cocoapods by running this command sudo gem install -n /usr/local/bin cocoapods Now I generate a

Build error with Xcode 6 and (possibly) cocoapods

北城以北 提交于 2019-12-10 02:58:58
问题 I'm getting the following static analyzer error when building my iOS project that is using cocoapods with the latest Xcode 6 GM release. error: error reading 'pic' error: no analyzer checkers are associated with '-mrelocation-model' 2 errors generated. Command /Applications/Xcode6-Beta6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1 I can disable the static analyzer, but obviously I don't want to do that. Does anyone know how to fix this ( or