How do I solve this problem
NSSet<CWNetwork *> *networks = [interface scanForNetworksWithSSID:ssidStrData error:nil];
I want to get the ssid normally.
According to the description of the CoreWlan top post.
I also added the location permission.
It works fine in the main program, but the subroutine that plist runs with launchd in LaunchDaemon doesn't. Someone can help me
Post
Replies
Boosts
Views
Activity
BOOL isSuccess = [[CWWiFiClient sharedWiFiClient].interface associateToEnterpriseNetwork:network identity:target_identity username:nil password:nil error:&error];
if (isSuccess) {
NSLog(@"success");
}else {
NSLog(@"failure:%@",error);
}
To add, I use this API for authentication