File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed
Socket.IO-Client-Swift.xcodeproj Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -93,16 +93,16 @@ github "socketio/socket.io-client-swift" ~> 6.1.5 # Or latest version
93
93
94
94
Run ` carthage update --platform ios,macosx ` .
95
95
96
- CocoaPods 0.36. 0 or later (iOS 8+)
96
+ CocoaPods 1.0. 0 or later
97
97
------------------
98
98
Create ` Podfile ` and add ` pod 'Socket.IO-Client-Swift' ` :
99
99
100
100
``` ruby
101
- source ' https://github.com/CocoaPods/Specs.git'
102
- platform :ios , ' 8.0'
103
101
use_frameworks!
104
102
105
- pod ' Socket.IO-Client-Swift' , ' ~> 6.1.5' # Or latest version
103
+ target ' YourApp' do
104
+ pod ' Socket.IO-Client-Swift' , ' ~> 6.1.5' # Or latest version
105
+ end
106
106
```
107
107
108
108
Install pods:
@@ -121,7 +121,7 @@ import SocketIOClientSwift
121
121
Objective-C:
122
122
123
123
``` Objective-C
124
- # import < SocketIOClientSwift/SocketIOClientSwift-Swift.h >
124
+ @ import SocketIOClientSwift;
125
125
```
126
126
127
127
CocoaSeeds
Original file line number Diff line number Diff line change 814
814
isa = XCBuildConfiguration;
815
815
buildSettings = {
816
816
ALWAYS_SEARCH_USER_PATHS = NO;
817
+ APPLICATION_EXTENSION_API_ONLY = YES;
817
818
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
818
819
CLANG_CXX_LIBRARY = "libc++";
819
820
CLANG_ENABLE_MODULES = YES;
870
871
isa = XCBuildConfiguration;
871
872
buildSettings = {
872
873
ALWAYS_SEARCH_USER_PATHS = NO;
874
+ APPLICATION_EXTENSION_API_ONLY = YES;
873
875
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
874
876
CLANG_CXX_LIBRARY = "libc++";
875
877
CLANG_ENABLE_MODULES = YES;
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ public class SSLSecurity : NSObject {
55
55
56
56
var isReady = false //is the key processing done?
57
57
var certificates : [ NSData ] ? //the certificates
58
- var pubKeys : [ SecKeyRef ] ? //the public keys
58
+ @ nonobjc var pubKeys : [ SecKeyRef ] ? //the public keys
59
59
var usePublicKeys = false //use public keys or certificate validation?
60
60
61
61
/**
@@ -241,7 +241,7 @@ public class SSLSecurity : NSObject {
241
241
242
242
- returns: the public keys from the certifcate chain for the trust
243
243
*/
244
- func publicKeyChainForTrust( trust: SecTrustRef ) -> [ SecKeyRef ] {
244
+ @ nonobjc func publicKeyChainForTrust( trust: SecTrustRef ) -> [ SecKeyRef ] {
245
245
let policy = SecPolicyCreateBasicX509 ( )
246
246
let keys = ( 0 ..< SecTrustGetCertificateCount ( trust) ) . reduce ( [ SecKeyRef] ( ) ) { ( keys: [ SecKeyRef ] , index: Int ) -> [ SecKeyRef ] in
247
247
var keys = keys
You can’t perform that action at this time.
0 commit comments