Thanks for the read.
Yesterday morning all was well, but around noon I started getting the following errors:
Undefined symbol: OBJC_CLASS$_NEHotspotConfiguration
Undefined symbol: OBJC_CLASS$_NEHotspotConfigurationManager
As you can see in the screenshot at the bottom my app has the "Hotspot Configuration" entitlement. I have confirmed that the entitlement is also present in my app's entitlement file with the value "YES".
However, the "undefined symbol" errors won't go away. I've tried cleaning, rebuilding, reinstalling Xcode, rebooting the iMac, and adding every available capability to my app's entitlements. As I said, this was building fine yesterday, and I didn't modify any of my code interacting with NEHotspotConfiguration. I working in Objective C.
The following code is sufficient to trigger the Undefined symbol: _OBJC_CLASS_$_NEHotspotConfigurationManager error:
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <NetworkExtension/NetworkExtension.h>
#import <SystemConfiguration/CaptiveNetwork.h>
void IosUtility::disconnectFromDashcamWifi( const QString& ssid ) {
NSLog( @"disconnectFromDashcamWifi enter" );
[[NEHotspotConfigurationManager sharedManager] removeConfigurationForSSID:ssid.toNSString()];
NSLog( @"disconnectFromDashcamWifi exit" );
}
Do you have any ideas for how to get things back on the rails?
2
0
1.2k