Skip to content

Instantly share code, notes, and snippets.

@HBehrens
Last active October 10, 2023 06:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HBehrens/5902937 to your computer and use it in GitHub Desktop.
Save HBehrens/5902937 to your computer and use it in GitHub Desktop.
CocoaHTTPServer.podspec
Pod::Spec.new do |s|
s.name = 'CocoaAsyncSocket'
s.version = '7.3.1'
s.license = 'public domain'
s.summary = 'Asynchronous socket networking library for Mac and iOS'
s.homepage = 'https://github.com/robbiehanson/CocoaAsyncSocket'
s.authors = 'Dustin Voss', { 'Robbie Hanson' => 'robbiehanson@deusty.com' }
s.source = { :git => 'https://github.com/robbiehanson/CocoaAsyncSocket.git', :commit => '5cf7bac4d0bc18d257e989ea922fd2c4ca9255c4' }
s.description = 'CocoaAsyncSocket supports TCP and UDP. The AsyncSocket class is for TCP, and the AsyncUdpSocket class is for UDP. ' \
'AsyncSocket is a TCP/IP socket networking library that wraps CFSocket and CFStream. It offers asynchronous ' \
'operation, and a native Cocoa class complete with delegate support or use the GCD variant GCDAsyncSocket. ' \
'AsyncUdpSocket is a UDP/IP socket networking library that wraps CFSocket. It works almost exactly like the TCP ' \
'version, but is designed specifically for UDP. This includes queued non-blocking send/receive operations, full ' \
'delegate support, run-loop based, self-contained class, and support for IPv4 and IPv6.'
s.source_files = '{GCD,RunLoop}/*.{h,m}'
s.requires_arc = true
if config.ios?
s.frameworks = ['CFNetwork', 'Security']
else
s.frameworks = ['CoreServices', 'Security']
end
end
Pod::Spec.new do |s|
s.name = 'CocoaHTTPServer'
s.version = '2.3'
s.license = 'BSD'
s.summary = 'A small, lightweight, embeddable HTTP server for Mac OS X or iOS applications.'
s.homepage = 'https://github.com/robbiehanson/CocoaHTTPServer'
s.authors = { 'Robbie Hanson' => 'cocoahttpserver@googlegroups.com' }
s.source = { :git => 'https://github.com/robbiehanson/CocoaHTTPServer.git', :commit => 'c6156087db381a6d233703f9686b8676af6d72a4' }
s.source_files = '{Core,Extensions}/**/*.{h,m}'
s.requires_arc = true
s.ios.deployment_target = '5.0'
s.osx.deployment_target = '10.7'
s.ios.frameworks = 'CFNetwork', 'Security'
s.osx.frameworks = 'CoreServices', 'Security'
s.library = 'xml2'
s.xcconfig = { 'HEADER_SEARCH_PATHS' => '$(SDKROOT)/usr/include/libxml2' }
s.dependency "CocoaAsyncSocket"
s.dependency "CocoaLumberjack"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment