cocoapods

Preserve folder structure Cocoa Pods

僤鯓⒐⒋嵵緔 提交于 2019-12-03 10:38:17
I have create a simple and private pod with this tutorial: http://pablin.org/2013/05/18/cocoapods-for-internal-libraries/ In fact my repo has just a group of classes All is ok and I can install my pod perfectly. The only problem is all files are installed inside of the main folder so it doesn't preserve the folder structure. I have this folder structure, repository named: myRepository Classes | ------ foo.h and foo.m ------ Controller Layer | ----------- foo2.h and foo2.m ------ ViewLayer | ----------- foo3.h and foo3.m All files are copied inside of a folder called myRepository. This is my

include files recursively in Cocoapods podspec

纵然是瞬间 提交于 2019-12-03 10:34:25
I want to create a local podspec that is based on some private code. I can't seem to use the 'source' attribute, as that is not working. I can use the 'source_files' attribute, but it does not include files recursively. So with a directory that looks like this Library /src /Core /Audio /Graphics And my podspec looks like this: Pod::Spec.new do |s| ... s.source = 'src' # this does not work. s.source_files = 'src' # this only includes the files in src, and not in any of the Core, Audio or Graphics folders. I kind of want to specify a '-r' flag. I have tried using wildcards but no luck. The

The file “Pods.xcconfig” couldn’t be opened because there is no such file

血红的双手。 提交于 2019-12-03 10:34:25
问题 How to solve this issue. I have downloaded the iOS project from the Git repo and when I try to build, it gives an error: Check dependencies The file “Pods.xcconfig” couldn’t be opened because there is no such file. (/Users/YoGesh/Desktop/Xy-3/Pods/Pods.xcconfig) PhaseScriptExecution Check\ Pods\ Manifest.lock /Users/YoGesh/Library/Developer/Xcode/DerivedData/Xy-bmwkojrwthnvzdfxthnxeqgesekm/Build/Intermediates/Xy.build/Debug-iphonesimulator/Xy.build/Script-C0451AB63D7F4B73830000BA.sh cd /Users

What is the advantage of using CocoaPods?

戏子无情 提交于 2019-12-03 10:33:01
A lot of the pods can be installed "manually" by simply dragging some files to the project. To me, this seems like a more convenient way to install a pod. If I used CocoaPods, I would have to create a PodFile and execute a bunch of commands, add the framework to the "Linked Frameworks and Libraries" section, and rebuild. That seems like a lot of work. Yet CocoaPods is the "recommended" way to install pods. I know that CocoaPods can detect updates for you. But it's not like you open Xcode and a message pops up that says one of your pods is outdated. You have manually use a command to check for

This terminal won't let me run or install cocoa pods because I am on MacOS Catalina Beta?

六眼飞鱼酱① 提交于 2019-12-03 10:32:25
问题 I am very interest to install one of the GitHub programs that request install cocoa pods. There is no problem with my terminal seem fine on the macOS normal version. I have one problem terminal is not install cocoa pods because I was on macOS Catalina beta? I did install pod 'Card' from Podfile is finished but after that Podfile is close. I am going text "pod install" on the terminal, then the only error that I get. The error said -bash: /usr/local/bin/pod: / System/Library/Frameworks/Ruby

“ERROR: Unexpected action: build” when building a project with Swift 3 and Cocoapods on Travis-CI

自古美人都是妖i 提交于 2019-12-03 10:20:59
Evening/morning/afternoon all, Been hitting my head over this for a bit now and couldn't find anything online about this so my best bet is here. When Travis-CI builds my project I get the following error: xctool -workspace Project.xcworkspace -scheme ProjectTests build test ERROR: Unexpected action: build and here is my config: language: objective-c xcode_workspace: Project.xcworkspace xcode_scheme: ProjectTests osx_image: xcode8.2 Perhaps I missed something in the tutorial? I got a little lost on the pods dependency section but I believe I did it right. This happens with a new scheme

