Josef
Josef

Reputation: 33

Adding cocoapods into my PodFile

I am working on an app, which requires cocoapods. In the manual of this app is written

Add this to your Podfile:

pod 'SwiftSocket'

And run then pod install

But when I make a pod file using pod init into my folder and then open -a Xcode Podfile and there I add lines

target 'SwiftSocket' do
pod 'SwiftSocket'
end

and the last pod install it says me an error

Unable to find a target named SwiftSocket, did find SwiftSocket iOS, SwiftSocket macOS, SwiftSocket tvOS, and iOS Example.

Edit____________

Picture of my folder.

Picture of my folder

and how looks my Podfile now enter image description here

Upvotes: 0

Views: 797

Answers (1)

PPL
PPL

Reputation: 6565

It is working perfectly, check out my podfile

# Uncomment the next line to define a global platform for your project
platform :ios, '10.0'

target 'Demo' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

pod 'SwiftSocket'

  # Pods for Demo

end

Demo is the project name. Target name will be your project name.

Upvotes: 2

Related Questions