Эх сурвалжийг харах

Merge pull request #28 from MSch/patch-1

Only require CFNetwork on iOS so that podspec works on Lion
Mike Lewis 13 жил өмнө
parent
commit
82c9f8938f

+ 2 - 1
SocketRocket.podspec

@@ -8,6 +8,7 @@ Pod::Spec.new do |s|
   s.source_files = 'SocketRocket/*.{h,m,c}'
   s.source_files = 'SocketRocket/*.{h,m,c}'
   s.clean_paths  = %w{SRWebSocketTests SocketRocket.xcodeproj TestChat TestChatServer TestSupport extern}
   s.clean_paths  = %w{SRWebSocketTests SocketRocket.xcodeproj TestChat TestChatServer TestSupport extern}
   s.requires_arc = true
   s.requires_arc = true
-  s.frameworks   = %w{CFNetwork Security}
+  s.frameworks   = %w{Security}
+  s.frameworks << 'CFNetwork' if config.ios?
   s.libraries    = "icucore"
   s.libraries    = "icucore"
 end
 end