cocoapods

How to set the Legacy Swift Version for each Pod in Podfile Xcode 9.0 Swift 3.2 / Swift 4.0

旧城冷巷雨未停 提交于 2019-11-28 04:40:45
I am currently setting the legacy in the Podfile to SWIFT_VERSION = 2.3 , but some of the libraries I am using are Swift 3.0, which means that I need to manually set the legacy for all Swift 3.0 pods legacy to No on each pod install . How do I configure each pod version in the Podfile installer? This is what I am setting: post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['SWIFT_VERSION'] = '2.3' end end end If I set config.build_settings['SWIFT_VERSION'] = '3.0' , than we have issues with Swift 2.3

cocoapods not installing

為{幸葍}努か 提交于 2019-11-28 04:21:25
What does it mean and how can I fix it: pod install /Library/Ruby/Site/2.0.0/rubygems.rb:250:in `find_spec_for_exe': can't find gem cocoapods (>= 0.a) (Gem::GemNotFoundException) from /Library/Ruby/Site/2.0.0/rubygems.rb:278:in `activate_bin_path' from /usr/local/bin/pod:22:in `<main>' Aamir Use following commands, and It works for you. 1: sudo gem uninstall cocoapods 2: sudo gem install -n /usr/local/bin cocoapods 3: pod install If you install cocoapod using brew like me Reinstall cocoapods brew reinstall cocoapods If you see this error message after you reinstall cocoapods by brew reinstall

What is Cocoapods?

Deadly 提交于 2019-11-28 04:18:50
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? Shams Ahmed 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, then link it together in an Xcode workspace to build your project. Ultimately the goal is to

Upgrading Firebase broke my iOS project

可紊 提交于 2019-11-28 04:03:28
问题 I wish I had never updated my pod, the entire project was full of errors, one specific error is in the photo below, I can't fix it and I was ready to submit my app to the App Store now it seems like its all ruined. On top of this, it made me erase a bunch of optionals. func uploadData(user: User) { let changeRequest = user.createProfileChangeRequest() changeRequest.displayName = self.nameUser.text! changeRequest.commitChanges(completion: nil) let imageRef = self.userStorage.child("\(user.uid)

How to use cocoapods with playground?

邮差的信 提交于 2019-11-28 03:57:21
I am trying out some pods before I implement it with my main project I want to make sure it works properly for my requirement. Easiest way is to try it with playground. I tried pod init with playground which doesn't work [!] No xcode project found, please specify one Help is much appreciated. jkistler This is an old question but shows up at the top of Google. This Could Be Us But You Playing is a command line tool that creates a new Xcode playground with an integrated cocoapod. It also supports integrating multiple cocoapods at once. It's a single command. To Install: gem install cocoapods

Unable to find a specification in CocoaPods

杀马特。学长 韩版系。学妹 提交于 2019-11-28 03:44:48
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.new do |s| s.name = "ABC" s.version = "1.0.0" s.source = { :git => "git@github.com:myrepo/Podspecs.git",

Installing CocoaPods: no response

倖福魔咒の 提交于 2019-11-28 03:13:11
Trying to install CocoaPods from the terminal: $ sudo gem install cocoapods After entering my root password, nothing happens. How can I debug that? Alex For others wondering the same, installing the gem takes forever. If you run: export GEM_HOME=~/.gems export PATH=$GEM_HOME/bin:$PATH gem install cocoapods -V Installing with flag V enables verbose output which will let you see all the output as it is going through the download and install, it's quite a lot. update gem to the newest release using sudo gem update --system and it should work a bit faster I had to wait at least 5 minutes before:

Pod install displaying error in cocoapods version 1.0.0.beta.1

你说的曾经没有我的故事 提交于 2019-11-28 02:58:08
My podfile was working but after updating to cocoapods version 1.0.0.beta.1 pod install displays following error MacBook-Pro:iOS-TuneIn home$ pod install Fully deintegrating due to major version update Deleted 1 'Copy Pods Resources' build phases. Deleted 1 'Check Pods Manifest.lock' build phases. Deleted 1 'Embed Pods Frameworks' build phases. - libPods.a - Pods.debug.xcconfig - Pods.release.xcconfig Deleted 1 'Copy Pods Resources' build phases. Deleted 1 'Check Pods Manifest.lock' build phases. - libPods.a Deleted 1 'Copy Pods Resources' build phases. Deleted 1 'Check Pods Manifest.lock'

Why am I getting an undeclared type 'PubNub' compiler error with Swift Cocoa App and bridging header?

白昼怎懂夜的黑 提交于 2019-11-28 02:55:12
问题 I am starting a new Cocoa Swift Project that is incorporating the PubNub SDK via CocoaPods with the following Podfile: target 'myProject' do source 'https://github.com/CocoaPods/Specs.git' use_frameworks! pod 'PubNub', '~>4.0' pod 'Alamofire', '~> 1.3' end target 'myProjectTests' do end In my auto-generated bridging header I have the import for PubNub as: #import <PubNub/PubNub.h> And my AppDelegate.swift file: import Cocoa @NSApplicationMain class AppDelegate: NSObject, NSApplicationDelegate

gem install fails with openssl failure

妖精的绣舞 提交于 2019-11-28 02:46:22
I tried to install cocoapods ( http://cocoapods.org/ ) on my OSX Mountain Lion. moshe-mbp:~ moshem$ gem install cocoapods ERROR: Could not find a valid gem 'cocoapods' (>= 0), here is why: Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server key exchange B: bad ecpoint (https://rubygems.org/latest_specs.4.8.gz) first I tried rvm reinstall all --force then I tried brew upgrade openssl ==> Upgrading openssl ==> Downloading http://openssl.org/source/openssl-1.0.1e.tar.gz Already downloaded: /Library/Caches/Homebrew/openssl-1.0.1e.tar.gz ==>