OS Logging says developer mode is disabled but its enabled

I'm trying to diagnose an issue with a Message Filtering Extension not working.

The associated domain for the server is not currently publicly hosted, so the associated domains specified for the app are postpended with ?mode=developer

On application installation I filtered OS logging by the swcd process and saw this logged:

debug	08:40:01.125071-0800	swcd	Skipping domain vz….qa….cl….ce….com?mode=developer because developer mode is disabled

But developer mode IS enabled on the phone (Settings/Privacy & Security/Developer Mode is set to On).

Therefore why is swcd saying developer mode is disabled?

Is the developer mode mentioned in the documentation not actually the Developer Mode in the iPhone's setting but something else? That wouldn't appear to be the case because the documentation explicitly states

"Specifies that only devices in developer mode can access the domain."

Full Documentation: https://developer.apple.com/documentation/BundleResources/Entitlements/com.apple.developer.associated-domains

If you use a private web server, which is unreachable from the public internet, while developing your app, enable the alternate mode feature to bypass the CDN and connect directly to your server. To do this, add a query string to your associated domains entitlement, as shown in the following example:

<service>:<fully qualified domain>?mode=<alternate mode>

developer

Specifies that only devices in developer mode can access the domain.

So I've:

  • turned developer mode on for the device
  • have added ?mode=developer to the domain
  • am building/running using a developer certificate.

But why does swcd log that developer mode is disabled?

Answered by mungbeans in 821666022

So I discovered that in order to stop the OS saying developer mode was disabled, I had to go into the iPhone developer settings and switch on Associated Domains Development. Having to do this is an extra step that is not documented anywhere.

However unfortunately it doesn't solve my larger issue, which is getting Network URL Unauthorized in the message filter extension when deferring the request to the server.

So I discovered that in order to stop the OS saying developer mode was disabled, I had to go into the iPhone developer settings and switch on Associated Domains Development. Having to do this is an extra step that is not documented anywhere.

However unfortunately it doesn't solve my larger issue, which is getting Network URL Unauthorized in the message filter extension when deferring the request to the server.

To answer your direct question, the concept of developer mode is a matter of perspective. Developer Mode, capitalised, in something that you enable to do any development, as explained in Enabling Developer Mode on a device. However, each subsystem may or may not have specific features that are enabled by developers in different ways. You can see some of these in Settings > Developer, but there are various other ways to enable them: API calls, debug profiles, and so on. From the perspective of the person writing the framework code, and hence those log messages, these are the ‘real’ developer mode.

I discovered that in order to stop the OS saying developer mode was disabled

Cool.

If you think that the logging was misleading, I recommend that you file a bug about that. Please post your bug number, just for the record.

However unfortunately it doesn't solve my larger issue

Now that’s something I can’t help you with )-:

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

OS Logging says developer mode is disabled but its enabled
 
 
Q