cocoapods

Xcode 7.3 cannot create __weak reference in file using manual reference counting

孤者浪人 提交于 2019-11-27 09:15:07
问题 After updating to Xcode 7.3, it throws the error Cannot create __weak reference in file using manual reference counting in pod files. Has anyone solved this issue? 回答1: Set Build Settings -> Apple LLVM 7.1 - Language - Objective C -> Weak References in Manual Retain Release to YES . Taken from Apple Developers Forums - Xcode 7.3b4, non-arc, cannot create __weak reference. 回答2: This is official answer from Apple from the link: This issue behaves as intended based on the following: We are in

Can not perform `pod install` under el capitan (15A279b)

坚强是说给别人听的谎言 提交于 2019-11-27 09:09:36
问题 I ran pod install with El Capitan and got this error: Errno::EPERM - Operation not permitted - /Users/../Pods/Pods.xcodeproj/xcuserdata/root.xcuserdatad Here's my environment: El Capitan (15A279b), Xcode Version 7.0 (7A220), cocoapod 0.38.2. Any ideas? Thanks!!! The reason I use xcode7 (and not 6.4) is that I need to target an existing project to iOS9 for testing. And the reason I am using El Capitan is that xcode7 doesn't run under Yosemite. And I need to replace a library (managed by

#if canImport() does not find frameworks with CocoaPods

◇◆丶佛笑我妖孽 提交于 2019-11-27 07:56:31
问题 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"

What is the reason behind not importing Alamofire in my project?

孤街醉人 提交于 2019-11-27 07:33:22
问题 I am making a demo of Alamofire using cocoa-pods.I am referring the tutorial "https://github.com/Alamofire/Alamofire". I tried both manual and by sample procedure .But, when i am importing Alamofire,an error shows like "No such module 'Alamofire' ". So please help me to short out this issue. Thanks in advance. 回答1: Follow these steps for installation > 1- open terminal and cd to your project folder 2- Create Podfile and add the code from https://github.com/Alamofire/Alamofire 3- In terminal ,

when running pod install I get The `master` repo requires CocoaPods 0.32.1, try updating but still in 0.31

只愿长相守 提交于 2019-11-27 07:04:48
Iam trying to install cocoa pods in a xcode project, but when doing: $ pod install I get the following error: Setting up CocoaPods master repo [!] The `master` repo requires CocoaPods 0.32.1 - Update CocoaPods, or checkout the appropriate tag in the repo. /Library/Ruby/Gems/2.0.0/gems/claide-0.5.0/lib/claide/command.rb:281:in `rescue in run': undefined method `verbose?' for nil:NilClass (NoMethodError) So I updated cocoapods $ sudo gem update cocoapods But it tells me there is nothing to update: Password: Updating installed gems Nothing to update run pod --version but I get: 0.31.0 What could

pod install -bash: pod: command not found

我怕爱的太早我们不能终老 提交于 2019-11-27 06:07:02
I installed pod some time ago. However, it's stopped working so I'm working through this again. However, I almost immediately run into a problem here: pod install -bash: pod: command not found Any suggestions why this happened? Snowcrash OK, found the problem. I upgraded Ruby some time ago and blasted away a whole load of gems. Solution: sudo gem install cocoapods Installing CocoaPods on OS X 10.11 These instructions were tested on all betas and the final release of El Capitan. Custom GEM_HOME This is the solution when you are receiving above error $ mkdir -p $HOME/Software/ruby $ export GEM

How to add Firebase to Today Extension iOS

放肆的年华 提交于 2019-11-27 06:01:09
问题 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. 回答1: 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

Cocoapods: Failed to connect to GitHub to update the CocoaPods/Specs specs repo

风流意气都作罢 提交于 2019-11-27 05:50:38
When running pod repo update the following error is generated: Updating spec repo `master` [!] Failed to connect to GitHub to update the CocoaPods/Specs specs repo - Please check if you are offline, or that GitHub is down Using cocoapods 1.0.1 I'm also aware of this: Master spec-repo rate limiting post‑mortem . Adding --verbose flag to the call shows the ruby call stack: .rvm/gems/ruby-2.3.0/gems/cocoapods-core-1.0.1/lib/cocoapods-core/github.rb:100:in `modified_since_commit' .rvm/gems/ruby-2.3.0/gems/cocoapods-core-1.0.1/lib/cocoapods-core/master_source.rb:32:in `requires_update?' .rvm/gems

What is Cocoapods?

跟風遠走 提交于 2019-11-27 05:16:23
问题 What is Cocoapods? I've seen that a lot of developers have been using Pods when developing apps to install APIs, but I'm not grasping why you couldn't just import the files manually. What is their purpose, and how are they helpful? 回答1: From cocoapods.org: CocoaPods manages library dependencies for your Xcode projects. The dependencies for your projects are specified in a single text file called a Podfile. CocoaPods will resolve dependencies between libraries, fetch the resulting source code,

Unable to find a specification in CocoaPods

跟風遠走 提交于 2019-11-27 05:12:17
问题 I cannot understand why the Cocoapod is unable to find the pod specification I created when I run pod install . Could someone help me solve this trouble? I'm defining a subspec in my library podspec file like this: s.subspec 'mysubspec' do |c| c.dependency 'ABC','1.0.0' end This dependency ABC is listed in the library Podfile: pod 'ABC', :git => 'git@github.com:myrepo/Podspecs.git', :branch => 'xyz' The Podspec file ABC.podspec in the branch xyz of myrepo/Podspecs seems like this: Pod::Spec