0

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

Josef
  • 33
  • 9

1 Answers1

2

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.

PPL
  • 6,357
  • 1
  • 11
  • 30
  • it is working, there is some issue from your end, please double check or create new project and try and what is SwiftSocket.podspec? – PPL May 09 '18 at 09:05
  • Stupid mistake, I have written wrong project name, thanks for help – Josef May 09 '18 at 09:18
  • @Josef let me know if I can help you in other queries – PPL May 09 '18 at 09:20