Reputation: 33
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 findSwiftSocket iOS
,SwiftSocket macOS
,SwiftSocket tvOS
, andiOS Example
.
Edit____________
Picture of my folder.
Upvotes: 0
Views: 797
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