Re: CNCopySupportedInterfaces broken in iOS 9.2.1
Re: CNCopySupportedInterfaces broken in iOS 9.2.1
- Subject: Re: CNCopySupportedInterfaces broken in iOS 9.2.1
- From: Carl Hoefs <email@hidden>
- Date: Wed, 20 Jan 2016 13:18:31 -0800
On 29 Jan 2016, at 09:37, Quinn \"The Eskimo!\" wrote:
> I just updated two of my victim devices (an iPad mini 2 and an iPhone 5C) to iOS 9.2.1 and CNCopySupportedInterfaces is working just fine on both of them.
Ah yes, but you did not try it on an iPod Touch 5th gen A1421!
Seriously, your code works on iPads and iPhones running iOS 9.2.1, but not iPod Touchs. On all of our iPod Touch 5th gens (A1421), CNCopySupportedInterfaces() returns nil.
In the debugger, the CNCopySupportedInterfaces() call jumps to NSObject.h:
NS_INLINE id __nullable CFBridgingRelease(CFTypeRef CF_CONSUMED __nullable X) {
return (__bridge_transfer id)X;
}
On an iPhone 5S, X is a valid object:
> X __NSCFArray * @"1 object" 0x000000015ee49ca0
> [0] NSTaggedPointerString * @"en0" 0xa00000000306e653
> NSString NSString
> NSObject NSObject
> isa Class 0x0
But on an iOS 9.2.1 iPod Touch 5th gen, X is nil:
> X CFTypeRef 0x0 0x00000000
Same wifi network environment for both.
How is this even possible?
-Carl
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden