app crashes, but it works normally when another app is installed through MDM.

We install two in-house apps. The first app is installed using the standard in-house method, while the second app is installed via MDM commands. Both apps share the same Team ID and use Keychain sharing to exchange data.

However, when the MDM profile is deleted and the second app is removed, the first app intermittently encounters issues and does not function properly.

However, when the MDM mobileconfig is reinstalled and the second app is installed again, the first app that was not functioning starts working properly.

We have thoroughly reviewed the logs but have not been able to find a solution.

Your assistance would be greatly appreciated.

We have extracted and attached the device logs that were generated during the error occurrence.

Answered by DTS Engineer in 836138022

We believe this is addressed in iOS 18.5 beta 3. Here is the release note:

Security

Resolved Issues

Fixed: Some enterprise apps might not launch. If you experienced this issue on iOS 18 or later, uninstall all enterprise apps from the device and reinstall them.

If you test on iOS 18.5 beta 3, and still find that your apps can’t launch after following those instructions, please file a bug report with a sysdiagnose attached. Once the report is filed, please post the FB number here so that I can follow-up on it.

— Ed Ford,  DTS Engineer

There are some key signs in your log that this is related to an issue that I've been looking in to. Can you collect a sysdiagnose, and attach that to a bug report? Please also mention the Team IDs and bundle for each app failing to launch — I see a bundle ID in the log above, but I would like you to list all of the affected apps.

Once you have that report filed, please post the FB number here so I can take a look.

— Ed Ford,  DTS Engineer

Accepted Answer

We believe this is addressed in iOS 18.5 beta 3. Here is the release note:

Security

Resolved Issues

Fixed: Some enterprise apps might not launch. If you experienced this issue on iOS 18 or later, uninstall all enterprise apps from the device and reinstall them.

If you test on iOS 18.5 beta 3, and still find that your apps can’t launch after following those instructions, please file a bug report with a sysdiagnose attached. Once the report is filed, please post the FB number here so that I can follow-up on it.

— Ed Ford,  DTS Engineer

@infosec said:

app has crashed again. Please check FB17664364

I did, here's an extract from the crash report in the sysdiagnose you attached to that report, slightly edited for clarity and privacy:

Exception Type:  EXC_CRASH (SIGABRT)
...
code signature invalid in [Removed]/YourApp.app/Frameworks/AFNetworking.framework/AFNetworking' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x0006A780, codeBlobSize=0x00005580

This framework is signed wrong, so this is something that you can address by ensuring that the app and all of its framework follow the standard code-signing practices.

— Ed Ford,  DTS Engineer

app crashes, but it works normally when another app is installed through MDM.
 
 
Q