NEHotspotHelper causes Xcode to crash

I have been granted permission to use NEHotspotHelper and have generated a new provisioning profile with the HotspotHelper entitlement.

I have manually installed the provisioning profile into my project and added the following to my entitlements file:

Code Block
<dict>
<key>com.apple.developer.networking.HotspotHelper</key>
<true/>
</dict>


I have made sure that my device is added to the provisioning profile and when I build to the device (or archive) then Xcode crashes.

This crash has happened with Xcode 12.0.1, Xcode 12.1, Xcode 12.2 and Xcode 12.3

I have tried the usual tricks:
  • Cleaned the build folder

  • Deleted derived data

  • Deleted xcuserdata

  • Tried with a new (clean) project

  • tried on a different Mac

I get the following crash log from Xcode:




Any suggestions on where I go next, I can build apps with Xcode automatically managed profiles or any other imported profile but as soon as I add NEHotspotHelper it crashes.
Please make sure that the the entitlement for:

Code Block
<key>com.apple.developer.networking.HotspotHelper</key>
<true/>

Is also in your provisioning profile as this will make your app crash if these special entitlements do not match up.
Evidence of this also shows up here in your backtrace, so please make sure this entitlement is added to your profile:
Code Block
Backtrace:
0 exceptionPreprocess (in CoreFoundation)
1 DVTFailureHintExceptionPreprocessor (in DVTFoundation)
2 objc_exception_throw (in libobjc.A.dylib)
3 -[NSObject(NSObject) retain_OA] (in CoreFoundation)
4 _forwarding_ (in CoreFoundation)
5 _CF_forwarding_prep_0 (in CoreFoundation)
6 -[IDEEntitlementsMerger entitlementsByMergingProfileEntitlements:appEntitlements:bundleIdentifier:appName:profileName:warnings:error:] (in IDEFoundation)
7 -[IDEProvisionableStatusEvaluation mergedEntitlementsWithWarnings:error:] (in IDEFoundation)
8 +[IDEProvisioningCommandInputs inputsFromEvaluation:teamAccountPairManager:] (in IDEFoundation)
9 +[IDEProvisioningCommandInputs inputsFromEvaluation:] (in IDEFoundation)
10 -[IDEProvisionableStatusEvaluation provisioningCommandInputs] (in IDEFoundation)
11 102-[IDEProvisioningManager evaluateProvisioningForProvisionable:overrides:destinationRequirement:isXBS:]_block_invoke_2.372 (in IDEFoundation)
12 136-[IDEProvisionableManager immediatelyEvaluateWithOverrides:destinationRequirement:shouldRepairIfNecessary:isXBS:callbackQueue:callback:]_block_invoke.366 (in IDEFoundation)



Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
NEHotspotHelper causes Xcode to crash
 
 
Q