cocoapods

Error on “sudo pod install”

百般思念 提交于 2019-11-30 14:07:59
问题 I already have one project working with a podfile. I wanted to add a Podfile on an old project but I got this error on sudo pod install Error: Resolving dependencies of `./Podfile' Updating spec repositories [!] git pull Updating 35bbbaf..8b42708 error: The following untracked working tree files would be overwritten by merge: AFXAuthClient/1.0.4/AFXAuthClient.podspec Please move or remove them before you can merge. Aborting It's weird because I don't use AFXAuthClient on my project, and I

How to add cocoapods to existing workspace not project

北城余情 提交于 2019-11-30 13:13:18
问题 I am working on a project which is composed of three other projects in a workspace. I want to use CocoaPods to manage my dependecies in the workspace, but CocoaPods always creates its own workspace with only one addtional project. What I want to do is to add CocoaPods project to the workspace that already exists. Is there any simple way to achive that? 回答1: You can specify a workspace in your podfile. workspace 'MyWorkspace' Please consult this link for more info: http://guides.cocoapods.org

unable to load gem cocoa pods while creating repo

岁酱吖の 提交于 2019-11-30 12:50:43
问题 rubygems/dependency.rb:296:in `to_specs': Could not find 'cocoapods' (>= 0) among 35 total gem(s) (Gem::LoadError) from /Users/divyam.shukla/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/rubygems/dependency.rb:307:in `to_spec' from /Users/user/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:in `gem' from /Users/user/.rvm/gems/ruby-2.0.0-p247/bin/pod:22:in `<main>' I am getting this error. 回答1: Hey I had the same problem that you have, I solve it following the next

Pod file not being initialized?

谁都会走 提交于 2019-11-30 12:39:50
问题 When i try to initialize pod file to use cocoapods via terminal, it gives me this error. How to fix it. /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0/lib/cocoapods/command.rb:128:in `verify_minimum_git_version!': [!] You need at least git version 1.8.5 to use CocoaPods (Pod::Informative) 回答1: I encounter the same problem and solve it by using the following command: sudo xcode-select --switch /Applications/Xcode.app As the error message in terminal shows, something with my git goes wrong. And,

个推数据统计产品(个数)iOS集成实践

流过昼夜 提交于 2019-11-30 12:36:08
最近业务方给我们部门提了新的需求,希望能一站式统计APP的几项重要数据。这次我们尝试使用的是个推(之前专门做消息推送的)旗下新推出的产品“个数·应用统计”,根据官方的说法,个推的数据统计产品通过专业的移动应用数据分析,可以为用户的应用提供实时数据统计分析服务,包括了解版本质量、渠道状况、用户画像等。数据最后以可视化形式展现,很直观。我们尝试了一段时间,发现效果还是很不错的,这篇文章将为大家介绍如何从零开始快速高效地集成个数iOS SDK。 一、登录账号并创建应用获取 APP ID 1.访问 [个推开发者中心] (https://dev.getui.com/dev/#/login),点击立即注册: (也可以从个推官网进入www.getui.com,点击右上角“开发者中心”。)当然, 如果你已经注册过个推推送的账号,直接登录使用即可。 2、根据个人情况填写并注册账号: 3、返回 [个推开发者中心] (https://dev.getui.com/dev/#/login)使用上个步骤注册好的账号登录,进入开发者平台面板后,选择左边菜单栏的个数·应用统计: 4、进入个数·应用统计面板后,选择右上角的新增应用添加新的应用: 5、填写应用相关信息,勾选iOS,点击提交新增应用: 6、新增应用成功会自动返回应用列表,找到新增的应用,点击应用配置: 7、在配置信息下可以看到APP ID,将其复制保存

Cocoapods 1.8.0它来了,带着CDN来了,墙裂建议升级

随声附和 提交于 2019-11-30 12:29:00
Cocoapods 1.8.0来了,大幅提升pod update速度,墙裂建议升级 废话不多,上干货。下面是一段官方视频,使用1.8.0版本搭建一个全新的工程,并且执行了pod setup,init,update一系列操作,整个不到一分钟。 视频 pod update速度得到大幅度提升,真的良心。要知道以前,光是个pod setup,基本一下午就没有。每次执行pod update repo,动不动就半小时。归根还是,咱们国内的开发者因为种种原因访问外网就是慢。 好的,就是这样。赶紧升级 sudo gem install cocoapods 好奇宝宝继续看下去。提升这么多,怎么做到的? CDN CocoaPods 1.8 switches the CDN as the default spec repo source! CDN被作为spec的默认仓库来源。 什么是CDN? 百度百科 一句话:CDN是为加快网络访问速度而被优化的网络覆盖层,形象地称为“网络加速x器” 使用了CDN有什么变化 1.8以前 "pod setup"会把 https://github.com/CocoaPods/Specs.git 的master分支,全量下载到~/.cocoapods/repos/master;每次只需pod update,都会更新这个分支。 网络本来就慢,这个库却大的吓人。 1.8以后

Cocoapods: Unable to find a specification for `Firebase/Core`

こ雲淡風輕ζ 提交于 2019-11-30 11:49:39
问题 I have this in podfile: pod 'Firebase/Core' pod 'Firebase/Messaging' but getting this error: [!] Unable to find a specification for Firebase/Core i tried with pod 'Firebase' still can't find it. Podfile: # Uncomment this line to define a global platform for your project # platform :ios, '8.0' # Uncomment this line if you're using Swift use_frameworks! target 'caffetouch manager' do pod 'Firebase/Core' pod 'Firebase/Messaging' pod 'Alamofire', '~> 4.0.0' pod 'AlamofireNetworkActivityIndicator'

Pod install, The dependency `*****` is not used in any concrete target

无人久伴 提交于 2019-11-30 11:08:56
i have a project from another, when i pod install, the console tell me: Analyzing dependencies [!] The dependency `MMDrawerController (~> 0.5.7)` is not used in any concrete target. The dependency `ViewUtils` is not used in any concrete target. The dependency `CPAnimationSequence` is not used in any concrete target. The dependency `iCarousel` is not used in any concrete target. The dependency `BlocksKit (~> 2.2.5)` is not used in any concrete target. The dependency `AFNetworking` is not used in any concrete target. The dependency `MBProgressHUD (~> 0.8)` is not used in any concrete target. The

Making a CocoaPod from an existing Xcode project

我是研究僧i 提交于 2019-11-30 11:07:53
I've been trying to crack this with no avail so far. I have my Xcode Swift project with its github repository for source control. I would like to create a new CocoaPod with this project. Ive gone through the CocoaPods documentation but nothing has worked as of yet and Im really confused by now, could someone please write the steps in order I need to do for making that new pod from my existing Xcode Project which already has a Github repository linked to it. Thanks in advance! mipmip Taken from the Cocoapods documentation : $ pod spec create YourProject $ edit YourProject.podspec Then in editor

Creating a custom cocoa pod with a storyboard in it

杀马特。学长 韩版系。学妹 提交于 2019-11-30 11:07:49
I am creating a pod, and in the resource bundle I have a storyboard (localised). When I try to instantiate a storyboard, an error occurred: Could not find a storyboard named 'MyStoryboard' in bundle NSBundle . The code look like this: NSURL *bundleURL = [[NSBundle mainBundle] URLForResource:@"MyBundle" withExtension:@"bundle"]; NSBundle *bundle = [NSBundle bundleWithURL:bundleURL]; UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MyStoryboard" bundle:bundle]; MyBundle structure looks like this: - MyBundle.bundle - Base.lproj - MyStoryboard.storyboard - es.lproj - MyStoryboard