CocoaPods Error installing FLatUIKit - ios

So i installed cocoapods and also crated a Project into which i intended to install a framework to it using CocoaPods but i get this error
I specified in the pod Insert:
platform :ios, '7.0'
pod 'FlatUIKit 1.3'
and then went back to the Command line and used "pod install"
so as i thought it would install i got this seemingly error like text on screen as shown in the Picture.
How would i do this correctly?

Try this podfile:
platform :ios, '7.0'
pod 'FlatUIKit', '~> 1.3'
Also you may want to read this:
http://guides.cocoapods.org/using/the-podfile.html

Related

Install New Cocoapods without changing existing Dependencies?

Working from an app that's pushing 8 years old now. Was written in Objective C. The podfile looks like this.
platform :ios, '6.0'
pod 'AFNetworking', '~> 1.2.0'
pod 'MBProgressHUD', '~> 0.6'
platform :ios, '7.0'
pod 'MessageBanner', '~> 1.0'
I'd like to add new pods to the project. Namely, Stripe. Stripe runs successfully on my local machine from a different Xcode project that uses this podfile syntax.
platform :ios, '9.0'
target 'Superapps' do
use_frameworks!
pod 'Alamofire', '~> 4.5'
pod 'AlamofireImage', '~> 3.3'
pod 'Stripe'
pod 'Cards'
end
Is there a way to run a terminal command that can add the new pods to the project while leaving the existing dependencies intact? Whenever pod install or pod install --no-repo-update is used after adding the new pods to the project, an eventual compiler warning no such module stripe is displayed by Xcode. Is there a way to fix this?
For the life of me, every edit that has been tried, including changes to the podfile and a slew of different terminal commands either produce an App project that can run the dependencies before the update but always the no such module stripe warning error. I've contacted Stripe, and am now in communication with Apple for their Code Level Support for the Apple developer program.
Note: Apple has expressed that their code level support only pertains to Apple frameworks...

Dependency analysis error after installing a new pod

Currently I'm using Swift 3, and after I install a new Pod I received this error
Here's my Pod
I can't even clean the project, I tried Pod update but the error persists. What should I do to fix this problem?
Must Add line
platform :ios, '8.0'
use_frameworks!
target 'MyApp' do
pod 'Bolts', '~> 1.8'
pod 'Cosmos', '~> 12.0'
end
Now you can install the dependencies in your project:
$ pod install

Cocoa Pods with google calendar api

I am following the instructions on the google calendar api for iOS web page.
See link. https://developers.google.com/google-apps/calendar/quickstart/ios?ver=objc#step_2_prepare_the_workspace
When I follow these terminal commands
cat << EOF > Podfile &&
platform :ios, '7.0'
pod 'GoogleAPIClient/Calendar', '~> 1.0.2'
pod 'GTMOAuth2', '~> 1.1.0'
EOF
pod install &&
open QuickstartApp.xcworkspace
I get the following error
[!] The dependency `GoogleAPIClient/Calendar (~> 1.0.2)` is not used in any concrete target.
The dependency `GTMOAuth2 (~> 1.1.0)` is not used in any concrete target.
I am not sure why this is happening. My project has a different name then QuickstartApp but I don't think this is causing the errors.
You should probably create the Podfile the way Cocoapods recommends.
Yours should probably look like:
platform :ios, '8.0'
use_frameworks!
target 'MyApp' do
pod 'GoogleAPIClient/Calendar', '~> 1.0.2'
pod 'GTMOAuth2', '~> 1.1.0
end
Now run pod install then open you Xcode workspace.
One of the recent changes for Cocoapods was that targets need to be named.

Unable to find a specification for any Pods after running pod setup

For every pod I try to install, I'm getting the 'unable to find a spec'error.
Here is my podfile:
source 'https://github.com/yannickl/QRCodeReader.swift.git'
source 'https://github.com/aschuch/QRCode.git'
platform :ios, '8.0'
pod 'QRCode', '0.2'
pod 'QRCodeReader.swift', '~> 4.3.0'
After testing a few times with various changes to the Podfile, I have run:
sudo rm -fr ~/.cocoapods/repos/master
pod setup
However that didn't solve it. I'm running El Capitan / XCode 7. Anyone else running into a similar problem?
I would replace the source with CocoaPods specs since both the dependencies are added to the master spec repo.
source 'https://github.com/CocoaPods/Specs.git'
Also you need to add use_frameworks! since one of your pod is written in swift.
Refer this: https://github.com/yannickl/QRCodeReader.swift
So your podfile will look like this
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'QRCode', '0.2'
pod 'QRCodeReader.swift', '~> 4.3.0'

CorePlot 1.5.1 pod install failed

I can install AFNetworking with the Podfile below,
platform :ios, '7.0'
pod 'AFNetworking', '~> 2.0'
but failed to install CorePlot, here is my Podfile,
source 'https://github.com/CocoaPods/Specs.git'
platform : ios, "8.0"
target "CorePlotTest" do
pod 'CorePlot', '~> 1.5.1'
end
Here is my error codes,
What should I do?
There is a syntax error in your podfile. Remove the space between the colon (:) and "ios" on the platform line.
platform :ios, "8.0"
The contents in the file are no problems, just open the Podfile in vim or Xcode, not other things like TextEdit !
We can use
open -a Xcode Podfile
to open and edit the file in Xcode.

Resources