Create Xcode Project with Ruby XcodeProj

夙愿已清 提交于 2019-12-03 10:17:57
问题 I had this idea of making a command line utility similar to the rails setup application. It should automatically create a Xcode project, setup unit test, setup Frank, install most used Cocoapods and setup a project structure. There is no such thing at the moment and I would really like to have it and open source it. I struggled around the other questions here yesterday but found nothing up to date. I came up with the idea using XcodeProj which is used by CocoaPods to generate a project

Cocoapods `Embed pod frameworks` took long time to execute

匆匆过客 提交于 2019-12-03 10:10:46
问题 Environment: Macbook Pro With Retina Display 2013 late with 8G Ram, 256GB ssd. Cocoapods 1.1.1 macOS Sierra 10.12.1 Xcode 8.0 iPhone 6s Installed Pods inhibit_all_warnings! use_frameworks! def import_common_pods pod 'AFNetworking', '~> 2.6.3' pod 'GoogleAnalytics', '~> 3' pod 'SVProgressHUD', '~> 1.1.3' pod 'CocoaLumberjack', '~> 2.3.0' pod 'SVWebViewController', '~> 1.0' pod 'Crashlytics', '~> 3' end def import_project_common_pods pod 'FDFullscreenPopGesture', '1.1' pod 'ImagePicker', :git =

CocoaPods的安装及使用详解

六眼飞鱼酱① 提交于 2019-12-03 10:07:20
iOS开发~CocoaPods使用详细说明 转自:http://blog.csdn.net/showhilllee/article/details/38398119 一、概要 iOS开发时,项目中会引用许多第三方库,CocoaPods( https://github.com/CocoaPods/CocoaPods )可以用来方便的统一管理这些第三方库。 当你开发iOS应用时,会经常使用到很多第三方开源类库,比如JSONKit,AFNetWorking等等。可能某个类库又用到其他类库,所以要使用它,必须得另外下载其他类库,而其他类库又用到其他类库,“子子孙孙无穷尽也”,这也许是比较特殊的情况。总之小编的意思就是,手动一个个去下载所需类库十分麻烦;另外一种常见情况是,你项目中用到的类库有更新,你必须得重新下载新版本,重新加入到项目中,十分麻烦。如果能有什么工具能解决这些恼人的问题,那将“善莫大焉”。所以,你需要 CocoaPods。 CocoaPods应该是iOS最常用最有名的类库管理工具了,上述两个烦人的问题,通过cocoaPods,只需要一行命令就可以完全解决,当然前提是你必须正确设置它。重要的是,绝大部分有名的开源类库,都支持CocoaPods。所以,作为iOS程序员的我们,掌握CocoaPods的使用是必不可少的基本技能了。 二、安装 由于网上的教程基本都大同小异

给CocoaPods库增加Bundle资源

依然范特西╮ 提交于 2019-12-03 09:56:13
最近用了一个一个开源库 320Categories , 看到其中的.podspec文件知道可以用pod install安装,但是今天用的时候发现一个bug,就是在打开的.xcworkspace文件中找不到其中的bundle文件,这不是很坑吗? 再看原文档的介绍,只写了git submodule的使用方法,说明作者都不推荐用pod install更新,是因为pod不支持加资源文件比如bundle? 原来我也是这样想的,不过小小研究了一下发现也是可以的,主要就是针对.podspec文件进行修改一下,增加s.resource选项。 因为急着用,自己就做了一个本地的CocoaPods库,先fork原来到代码到自己的账号下,再clone下来,打开.podspec文件,增加s.resource = "320Categories/Three20.bundle"。 另外要注意的地方是因为是本地库,所以s.source也要修改,修改成clone后的文件夹路径,比如修改成: s.source = { :git => '~/code/320Categories' }. 这样一个本地的CocoaPods库就做好了。 本文链接:http://my.oschina.net/ioslighter/blog/394192 然后,修改自己项目的Podfile,先移除掉原先的pod '320Categories',