• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CNCopySupportedInterfaces broken in iOS 9.2.1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CNCopySupportedInterfaces broken in iOS 9.2.1


  • Subject: Re: CNCopySupportedInterfaces broken in iOS 9.2.1
  • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Date: Wed, 20 Jan 2016 09:37:07 +0000

On 20 Jan 2016, at 02:30, Carl Hoefs <email@hidden> wrote:

> This will screw us up bigtime.

You really need to file a bug report about this.

<https://developer.apple.com/bug-reporting/>

By way of context, 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.  I tested it with a simple test app run from Xcode (code below).  Due to the nature of my job I always use production devices, iOS builds, OS X builds and Xcode builds; there's no Apple-specific magic going on here.

So clearly this is not a universal problem but something more nuanced than that.

Please post your bug number, just for the record.

Share and Enjoy
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

---------------------------------------------------------------------------
NSArray<NSString *> * interfaceList = CFBridgingRelease( CNCopySupportedInterfaces() );
if (interfaceList == nil) {
    NSLog(@"CNCopySupportedInterfaces returned nil");
} else if (interfaceList.count == 0) {
    NSLog(@"CNCopySupportedInterfaces returned []");
} else {
    for (NSString * interfaceName in interfaceList) {
        NSDictionary * interfaceInfo = CFBridgingRelease( CNCopyCurrentNetworkInfo( (__bridge CFStringRef) interfaceName) );
        if (interfaceInfo == nil) {
            NSLog(@"%@: CNCopyCurrentNetworkInfo returned nil", interfaceName);
        } else {
            NSLog(@"%@: CNCopyCurrentNetworkInfo returned %@", interfaceName, interfaceInfo);
        }
    }
}
---------------------------------------------------------------------------


 _______________________________________________
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


  • Follow-Ups:
    • Re: CNCopySupportedInterfaces broken in iOS 9.2.1
      • From: Carl Hoefs <email@hidden>
References: 
 >CNCopySupportedInterfaces broken in iOS 9.2.1 (From: Carl Hoefs <email@hidden>)
 >Re: CNCopySupportedInterfaces broken in iOS 9.2.1 (From: Rick Mann <email@hidden>)
 >Re: CNCopySupportedInterfaces broken in iOS 9.2.1 (From: Dieter Siegmund <email@hidden>)
 >Re: CNCopySupportedInterfaces broken in iOS 9.2.1 (From: Rick Mann <email@hidden>)
 >Re: CNCopySupportedInterfaces broken in iOS 9.2.1 (From: Carl Hoefs <email@hidden>)

  • Prev by Date: Re: Wifi handshake for Multipeer Connectivity to allow greater client separation?
  • Next by Date: Re: CNCopySupportedInterfaces broken in iOS 9.2.1
  • Previous by thread: Re: CNCopySupportedInterfaces broken in iOS 9.2.1
  • Next by thread: Re: CNCopySupportedInterfaces broken in iOS 9.2.1
  • Index(es):
    • Date
    • Thread