Skip to content

Instantly share code, notes, and snippets.

@neonichu
Created May 15, 2015 16:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neonichu/f8740ee386f54259949e to your computer and use it in GitHub Desktop.
Save neonichu/f8740ee386f54259949e to your computer and use it in GitHub Desktop.
Mentions of `wireless` in the Xcode 6.3.1 runtime headers
$ grep -ri wireless *
DTDeviceKitBase/DTDKRemoteDeviceConnection.h: _Bool _wireless;
DTDeviceKitBase/DTDKRemoteDeviceConnection.h:@property(readonly, getter=isWireless) _Bool wireless; // @synthesize wireless=_wireless;
DTDeviceKitBase/DTDKRemoteDeviceToken.h: DTDKRemoteDeviceConnection *_primaryWirelessConection;
DTDeviceKitBase/DTDKRemoteDeviceToken.h:+ (id)keyPathsForValuesAffectingHasWirelessConnection;
DTDeviceKitBase/DTDKRemoteDeviceToken.h:@property(retain, nonatomic) DTDKRemoteDeviceConnection *primaryWirelessConection; // @synthesize primaryWirelessConection=_primaryWirelessConection;
DTDeviceKitBase/DTDKRemoteDeviceToken.h:- (id)takeWirelessPowerAssertionWithName:(id)arg1 deatils:(id)arg2 andTimeout:(double)arg3;
DTDeviceKitBase/DTDKRemoteDeviceToken.h:- (id)wirelessInstrumentsServer;
DTDeviceKitBase/DTDKRemoteDeviceToken.h:- (void)disableWireless;
DTDeviceKitBase/DTDKRemoteDeviceToken.h:- (id)enableWireless;
DTDeviceKitBase/DTDKRemoteDeviceToken.h:- (_Bool)isWirelessEnabled;
DTDeviceKitBase/DTDKRemoteDeviceToken.h:@property(readonly, nonatomic) _Bool hasWirelessConnection;
DVTFoundation/DVTDevice.h:@property(readonly) _Bool canEnableWireless;
DVTFoundation/DVTDevice.h:- (void)disableWireless;
DVTFoundation/DVTDevice.h:- (id)enableWireless;
DVTFoundation/DVTDevice.h:@property(readonly) _Bool isWirelessEnabled;
DVTFoundation/DVTDevice.h:@property(readonly) _Bool hasWirelessConnection;
DVTFoundation/DVTDevice.h:@property(readonly) _Bool isWireless;
DVTKit/DVTDevice-DVTDevicesWindowAdditions.h:@property(readonly) _Bool isWireless;
DVTKit/DVTDevicesWindowController.h: NSMutableDictionary *_wirelessEnablingFutures;
DVTKit/DVTDevicesWindowController.h: NSMenuItem *_enableWirelessMenuItem;
DVTKit/DVTDevicesWindowController.h:@property(retain) NSMenuItem *enableWirelessMenuItem; // @synthesize enableWirelessMenuItem=_enableWirelessMenuItem;
DVTKit/DVTDevicesWindowController.h:- (void)toggleEnableWireless:(id)arg1;
DVTKit/NSArray-DVTDevicesWindowAdditions.h:- (id)dvt_firstNonWirelessDeviceObject;
IDEFoundation/IDERunDestinationSelectable.h: BOOL _targetDeviceIsWireless;
IDEFoundation/IDERunDestinationSelectable.h:@property(readonly, nonatomic) BOOL targetDeviceIsWireless; // @synthesize targetDeviceIsWireless=_targetDeviceIsWireless;
IDEFoundation/IDERunDestinationSelectable.h:- (id)initWithTargetDeviceLocation:(id)arg1 targetDeviceFamily:(id)arg2 targetDeviceModelCode:(id)arg3 targetDeviceIsConcrete:(BOOL)arg4 targetDeviceIsWireless:(BOOL)arg5 targetSDK:(id)arg6 targetArchitecture:(id)arg7 isEligible:(BOOL)arg8 isResizable:(BOOL)arg9;
IDEiOSSupportCore/DVTAbstractiOSDevice.h:- (_Bool)isWireless;
IDEiOSSupportCore/DVTiOSDevice.h:+ (id)keyPathsForValuesAffectingIsWirelessEnabled;
IDEiOSSupportCore/DVTiOSDevice.h:+ (id)keyPathsForValuesAffectingHasWirelessConnection;
IDEiOSSupportCore/DVTiOSDevice.h:+ (id)keyPathsForValuesAffectingIsWireless;
IDEiOSSupportCore/DVTiOSDevice.h:- (id)monitorWirelessConnection;
IDEiOSSupportCore/DVTiOSDevice.h:- (_Bool)canEnableWireless;
IDEiOSSupportCore/DVTiOSDevice.h:- (void)disableWireless;
IDEiOSSupportCore/DVTiOSDevice.h:- (id)enableWireless;
IDEiOSSupportCore/DVTiOSDevice.h:- (_Bool)isWirelessEnabled;
IDEiOSSupportCore/DVTiOSDevice.h:- (_Bool)hasWirelessConnection;
IDEiOSSupportCore/DVTiOSDevice.h:- (_Bool)isWireless;
@neonichu
Copy link
Author

This is as far as I could get enabling wireless connections right now:

2015-05-15 20:04:54.580 Xcode[26898:3425771] 0
2015-05-15 20:04:54.580 Xcode[26898:3425771] (
    <1c1ef27e 00000000 fe800000 00000000 18834599 cdb44665 04000000>,
    <1002f27e 0a00011f 00000000 00000000>
)
2015-05-15 20:04:54.580 Xcode[26898:3425771] Boris-Buglings-iPod.local.
2015-05-15 20:05:11.751 Xcode[26898:3425889] <DVTFuture 0x600000358470 Failed>
    Progress:    Initial
    Result:      (null)
    Error:       Error Domain=com.apple.dtdevicekit Code=-402653173 "Xcode encountered an error" UserInfo=0x6000004fdf80 {NSLocalizedFailureReason=Not connected to the device., com.apple.dtdevicekit.stacktrace=(
    0   DTDeviceKitBase                     0x000000010c7fbcd7 DTDKCreateNSError + 112
    1   DTDeviceKitBase                     0x000000010c7fc3fb DTDK_AMDErrorToNSError + 774
    2   DTDeviceKitBase                     0x000000010c83050c __39-[DTDKRemoteDeviceToken enableWireless]_block_invoke_4 + 277
    3   libdispatch.dylib                   0x0000000102045d43 _dispatch_client_callout + 8
    4   libdispatch.dylib                   0x0000000102053054 _dispatch_source_latch_and_call + 1239
    5   libdispatch.dylib                   0x000000010204a348 _dispatch_source_invoke + 425
    6   libdispatch.dylib                   0x0000000102049c91 _dispatch_queue_drain + 1002
    7   libdispatch.dylib                   0x000000010204bfc0 _dispatch_queue_invoke + 223
    8   libdispatch.dylib                   0x0000000102048f5e _dispatch_root_queue_drain + 666
    9   libdispatch.dylib                   0x000000010205acd0 _dispatch_worker_thread3 + 106
    10  libsystem_pthread.dylib             0x00007fff8821f637 _pthread_wqthread + 729
    11  libsystem_pthread.dylib             0x00007fff8821d40d start_wqthread + 13
), NSLocalizedRecoverySuggestion=Not connected to the device., NSLocalizedDescription=Xcode encountered an error}
    Started at:    0  0x00000001001879d8 -[DVTFuture init] (in DVTFoundation)
  1  0x0000000100187a56 -[DVTFuture initWithBlock:] (in DVTFoundation)
  2  0x00000001001873b9 +[DVTFuture futureWithBlock:] (in DVTFoundation)
  3  0x000000010c82ff68 -[DTDKRemoteDeviceToken enableWireless] (in DTDeviceKitBase)
  4  0x0000000112081331 -[DVTiOSDevice enableWireless] (in IDEiOSSupportCore)
  5  0x000000010ceb7316 __24-[Cable initWithBundle:]_block_invoke_4 at /Users/boris/Desktop/Cable/Cable/Cable.m:97 (in Cable)
  6  0x000000010204b2bb _dispatch_call_block_and_release (in libdispatch.dylib)
  7  0x0000000102045d43 _dispatch_client_callout (in libdispatch.dylib)
  8  0x0000000102049283 _dispatch_root_queue_drain (in libdispatch.dylib)
  9  0x000000010205acd0 _dispatch_worker_thread3 (in libdispatch.dylib)
 10  0x00007fff8821f637 _pthread_wqthread (in libsystem_pthread.dylib)
 11  0x00007fff8821d40d start_wqthread (in libsystem_pthread.dylib)

    Finished at:   0  0x000000010018a05b -[DVTFuture _internalSetState:result:error:] (in DVTFoundation)
  1  0x000000010018cccf ___Z39DVTDispatchLockPerformLockedWriterBlockIU8__strongU13block_pointerFU13block_pointerFvvEvEEDTclfp0_EEP15DVTDispatchLockT__block_invoke (in DVTFoundation)
  2  0x0000000102045d43 _dispatch_client_callout (in libdispatch.dylib)
  3  0x00000001020470b1 _dispatch_barrier_sync_f_invoke (in libdispatch.dylib)
  4  0x000000010021a94d DVTDispatchBarrierSync (in DVTFoundation)
  5  0x0000000100015c84 -[DVTDispatchLock performLockedBlock:] (in DVTFoundation)
  6  0x000000010018d408 decltype(fp0()) DVTDispatchLockPerformLockedWriterBlock<void () block_pointer () block_pointer __strong>(DVTDispatchLock*, void () block_pointer () block_pointer __strong) (in DVTFoundation)
  7  0x000000010018aa7f -[DVTFuture setState:result:error:] (in DVTFoundation)
  8  0x000000010018abd3 -[DVTFuture failWithError:] (in DVTFoundation)
  9  0x000000010c83052a __39-[DTDKRemoteDeviceToken enableWireless]_block_invoke_4 (in DTDeviceKitBase)
 10  0x0000000102045d43 _dispatch_client_callout (in libdispatch.dylib)
 11  0x0000000102053054 _dispatch_source_latch_and_call (in libdispatch.dylib)
 12  0x000000010204a348 _dispatch_source_invoke (in libdispatch.dylib)
 13  0x0000000102049c91 _dispatch_queue_drain (in libdispatch.dylib)
 14  0x000000010204bfc0 _dispatch_queue_invoke (in libdispatch.dylib)
 15  0x0000000102048f5e _dispatch_root_queue_drain (in libdispatch.dylib)
 16  0x000000010205acd0 _dispatch_worker_thread3 (in libdispatch.dylib)
 17  0x00007fff8821f637 _pthread_wqthread (in libsystem_pthread.dylib)
 18  0x00007fff8821d40d start_wqthread (in libsystem_pthread.dylib)

@czechboy0
Copy link

What was the input?

@gastonmorixe
Copy link

same. I reached at the same place with xCode 7 beta 3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment