diff --git a/Products/SocketIO.framework/Headers b/Products/SocketIO.framework/Headers new file mode 120000 index 0000000..a177d2a --- /dev/null +++ b/Products/SocketIO.framework/Headers @@ -0,0 +1 @@ +Versions/Current/Headers \ No newline at end of file diff --git a/Products/SocketIO.framework/Resources b/Products/SocketIO.framework/Resources new file mode 120000 index 0000000..953ee36 --- /dev/null +++ b/Products/SocketIO.framework/Resources @@ -0,0 +1 @@ +Versions/Current/Resources \ No newline at end of file diff --git a/Products/SocketIO.framework/SocketIO b/Products/SocketIO.framework/SocketIO new file mode 120000 index 0000000..89e1e50 --- /dev/null +++ b/Products/SocketIO.framework/SocketIO @@ -0,0 +1 @@ +Versions/Current/SocketIO \ No newline at end of file diff --git a/Products/SocketIO.framework/Versions/A/Headers/NSData+SRB64Additions.h b/Products/SocketIO.framework/Versions/A/Headers/NSData+SRB64Additions.h new file mode 100644 index 0000000..7d61063 --- /dev/null +++ b/Products/SocketIO.framework/Versions/A/Headers/NSData+SRB64Additions.h @@ -0,0 +1,24 @@ +// +// Copyright 2012 Square Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +#import + + +@interface NSData (SRB64Additions) + +- (NSString *)SR_stringByBase64Encoding; + +@end diff --git a/Products/SocketIO.framework/Versions/A/Headers/SRWebSocket.h b/Products/SocketIO.framework/Versions/A/Headers/SRWebSocket.h new file mode 100644 index 0000000..2d40bb1 --- /dev/null +++ b/Products/SocketIO.framework/Versions/A/Headers/SRWebSocket.h @@ -0,0 +1,114 @@ +// +// Copyright 2012 Square Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +#import +#import + +typedef enum { + SR_CONNECTING = 0, + SR_OPEN = 1, + SR_CLOSING = 2, + SR_CLOSED = 3, +} SRReadyState; + +@class SRWebSocket; + +extern NSString *const SRWebSocketErrorDomain; + +#pragma mark - SRWebSocketDelegate + +@protocol SRWebSocketDelegate; + +#pragma mark - SRWebSocket + +@interface SRWebSocket : NSObject + +@property (nonatomic, assign) id delegate; + +@property (nonatomic, readonly) SRReadyState readyState; +@property (nonatomic, readonly, retain) NSURL *url; + +// This returns the negotiated protocol. +// It will be nil until after the handshake completes. +@property (nonatomic, readonly, copy) NSString *protocol; + +// Protocols should be an array of strings that turn into Sec-WebSocket-Protocol. +- (id)initWithURLRequest:(NSURLRequest *)request protocols:(NSArray *)protocols; +- (id)initWithURLRequest:(NSURLRequest *)request; + +// Some helper constructors. +- (id)initWithURL:(NSURL *)url protocols:(NSArray *)protocols; +- (id)initWithURL:(NSURL *)url; + +// Delegate queue will be dispatch_main_queue by default. +// You cannot set both OperationQueue and dispatch_queue. +- (void)setDelegateOperationQueue:(NSOperationQueue*) queue; +- (void)setDelegateDispatchQueue:(dispatch_queue_t) queue; + +// By default, it will schedule itself on +[NSRunLoop SR_networkRunLoop] using defaultModes. +- (void)scheduleInRunLoop:(NSRunLoop *)aRunLoop forMode:(NSString *)mode; +- (void)unscheduleFromRunLoop:(NSRunLoop *)aRunLoop forMode:(NSString *)mode; + +// SRWebSockets are intended for one-time-use only. Open should be called once and only once. +- (void)open; + +- (void)close; +- (void)closeWithCode:(NSInteger)code reason:(NSString *)reason; + +// Send a UTF8 String or Data. +- (void)send:(id)data; + +@end + +#pragma mark - SRWebSocketDelegate + +@protocol SRWebSocketDelegate + +// message will either be an NSString if the server is using text +// or NSData if the server is using binary. +- (void)webSocket:(SRWebSocket *)webSocket didReceiveMessage:(id)message; + +@optional + +- (void)webSocketDidOpen:(SRWebSocket *)webSocket; +- (void)webSocket:(SRWebSocket *)webSocket didFailWithError:(NSError *)error; +- (void)webSocket:(SRWebSocket *)webSocket didCloseWithCode:(NSInteger)code reason:(NSString *)reason wasClean:(BOOL)wasClean; + +@end + +#pragma mark - NSURLRequest (CertificateAdditions) + +@interface NSURLRequest (CertificateAdditions) + +@property (nonatomic, retain, readonly) NSArray *SR_SSLPinnedCertificates; + +@end + +#pragma mark - NSMutableURLRequest (CertificateAdditions) + +@interface NSMutableURLRequest (CertificateAdditions) + +@property (nonatomic, retain) NSArray *SR_SSLPinnedCertificates; + +@end + +#pragma mark - NSRunLoop (SRWebSocket) + +@interface NSRunLoop (SRWebSocket) + ++ (NSRunLoop *)SR_networkRunLoop; + +@end diff --git a/Products/SocketIO.framework/Versions/A/Headers/SocketIO.h b/Products/SocketIO.framework/Versions/A/Headers/SocketIO.h new file mode 100755 index 0000000..07cacef --- /dev/null +++ b/Products/SocketIO.framework/Versions/A/Headers/SocketIO.h @@ -0,0 +1,121 @@ +// +// SocketIO.h +// v0.5.1 +// +// based on +// socketio-cocoa https://github.com/fpotter/socketio-cocoa +// by Fred Potter +// +// using +// https://github.com/square/SocketRocket +// +// reusing some parts of +// /socket.io/socket.io.js +// +// Created by Philipp Kyeck http://beta-interactive.de +// +// With help from +// https://github.com/pkyeck/socket.IO-objc/blob/master/CONTRIBUTORS.md +// + +#import +#import "SocketIOTransport.h" + +@class SocketIO; +@class SocketIOPacket; + +typedef void(^SocketIOCallback)(id argsData); + +extern NSString* const SocketIOError; + +typedef enum { + SocketIOServerRespondedWithInvalidConnectionData = -1, + SocketIOServerRespondedWithDisconnect = -2, + SocketIOHeartbeatTimeout = -3, + SocketIOWebSocketClosed = -4, + SocketIOTransportsNotSupported = -5, + SocketIOHandshakeFailed = -6, + SocketIODataCouldNotBeSend = -7, + SocketIOUnauthorized = -8 +} SocketIOErrorCodes; + + +@protocol SocketIODelegate +@optional +- (void) socketIODidConnect:(SocketIO *)socket; +- (void) socketIODidDisconnect:(SocketIO *)socket disconnectedWithError:(NSError *)error; +- (void) socketIO:(SocketIO *)socket didReceiveMessage:(SocketIOPacket *)packet; +- (void) socketIO:(SocketIO *)socket didReceiveJSON:(SocketIOPacket *)packet; +- (void) socketIO:(SocketIO *)socket didReceiveEvent:(SocketIOPacket *)packet; +- (void) socketIO:(SocketIO *)socket didSendMessage:(SocketIOPacket *)packet; +- (void) socketIO:(SocketIO *)socket onError:(NSError *)error; +@end + + +@interface SocketIO : NSObject +{ + NSString *_host; + NSInteger _port; + NSString *_sid; + NSString *_endpoint; + NSDictionary *_params; + + __weak id _delegate; + + NSObject *_transport; + + BOOL _isConnected; + BOOL _isConnecting; + BOOL _useSecure; + + NSArray *_cookies; + + NSURLConnection *_handshake; + + // heartbeat + NSTimeInterval _heartbeatTimeout; + dispatch_source_t _timeout; + + NSMutableArray *_queue; + + // acknowledge + NSMutableDictionary *_acks; + NSInteger _ackCount; + + // http request + NSMutableData *_httpRequestData; + + // get all arguments from ack? (https://github.com/pkyeck/socket.IO-objc/pull/85) + BOOL _returnAllDataFromAck; +} + +@property (nonatomic, readonly) NSString *host; +@property (nonatomic, readonly) NSInteger port; +@property (nonatomic, readonly) NSString *sid; +@property (nonatomic, readonly) NSTimeInterval heartbeatTimeout; +@property (nonatomic) BOOL useSecure; +@property (nonatomic) NSArray *cookies; +@property (nonatomic, readonly) BOOL isConnected, isConnecting; +@property (nonatomic, weak) id delegate; +@property (nonatomic) BOOL returnAllDataFromAck; + +- (id) initWithDelegate:(id)delegate; +- (void) connectToHost:(NSString *)host onPort:(NSInteger)port; +- (void) connectToHost:(NSString *)host onPort:(NSInteger)port withParams:(NSDictionary *)params; +- (void) connectToHost:(NSString *)host onPort:(NSInteger)port withParams:(NSDictionary *)params withNamespace:(NSString *)endpoint; +- (void) connectToHost:(NSString *)host onPort:(NSInteger)port withParams:(NSDictionary *)params withNamespace:(NSString *)endpoint withConnectionTimeout: (NSTimeInterval) connectionTimeout; + +- (void) disconnect; +- (void) disconnectForced; + +- (void) sendMessage:(NSString *)data; +- (void) sendMessage:(NSString *)data withAcknowledge:(SocketIOCallback)function; +- (void) sendJSON:(NSDictionary *)data; +- (void) sendJSON:(NSDictionary *)data withAcknowledge:(SocketIOCallback)function; +- (void) sendEvent:(NSString *)eventName withData:(id)data; +- (void) sendEvent:(NSString *)eventName withData:(id)data andAcknowledge:(SocketIOCallback)function; +- (void) sendAcknowledgement:(NSString*)pId withArgs:(NSArray *)data; + +- (void) setResourceName:(NSString *)name; + +@end \ No newline at end of file diff --git a/Products/SocketIO.framework/Versions/A/Headers/SocketIOJSONSerialization.h b/Products/SocketIO.framework/Versions/A/Headers/SocketIOJSONSerialization.h new file mode 100644 index 0000000..15084af --- /dev/null +++ b/Products/SocketIO.framework/Versions/A/Headers/SocketIOJSONSerialization.h @@ -0,0 +1,28 @@ +// +// SocketIOJSONSerialization.h +// v0.5.1 +// +// based on +// socketio-cocoa https://github.com/fpotter/socketio-cocoa +// by Fred Potter +// +// using +// https://github.com/square/SocketRocket +// +// reusing some parts of +// /socket.io/socket.io.js +// +// Created by Philipp Kyeck http://beta-interactive.de +// +// With help from +// https://github.com/pkyeck/socket.IO-objc/blob/master/CONTRIBUTORS.md +// + +#import + +@interface SocketIOJSONSerialization : NSObject + ++ (id) objectFromJSONData:(NSData *)data error:(NSError **)error; ++ (NSString *) JSONStringFromObject:(id)object error:(NSError **)error; + +@end diff --git a/Products/SocketIO.framework/Versions/A/Headers/SocketIOPacket.h b/Products/SocketIO.framework/Versions/A/Headers/SocketIOPacket.h new file mode 100644 index 0000000..ea1f30f --- /dev/null +++ b/Products/SocketIO.framework/Versions/A/Headers/SocketIOPacket.h @@ -0,0 +1,49 @@ +// +// SocketIOPacket.h +// v0.5.1 +// +// based on +// socketio-cocoa https://github.com/fpotter/socketio-cocoa +// by Fred Potter +// +// using +// https://github.com/square/SocketRocket +// +// reusing some parts of +// /socket.io/socket.io.js +// +// Created by Philipp Kyeck http://beta-interactive.de +// +// With help from +// https://github.com/pkyeck/socket.IO-objc/blob/master/CONTRIBUTORS.md +// + +#import + +@interface SocketIOPacket : NSObject +{ + NSString *type; + NSString *pId; + NSString *ack; + NSString *name; + NSString *data; + NSArray *args; + NSString *endpoint; + NSArray *_types; +} + +@property (nonatomic, copy) NSString *type; +@property (nonatomic, copy) NSString *pId; +@property (nonatomic, copy) NSString *ack; +@property (nonatomic, copy) NSString *name; +@property (nonatomic, copy) NSString *data; +@property (nonatomic, copy) NSString *endpoint; +@property (nonatomic, copy) NSArray *args; + +- (id) initWithType:(NSString *)packetType; +- (id) initWithTypeIndex:(int)index; +- (id) dataAsJSON; +- (NSNumber *) typeAsNumber; +- (NSString *) typeForIndex:(int)index; + +@end diff --git a/Products/SocketIO.framework/Versions/A/Headers/SocketIOTransport.h b/Products/SocketIO.framework/Versions/A/Headers/SocketIOTransport.h new file mode 100644 index 0000000..9f8f7be --- /dev/null +++ b/Products/SocketIO.framework/Versions/A/Headers/SocketIOTransport.h @@ -0,0 +1,47 @@ +// +// SocketIOTransport.h +// v0.5.1 +// +// based on +// socketio-cocoa https://github.com/fpotter/socketio-cocoa +// by Fred Potter +// +// using +// https://github.com/square/SocketRocket +// +// reusing some parts of +// /socket.io/socket.io.js +// +// Created by Philipp Kyeck http://beta-interactive.de +// +// With help from +// https://github.com/pkyeck/socket.IO-objc/blob/master/CONTRIBUTORS.md +// + +#import + +@protocol SocketIOTransportDelegate + +- (void) onData:(id)message; +- (void) onDisconnect:(NSError*)error; +- (void) onError:(NSError*)error; + +@property (nonatomic, readonly) NSString *host; +@property (nonatomic, readonly) NSInteger port; +@property (nonatomic, readonly) NSString *sid; +@property (nonatomic, readonly) NSTimeInterval heartbeatTimeout; +@property (nonatomic) BOOL useSecure; + +@end + +@protocol SocketIOTransport + +- (id) initWithDelegate:(id )delegate; +- (void) open; +- (void) close; +- (BOOL) isReady; +- (void) send:(NSString *)request; + +@property (nonatomic, weak) id delegate; + +@end diff --git a/Products/SocketIO.framework/Versions/A/Headers/SocketIOTransportWebsocket.h b/Products/SocketIO.framework/Versions/A/Headers/SocketIOTransportWebsocket.h new file mode 100644 index 0000000..aa67218 --- /dev/null +++ b/Products/SocketIO.framework/Versions/A/Headers/SocketIOTransportWebsocket.h @@ -0,0 +1,33 @@ +// +// SocketIOTransportWebsocket.h +// v0.5.1 +// +// based on +// socketio-cocoa https://github.com/fpotter/socketio-cocoa +// by Fred Potter +// +// using +// https://github.com/square/SocketRocket +// +// reusing some parts of +// /socket.io/socket.io.js +// +// Created by Philipp Kyeck http://beta-interactive.de +// +// With help from +// https://github.com/pkyeck/socket.IO-objc/blob/master/CONTRIBUTORS.md +// + +#import + +#import "SRWebSocket.h" +#import "SocketIOTransport.h" + +@interface SocketIOTransportWebsocket : NSObject +{ + SRWebSocket *_webSocket; +} + +@property (nonatomic, weak) id delegate; + +@end diff --git a/Products/SocketIO.framework/Versions/A/Headers/SocketIOTransportXHR.h b/Products/SocketIO.framework/Versions/A/Headers/SocketIOTransportXHR.h new file mode 100644 index 0000000..d2639b2 --- /dev/null +++ b/Products/SocketIO.framework/Versions/A/Headers/SocketIOTransportXHR.h @@ -0,0 +1,36 @@ +// +// SocketIOTransportXHR.h +// v0.5.1 +// +// based on +// socketio-cocoa https://github.com/fpotter/socketio-cocoa +// by Fred Potter +// +// using +// https://github.com/square/SocketRocket +// +// reusing some parts of +// /socket.io/socket.io.js +// +// Created by Philipp Kyeck http://beta-interactive.de +// +// With help from +// https://github.com/pkyeck/socket.IO-objc/blob/master/CONTRIBUTORS.md +// + +#import + +#import "SocketIOTransport.h" + +@interface SocketIOTransportXHR : NSObject +{ + NSString *_url; + NSMutableData *_data; + NSMutableDictionary *_polls; + BOOL _isClosed; +} + +@property (nonatomic, weak) id delegate; +@property (nonatomic) BOOL isClosed; + +@end diff --git a/Products/SocketIO.framework/Versions/A/Headers/SocketRocket-Prefix.pch b/Products/SocketIO.framework/Versions/A/Headers/SocketRocket-Prefix.pch new file mode 100644 index 0000000..8c32c82 --- /dev/null +++ b/Products/SocketIO.framework/Versions/A/Headers/SocketRocket-Prefix.pch @@ -0,0 +1,27 @@ +// +// Copyright 2012 Square Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __OBJC__ + #import +#endif + +#ifdef __cplusplus +} +#endif diff --git a/Products/SocketIO.framework/Versions/A/Headers/base64.h b/Products/SocketIO.framework/Versions/A/Headers/base64.h new file mode 100644 index 0000000..c345e2e --- /dev/null +++ b/Products/SocketIO.framework/Versions/A/Headers/base64.h @@ -0,0 +1,34 @@ +// Copyright 2012 Square Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + + +#ifndef SocketRocket_base64_h +#define SocketRocket_base64_h + +#include + +extern int +b64_ntop(u_char const *src, + size_t srclength, + char *target, + size_t targsize); + +extern int +b64_pton(char const *src, + u_char *target, + size_t targsize); + + +#endif diff --git a/Products/SocketIO.framework/Versions/A/Resources/Info.plist b/Products/SocketIO.framework/Versions/A/Resources/Info.plist new file mode 100644 index 0000000..53e2f96 Binary files /dev/null and b/Products/SocketIO.framework/Versions/A/Resources/Info.plist differ diff --git a/Products/SocketIO.framework/Versions/A/Resources/en.lproj/InfoPlist.strings b/Products/SocketIO.framework/Versions/A/Resources/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..3967e06 Binary files /dev/null and b/Products/SocketIO.framework/Versions/A/Resources/en.lproj/InfoPlist.strings differ diff --git a/Products/SocketIO.framework/Versions/A/SocketIO b/Products/SocketIO.framework/Versions/A/SocketIO new file mode 100644 index 0000000..59cf0d0 Binary files /dev/null and b/Products/SocketIO.framework/Versions/A/SocketIO differ diff --git a/Products/SocketIO.framework/Versions/Current b/Products/SocketIO.framework/Versions/Current new file mode 120000 index 0000000..8c7e5a6 --- /dev/null +++ b/Products/SocketIO.framework/Versions/Current @@ -0,0 +1 @@ +A \ No newline at end of file diff --git a/README.md b/README.md index 2e8fca9..f452fa1 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,22 @@ As of version 0.4, this library requires at least OS X 10.7 or iOS 5.0. Because of this, we were able to remove the external JSON frameworks in v0.5 and only rely on iOS' own `NSJSONSerialization`. +###Framework (iOS) +Now you can use the **SocketIO framework** (builded for iOS) without import all headers files. +Just imports these libraries and frameworks: + +SocketIO.framework (it's under the product folder of this project) :) +Security.framework +SystemConfiguration.framework +libicucore.dylib +MobileCoreServices.framework +CFNetwork.framework + +When you use the framework you must import the headers like below: + + #import + + ## Usage The easiest way to connect to your Socket.IO / node.js server is @@ -126,6 +142,8 @@ see: [SocketRocket's Installing OS X](https://github.com/square/SocketRocket#ins Initial project by Philipp Kyeck . Additional support from these [amazing people](https://github.com/pkyeck/socket.IO-objc/blob/master/CONTRIBUTORS.md). +Framework by g8production [www.g8production.com](http://www.g8production.com) [github](https://github.com/gali8) + ## License (The MIT License) diff --git a/SocketIO.h b/SocketIO.h index 2fbb12e..07cacef 100755 --- a/SocketIO.h +++ b/SocketIO.h @@ -19,7 +19,6 @@ // #import - #import "SocketIOTransport.h" @class SocketIO; diff --git a/SocketIO/SocketIO-Info.plist b/SocketIO/SocketIO-Info.plist new file mode 100644 index 0000000..db8345b --- /dev/null +++ b/SocketIO/SocketIO-Info.plist @@ -0,0 +1,46 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIconFile + + CFBundleIdentifier + com.g8production.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + CFPlugInDynamicRegisterFunction + + CFPlugInDynamicRegistration + NO + CFPlugInFactories + + 00000000-0000-0000-0000-000000000000 + MyFactoryFunction + + CFPlugInTypes + + 00000000-0000-0000-0000-000000000000 + + 00000000-0000-0000-0000-000000000000 + + + CFPlugInUnloadFunction + + NSHumanReadableCopyright + Copyright © 2014 beta_interactive. All rights reserved. + + diff --git a/SocketIO/SocketIO-Prefix.pch b/SocketIO/SocketIO-Prefix.pch new file mode 100644 index 0000000..adc1a8a --- /dev/null +++ b/SocketIO/SocketIO-Prefix.pch @@ -0,0 +1,8 @@ +// +// Prefix header +// +// The contents of this file are implicitly included at the beginning of every source file. +// + +#ifdef __OBJC__ +#endif diff --git a/SocketIO/en.lproj/InfoPlist.strings b/SocketIO/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/SocketIO/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/SocketTesterARC.xcodeproj/project.pbxproj b/SocketTesterARC.xcodeproj/project.pbxproj index e8e4616..b6ec062 100644 --- a/SocketTesterARC.xcodeproj/project.pbxproj +++ b/SocketTesterARC.xcodeproj/project.pbxproj @@ -6,6 +6,20 @@ objectVersion = 46; objects = { +/* Begin PBXAggregateTarget section */ + 6463D36718DD1658006C6A78 /* SocketIOAggregate */ = { + isa = PBXAggregateTarget; + buildConfigurationList = 6463D36818DD1658006C6A78 /* Build configuration list for PBXAggregateTarget "SocketIOAggregate" */; + buildPhases = ( + 6463D36B18DD165C006C6A78 /* ShellScript */, + ); + dependencies = ( + ); + name = SocketIOAggregate; + productName = SocketIOAggregate; + }; +/* End PBXAggregateTarget section */ + /* Begin PBXBuildFile section */ 4A444FA11589E28800B44ABB /* libicucore.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 4A444FA01589E28800B44ABB /* libicucore.dylib */; }; 4A444FA31589E29500B44ABB /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4A444FA21589E29500B44ABB /* Security.framework */; }; @@ -27,6 +41,25 @@ 4ADCCBF115790FD30022990C /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4ADCCBF015790FD30022990C /* MobileCoreServices.framework */; }; 4ADCCBF315790FDF0022990C /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4ADCCBF215790FDF0022990C /* SystemConfiguration.framework */; }; 4ADCCD4D157915F00022990C /* SocketIO.m in Sources */ = {isa = PBXBuildFile; fileRef = 4ADCCBC715790DEC0022990C /* SocketIO.m */; }; + 6463D34E18DD1442006C6A78 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6463D34C18DD1442006C6A78 /* InfoPlist.strings */; }; + 6463D35518DD15DE006C6A78 /* NSData+SRB64Additions.h in Headers */ = {isa = PBXBuildFile; fileRef = 4A44537C1589EE9100B44ABB /* NSData+SRB64Additions.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 6463D35618DD15DE006C6A78 /* SocketRocket-Prefix.pch in Headers */ = {isa = PBXBuildFile; fileRef = 4A44537E1589EE9100B44ABB /* SocketRocket-Prefix.pch */; settings = {ATTRIBUTES = (Public, ); }; }; + 6463D35718DD15DE006C6A78 /* SRWebSocket.h in Headers */ = {isa = PBXBuildFile; fileRef = 4A44537F1589EE9100B44ABB /* SRWebSocket.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 6463D35818DD15DE006C6A78 /* SocketIO.h in Headers */ = {isa = PBXBuildFile; fileRef = 4ADCCBC615790DEC0022990C /* SocketIO.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 6463D35918DD15DE006C6A78 /* SocketIOPacket.h in Headers */ = {isa = PBXBuildFile; fileRef = 4AD96DF21680853E00D9E42D /* SocketIOPacket.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 6463D35A18DD15DE006C6A78 /* SocketIOJSONSerialization.h in Headers */ = {isa = PBXBuildFile; fileRef = C9E391A015E2A1B00004693A /* SocketIOJSONSerialization.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 6463D35B18DD15DE006C6A78 /* SocketIOTransport.h in Headers */ = {isa = PBXBuildFile; fileRef = 4AD96DF9168225FC00D9E42D /* SocketIOTransport.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 6463D35C18DD15DE006C6A78 /* SocketIOTransportWebsocket.h in Headers */ = {isa = PBXBuildFile; fileRef = 4AD96DF616808B7900D9E42D /* SocketIOTransportWebsocket.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 6463D35D18DD15DE006C6A78 /* SocketIOTransportXHR.h in Headers */ = {isa = PBXBuildFile; fileRef = 4AD96DFA16822DE300D9E42D /* SocketIOTransportXHR.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 6463D35E18DD160C006C6A78 /* base64.h in Headers */ = {isa = PBXBuildFile; fileRef = 4A44537B1589EE9100B44ABB /* base64.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 6463D35F18DD161C006C6A78 /* base64.c in Sources */ = {isa = PBXBuildFile; fileRef = 4A44537A1589EE9100B44ABB /* base64.c */; }; + 6463D36018DD161C006C6A78 /* NSData+SRB64Additions.m in Sources */ = {isa = PBXBuildFile; fileRef = 4A44537D1589EE9100B44ABB /* NSData+SRB64Additions.m */; }; + 6463D36118DD161C006C6A78 /* SRWebSocket.m in Sources */ = {isa = PBXBuildFile; fileRef = 4A4453801589EE9100B44ABB /* SRWebSocket.m */; }; + 6463D36218DD1629006C6A78 /* SocketIO.m in Sources */ = {isa = PBXBuildFile; fileRef = 4ADCCBC715790DEC0022990C /* SocketIO.m */; }; + 6463D36318DD1629006C6A78 /* SocketIOPacket.m in Sources */ = {isa = PBXBuildFile; fileRef = 4AD96DF31680853E00D9E42D /* SocketIOPacket.m */; }; + 6463D36418DD1629006C6A78 /* SocketIOJSONSerialization.m in Sources */ = {isa = PBXBuildFile; fileRef = C9E391A115E2A1B00004693A /* SocketIOJSONSerialization.m */; }; + 6463D36518DD1629006C6A78 /* SocketIOTransportWebsocket.m in Sources */ = {isa = PBXBuildFile; fileRef = 4AD96DF716808B7900D9E42D /* SocketIOTransportWebsocket.m */; }; + 6463D36618DD1629006C6A78 /* SocketIOTransportXHR.m in Sources */ = {isa = PBXBuildFile; fileRef = 4AD96DFB16822DE300D9E42D /* SocketIOTransportXHR.m */; }; C9E391A215E2A1B00004693A /* SocketIOJSONSerialization.m in Sources */ = {isa = PBXBuildFile; fileRef = C9E391A115E2A1B00004693A /* SocketIOJSONSerialization.m */; }; /* End PBXBuildFile section */ @@ -65,6 +98,12 @@ 4ADCCBEE15790FC70022990C /* CFNetwork.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = System/Library/Frameworks/CFNetwork.framework; sourceTree = SDKROOT; }; 4ADCCBF015790FD30022990C /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; }; 4ADCCBF215790FDF0022990C /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; }; + 6463D34618DD1442006C6A78 /* SocketIO.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SocketIO.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 6463D34718DD1442006C6A78 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = System/Library/Frameworks/CoreFoundation.framework; sourceTree = SDKROOT; }; + 6463D34B18DD1442006C6A78 /* SocketIO-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "SocketIO-Info.plist"; sourceTree = ""; }; + 6463D34D18DD1442006C6A78 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 6463D34F18DD1442006C6A78 /* SocketIO-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "SocketIO-Prefix.pch"; sourceTree = ""; }; + 6463D3A018DDF5D3006C6A78 /* SocketIO.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SocketIO.framework; path = Products/SocketIO.framework; sourceTree = SOURCE_ROOT; }; C9E391A015E2A1B00004693A /* SocketIOJSONSerialization.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SocketIOJSONSerialization.h; sourceTree = SOURCE_ROOT; }; C9E391A115E2A1B00004693A /* SocketIOJSONSerialization.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SocketIOJSONSerialization.m; sourceTree = SOURCE_ROOT; }; /* End PBXFileReference section */ @@ -85,6 +124,13 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 6463D34318DD1442006C6A78 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ @@ -106,6 +152,7 @@ isa = PBXGroup; children = ( 4ADCCBA715790D760022990C /* SocketTesterARC */, + 6463D34918DD1442006C6A78 /* SocketIO */, 4ADCCBA015790D760022990C /* Frameworks */, 4ADCCB9E15790D760022990C /* Products */, ); @@ -115,6 +162,7 @@ isa = PBXGroup; children = ( 4ADCCB9D15790D760022990C /* SocketTesterARC.app */, + 6463D34618DD1442006C6A78 /* SocketIO.framework */, ); name = Products; sourceTree = ""; @@ -130,6 +178,7 @@ 4ADCCBA115790D760022990C /* UIKit.framework */, 4ADCCBA315790D760022990C /* Foundation.framework */, 4ADCCBA515790D760022990C /* CoreGraphics.framework */, + 6463D34718DD1442006C6A78 /* CoreFoundation.framework */, ); name = Frameworks; sourceTree = ""; @@ -137,6 +186,7 @@ 4ADCCBA715790D760022990C /* SocketTesterARC */ = { isa = PBXGroup; children = ( + 6463D3A018DDF5D3006C6A78 /* SocketIO.framework */, 4A4453791589EE7D00B44ABB /* SocketRocket */, 4ADCCBB015790D760022990C /* AppDelegate.h */, 4ADCCBB115790D760022990C /* AppDelegate.m */, @@ -170,8 +220,46 @@ name = "Supporting Files"; sourceTree = ""; }; + 6463D34918DD1442006C6A78 /* SocketIO */ = { + isa = PBXGroup; + children = ( + 6463D34A18DD1442006C6A78 /* Supporting Files */, + ); + path = SocketIO; + sourceTree = ""; + }; + 6463D34A18DD1442006C6A78 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 6463D34B18DD1442006C6A78 /* SocketIO-Info.plist */, + 6463D34C18DD1442006C6A78 /* InfoPlist.strings */, + 6463D34F18DD1442006C6A78 /* SocketIO-Prefix.pch */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; /* End PBXGroup section */ +/* Begin PBXHeadersBuildPhase section */ + 6463D35318DD15AC006C6A78 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 6463D35818DD15DE006C6A78 /* SocketIO.h in Headers */, + 6463D35B18DD15DE006C6A78 /* SocketIOTransport.h in Headers */, + 6463D35E18DD160C006C6A78 /* base64.h in Headers */, + 6463D35518DD15DE006C6A78 /* NSData+SRB64Additions.h in Headers */, + 6463D35618DD15DE006C6A78 /* SocketRocket-Prefix.pch in Headers */, + 6463D35718DD15DE006C6A78 /* SRWebSocket.h in Headers */, + 6463D35918DD15DE006C6A78 /* SocketIOPacket.h in Headers */, + 6463D35A18DD15DE006C6A78 /* SocketIOJSONSerialization.h in Headers */, + 6463D35C18DD15DE006C6A78 /* SocketIOTransportWebsocket.h in Headers */, + 6463D35D18DD15DE006C6A78 /* SocketIOTransportXHR.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + /* Begin PBXNativeTarget section */ 4ADCCB9C15790D760022990C /* SocketTesterARC */ = { isa = PBXNativeTarget; @@ -190,13 +278,31 @@ productReference = 4ADCCB9D15790D760022990C /* SocketTesterARC.app */; productType = "com.apple.product-type.application"; }; + 6463D34518DD1442006C6A78 /* SocketIO */ = { + isa = PBXNativeTarget; + buildConfigurationList = 6463D35218DD1442006C6A78 /* Build configuration list for PBXNativeTarget "SocketIO" */; + buildPhases = ( + 6463D34218DD1442006C6A78 /* Sources */, + 6463D34318DD1442006C6A78 /* Frameworks */, + 6463D34418DD1442006C6A78 /* Resources */, + 6463D35318DD15AC006C6A78 /* Headers */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = SocketIO; + productName = SocketIO; + productReference = 6463D34618DD1442006C6A78 /* SocketIO.framework */; + productType = "com.apple.product-type.bundle"; + }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ 4ADCCB9415790D760022990C /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 0460; + LastUpgradeCheck = 0510; ORGANIZATIONNAME = beta_interactive; }; buildConfigurationList = 4ADCCB9715790D760022990C /* Build configuration list for PBXProject "SocketTesterARC" */; @@ -212,6 +318,8 @@ projectRoot = ""; targets = ( 4ADCCB9C15790D760022990C /* SocketTesterARC */, + 6463D34518DD1442006C6A78 /* SocketIO */, + 6463D36718DD1658006C6A78 /* SocketIOAggregate */, ); }; /* End PBXProject section */ @@ -226,8 +334,32 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 6463D34418DD1442006C6A78 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6463D34E18DD1442006C6A78 /* InfoPlist.strings in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXResourcesBuildPhase section */ +/* Begin PBXShellScriptBuildPhase section */ + 6463D36B18DD165C006C6A78 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "# Sets the target folders and the final framework product.\nFMK_NAME=SocketIO\nFMK_VERSION=A\n\n# Install dir will be the final output to the framework.\n# The following line create it in the root folder of the current project.\nINSTALL_DIR=${SRCROOT}/Products/${FMK_NAME}.framework\n\n# Working dir will be deleted after the framework creation.\nWRK_DIR=build\nDEVICE_DIR=${WRK_DIR}/Release-iphoneos/${FMK_NAME}.framework\nSIMULATOR_DIR=${WRK_DIR}/Release-iphonesimulator/${FMK_NAME}.framework\n\n# Building both architectures.\nxcodebuild -configuration \"Release\" -target \"${FMK_NAME}\" -sdk iphoneos\nxcodebuild -configuration \"Release\" -target \"${FMK_NAME}\" -sdk iphonesimulator\n\n# Cleaning the oldest.\nif [ -d \"${INSTALL_DIR}\" ]\nthen\nrm -rf \"${INSTALL_DIR}\"\nfi\n\n# Creates and renews the final product folder.\nmkdir -p \"${INSTALL_DIR}\"\nmkdir -p \"${INSTALL_DIR}/Versions\"\nmkdir -p \"${INSTALL_DIR}/Versions/${FMK_VERSION}\"\nmkdir -p \"${INSTALL_DIR}/Versions/${FMK_VERSION}/Resources\"\nmkdir -p \"${INSTALL_DIR}/Versions/${FMK_VERSION}/Headers\"\n\n# Creates the internal links.\n# It MUST uses relative path, otherwise will not work when the folder is copied/moved.\nln -s \"${FMK_VERSION}\" \"${INSTALL_DIR}/Versions/Current\"\nln -s \"Versions/Current/Headers\" \"${INSTALL_DIR}/Headers\"\nln -s \"Versions/Current/Resources\" \"${INSTALL_DIR}/Resources\"\nln -s \"Versions/Current/${FMK_NAME}\" \"${INSTALL_DIR}/${FMK_NAME}\"\n\n# Copies the headers and resources files to the final product folder.\ncp -R \"${DEVICE_DIR}/Headers/\" \"${INSTALL_DIR}/Versions/${FMK_VERSION}/Headers/\"\ncp -R \"${DEVICE_DIR}/\" \"${INSTALL_DIR}/Versions/${FMK_VERSION}/Resources/\"\n\n# Removes the binary and header from the resources folder.\nrm -r \"${INSTALL_DIR}/Versions/${FMK_VERSION}/Resources/Headers\" \"${INSTALL_DIR}/Versions/${FMK_VERSION}/Resources/${FMK_NAME}\"\n\n# Uses the Lipo Tool to merge both binary files (i386 + armv6/armv7) into one Universal final product.\nlipo -create \"${DEVICE_DIR}/${FMK_NAME}\" \"${SIMULATOR_DIR}/${FMK_NAME}\" -output \"${INSTALL_DIR}/Versions/${FMK_VERSION}/${FMK_NAME}\"\n\nrm -r \"${WRK_DIR}\""; + }; +/* End PBXShellScriptBuildPhase section */ + /* Begin PBXSourcesBuildPhase section */ 4ADCCB9915790D760022990C /* Sources */ = { isa = PBXSourcesBuildPhase; @@ -247,6 +379,21 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 6463D34218DD1442006C6A78 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6463D35F18DD161C006C6A78 /* base64.c in Sources */, + 6463D36018DD161C006C6A78 /* NSData+SRB64Additions.m in Sources */, + 6463D36118DD161C006C6A78 /* SRWebSocket.m in Sources */, + 6463D36218DD1629006C6A78 /* SocketIO.m in Sources */, + 6463D36318DD1629006C6A78 /* SocketIOPacket.m in Sources */, + 6463D36418DD1629006C6A78 /* SocketIOJSONSerialization.m in Sources */, + 6463D36518DD1629006C6A78 /* SocketIOTransportWebsocket.m in Sources */, + 6463D36618DD1629006C6A78 /* SocketIOTransportXHR.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXSourcesBuildPhase section */ /* Begin PBXVariantGroup section */ @@ -266,6 +413,14 @@ name = ViewController.xib; sourceTree = ""; }; + 6463D34C18DD1442006C6A78 /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 6463D34D18DD1442006C6A78 /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; /* End PBXVariantGroup section */ /* Begin XCBuildConfiguration section */ @@ -273,9 +428,10 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; - ARCHS = "$(ARCHS_STANDARD_32_BIT)"; CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; @@ -290,8 +446,11 @@ ); GCC_SYMBOLS_PRIVATE_EXTERN = NO; GCC_VERSION = com.apple.compilers.llvm.clang.1_0; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 5.0; ONLY_ACTIVE_ARCH = YES; @@ -303,9 +462,10 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; - ARCHS = "$(ARCHS_STANDARD_32_BIT)"; CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; @@ -313,8 +473,11 @@ COPY_PHASE_STRIP = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_VERSION = com.apple.compilers.llvm.clang.1_0; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 5.0; ONLY_ACTIVE_ARCH = YES; @@ -327,6 +490,10 @@ 4ADCCBBC15790D760022990C /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Products", + ); GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "SocketTesterARC/SocketTesterARC-Prefix.pch"; INFOPLIST_FILE = "SocketTesterARC/SocketTesterARC-Info.plist"; @@ -343,6 +510,10 @@ 4ADCCBBD15790D760022990C /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Products", + ); GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "SocketTesterARC/SocketTesterARC-Prefix.pch"; INFOPLIST_FILE = "SocketTesterARC/SocketTesterARC-Info.plist"; @@ -356,6 +527,115 @@ }; name = Release; }; + 6463D35018DD1442006C6A78 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + COMBINE_HIDPI_IMAGES = YES; + DEAD_CODE_STRIPPING = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + GCC_ENABLE_OBJC_EXCEPTIONS = YES; + GCC_GENERATE_DEBUGGING_SYMBOLS = NO; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "SocketIO/SocketIO-Prefix.pch"; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_VERSION = ""; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + INFOPLIST_FILE = "SocketIO/SocketIO-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Bundles"; + IPHONEOS_DEPLOYMENT_TARGET = 5.0; + LINK_WITH_STANDARD_LIBRARIES = NO; + LLVM_LTO = NO; + MACH_O_TYPE = mh_object; + MACOSX_DEPLOYMENT_TARGET = 10.9; + ONLY_ACTIVE_ARCH = NO; + OTHER_LDFLAGS = ""; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = NO; + VALID_ARCHS = "$(ARCHS_STANDARD)"; + WRAPPER_EXTENSION = framework; + }; + name = Debug; + }; + 6463D35118DD1442006C6A78 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + COMBINE_HIDPI_IMAGES = YES; + DEAD_CODE_STRIPPING = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + GCC_ENABLE_OBJC_EXCEPTIONS = YES; + GCC_GENERATE_DEBUGGING_SYMBOLS = NO; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "SocketIO/SocketIO-Prefix.pch"; + GCC_VERSION = ""; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + INFOPLIST_FILE = "SocketIO/SocketIO-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Bundles"; + IPHONEOS_DEPLOYMENT_TARGET = 5.0; + LINK_WITH_STANDARD_LIBRARIES = NO; + LLVM_LTO = NO; + MACH_O_TYPE = mh_object; + MACOSX_DEPLOYMENT_TARGET = 10.9; + ONLY_ACTIVE_ARCH = NO; + OTHER_LDFLAGS = ""; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = NO; + VALID_ARCHS = "$(ARCHS_STANDARD)"; + WRAPPER_EXTENSION = framework; + }; + name = Release; + }; + 6463D36918DD1658006C6A78 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + GCC_VERSION = ""; + IPHONEOS_DEPLOYMENT_TARGET = 5.0; + ONLY_ACTIVE_ARCH = NO; + PRODUCT_NAME = "$(TARGET_NAME)"; + VALIDATE_PRODUCT = NO; + }; + name = Debug; + }; + 6463D36A18DD1658006C6A78 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + GCC_VERSION = ""; + IPHONEOS_DEPLOYMENT_TARGET = 5.0; + ONLY_ACTIVE_ARCH = NO; + PRODUCT_NAME = "$(TARGET_NAME)"; + VALIDATE_PRODUCT = NO; + }; + name = Release; + }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ @@ -377,6 +657,24 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; + 6463D35218DD1442006C6A78 /* Build configuration list for PBXNativeTarget "SocketIO" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6463D35018DD1442006C6A78 /* Debug */, + 6463D35118DD1442006C6A78 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 6463D36818DD1658006C6A78 /* Build configuration list for PBXAggregateTarget "SocketIOAggregate" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6463D36918DD1658006C6A78 /* Debug */, + 6463D36A18DD1658006C6A78 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; /* End XCConfigurationList section */ }; rootObject = 4ADCCB9415790D760022990C /* Project object */; diff --git a/SocketTesterARC/ViewController.m b/SocketTesterARC/ViewController.m index f99b6e0..4c2ff4b 100644 --- a/SocketTesterARC/ViewController.m +++ b/SocketTesterARC/ViewController.m @@ -38,7 +38,7 @@ - (void) viewDidLoad NSHTTPCookie *cookie = [NSHTTPCookie cookieWithProperties:properties]; NSArray *cookies = [NSArray arrayWithObjects:cookie, nil]; - socketIO.cookies = cookies; + socketIO.cookies = cookies; // connect to the socket.io server that is running locally at port 3000 [socketIO connectToHost:@"localhost" onPort:3000];