cocoapods

How to clear or clean specific pod from the local cocoapods cache

有些话、适合烂在心里 提交于 2019-11-28 14:39:34
问题 How to delete or clear a specific pod from cocoapods cache? Tried deleting the entire cache directly, it takes lot of time to get back all pods. How to view and remove specific pod from cache? Following works (longer time commit): # delete all cached pods `rm -rf "${HOME}/Library/Caches/CocoaPods"` # delete local Pods/* rm -rf "`pwd`/Pods/" # pod update to fetch latest. After entire cache deletion, it takes lot longer to fetch and rebuild pod cache from scratch. `pod update` Just commenting

cocoapods 终极方案

筅森魡賤 提交于 2019-11-28 14:06:06
最近各种错误, 全部刷新 再说 sudo gem install -n /usr/local/bin cocoapods $ sudo gem update --system // 先更新gem $ gem sources --remove https://rubygems.org/ $ gem sources -a https://gems.ruby-china.org/ $ gem sources -l //查看ruby地址 $ sudo gem install cocoapods // 安装cocoapods $ pod setup 如果 sudo gem install cocoapods 提示这个 ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/pod sudo gem install -n /usr/local/bin cocoapods // 还出错的话, 就安装Homebrew 来安装ruby, 中间也是坑, 查. brew install ruby http://stackoverflow.com/questions/33015875/operation-not-permitted-usr-bin-update-rubygems 来源: http:/

#if canImport() does not find frameworks with CocoaPods

本小妞迷上赌 提交于 2019-11-28 13:41:35
Hello here is our Podspec which has a default_subspec and an optional subspec (which won't be taken since the default is already set). That subspec has more features, but takes an additional 8MB of size... `s.default_subspec = 'mainSDK' s.subspec 'mainSDK' do |mainSDK| mainSDK.vendored_frameworks = 'mainSDK.framework' mainSDK.source_files = "mainSDK.framework/Headers/*.h" end s.subspec 'additionalSDK' do |additionalSDK| additionalSDK.source_files = "additionalSDK.framework/Headers/*.h" additionalSDK.vendored_frameworks =['additionalSDK.framework', 'mainSDK.framework'] end Now, in our mainSDK

Cocoapods staying on “analyzing dependencies”

℡╲_俬逩灬. 提交于 2019-11-28 13:16:55
问题 I'm using cocoapods to manage my dependencies. All have been working fine. Now, When I'm creating a new project, added the following to my podfile, platform :ios, '6.1' pod 'RestKit', '~> 0.20.0' when i'm doing pod install, it is continually staying on analyzing dependencies . Any idea why this problem? 回答1: I had the same problem, and since my output with --verbose was different than the linked SO answer, I'm including that response along with a verification that it worked for me: $ pod repo

How to fix error for installing GoogleMaps 2.1.1 Unrecognized archive format iOS Objective C?

心不动则不痛 提交于 2019-11-28 11:44:37
问题 I am rookie in iOS and i am trying to install GoolgeMaps by pod. But show me error like this: pod install Analyzing dependencies Installing GoogleMaps (2.1.1) [!] Error installing GoogleMaps [!] /usr/bin/tar xfz /var/folders/mf/60_klly5641fb71xqlp7xjc40000gn/T/d20170121-42827-ord5gk/file.tgz -C /var/folders/mf/60_klly5641fb71xqlp7xjc40000gn/T/d20170121-42827-ord5gk tar: Unrecognized archive format tar: Error exit delayed from previous errors. and this is my podfile: target "ProjectName" do

How to add Firebase to Today Extension iOS

雨燕双飞 提交于 2019-11-28 11:15:50
I need to be able to use Firebase in my Today View Extension, however I cannot seem to import the Firebase module. I think it's because I need a new target in my cocoa pods file, but I'm not sure on how to do this. Thanks. You have to treat the today extension as its own separate app(somewhat) in your firebase project dashboard, you need to hit the "Add another app" button. select iOS and then enter the BUNDLE ID of your TODAY EXTENSION Complete the wizard and download the generated GoogleService-Info.plist file Add the plist file to your Today Extension's root folder go to your xcode project,

Undefined symbols for architecture armv7 for Cocoapods libraries

a 夏天 提交于 2019-11-28 09:38:17
I stumbled upon a problem on a project that I need to work on. The project use Cocoapods for managing its libraries. I run pod install as usual to get started but xcode give me errors. I got Undefined symbols for architecture armv7 as you can see in the image below: All this symbols are the libraries that I use with my project. Eg. AFNetworking, RNBlurModalView. I tried to remove all the Cocoapods related file from the project and running pod install again, but it still doesn't solved the problem. What I have done so far: Clean the project and build again. Removing Cocoapods related files and

Using Cocoapods in an app extension using a framework

百般思念 提交于 2019-11-28 09:10:19
I have an app (let's call it MyApp) written in Swift with the following targets : MyApp : the main target MyAppKit : a target building a framework for code that is shared between the app and its extension(s), mainly the API backend and database handling MyAppWidget : a Today View Widget (or whatever it's called now) which uses the MyAppKit framework. The MyAppKit framework is linked into each target that uses it, namely MyApp and MyAppWidget . Enter Cocoapods : I used to have the following Podfile structure : platform :ios, '8.0' use_frameworks! target 'MyApp' do # Mostly UI or convenience

Can't run sudo pod install after updating to cocoapods 0.32.1 with error “You cannot run CocoaPods as root. (CLAide::Help)”

可紊 提交于 2019-11-28 08:39:05
I found an issue when running sudo pod install command after updating it to latest version 0.32.1. Earlier it was working very fine. When I tried to do pod install with older cocoapods, it asked me to update to latest cocoapods version i.e. 0.32.1. After I updated by cocoapods gem, I can't do sudo pod install in my Xcode project. It gives me following error. ± sudo pod install ruby-1.9.3-p0 Password: /Users/username/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/gems/1.9.1/gems/claide-0.5.0/lib/claide/command.rb:328:in `help!': [!] You cannot run CocoaPods as root. (CLAide::Help) CocoaPods, the Objective

Error using Pod Install command on Podfile in Terminal

柔情痞子 提交于 2019-11-28 07:15:17
I have installed Cocoapods, and created a Podfile using Atom containing the following lines: pod ‘Parse’, ‘~> 1.7.1′ pod ‘ParseUI’, ‘~> 1.1.3′ Upon placing this file into my Xcode Project Root Directory, and running 'pod install' in Terminal. The following is shown: [!] Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice. /Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.38.2/lib/cocoapods-core/standard_error.rb:87:in `message': incompatible