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.

본	15:45:00.201258+0900	SpringBoard	Generating initialization context on main thread for: com.thefirstapp
기본	15:45:00.203510+0900	backboardd	BaselineHarmony: Current strength: 0.270000, ALSStrength: 0.270000, AppStrength: 0.270000
기본	15:45:00.220299+0900	SpringBoard	Asked to bootstrap a new process with identity: app
기본	15:45:00.220393+0900	SpringBoard	Creating process (sync=true) with identity: app
기본	15:45:00.220540+0900	SpringBoard	Created :>>
기본	15:45:00.220592+0900	SpringBoard	Bootstrapping app with intent foreground-interactive
기본	15:45:00.220778+0900	SpringBoard	Changing icon manager content visibility to hidden
기본	15:45:00.221564+0900	runningboardd	Acquiring assertion targeting app from originator [osservice:10529] with description  attributes:[
	,
	
	]>
기본	15:45:00.221596+0900	runningboardd	Assertion 33-10529-432332 (target:app) will be created as active
기본	15:45:00.221829+0900	runningboardd	Executing launch request for app (FBApplicationProcess)
기본	15:45:00.221879+0900	runningboardd	Checking PreventLaunch: global:0 exPath:(null) predicates:(null) allow:(null)
기본	15:45:00.222351+0900	SpringBoard	Window(0xb054a4400)(SBTraitsParticipantRoleCoverSheet-0) validates resolution: NO. isHidden
기본	15:45:00.223090+0900	runningboardd	preflightManager for  -> ALLOWED
기본	15:45:00.223675+0900	backboardd	BaselineHarmony: Current strength: 0.270000, ALSStrength: 0.270000, AppStrength: 0.270000
기본	15:45:00.223850+0900	runningboardd	Creating and launching job for: app
기본	15:45:00.223949+0900	runningboardd	_mutateContextIfNeeded called for com.thefirstapp
기본	15:45:00.223978+0900	runningboardd	_mutateContextIfNeeded using proxy
기본	15:45:00.225303+0900	SpringBoard	Deactivating wallpaper orientation source ActiveOrientation
기본	15:45:00.225529+0900	SpringBoard	Window(0xb0604a000)(SBTraitsParticipantRoleControlCenter-0) validates resolution: NO. isHidden
기본	15:45:00.225581+0900	SpringBoard	Window(0xb054a4400)(SBTraitsParticipantRoleCoverSheet-0) validates resolution: NO. isHidden
기본	15:45:00.230739+0900	runningboardd	_mutateContextIfNeeded bundleType User SBMachServices (null)
기본	15:45:00.231070+0900	runningboardd	app: -[RBPersonaManager personaForIdentity:context:personaUID:personaUniqueString:] required 0.006080 ms (wallclock); resolved to {1000, AB530B85-38B3-443A-B19C-91A3364CDBBA}
기본	15:45:00.231100+0900	runningboardd	'app' Skipping container path lookup because containerization was prevented ()
기본	15:45:00.231128+0900	runningboardd	'app' Constructed job description:
 { count = 19, transaction: 0, voucher = 0x0, contents =
	"ProcessType" =>  { length = 3, contents = "App" }
	"EnableTransactions" => : false
	"_ManagedBy" =>  { length = 22, contents = "com.apple.runningboard" }
	"_ResourceCoalition" =>  { length = 72, contents = "app" }
	"CFBundleIdentifier" =>  { length = 29, contents = "com.thefirstapp" }
	"ThrottleInterval" => : 2147483647
	"PersonaEnterprise" => : 1000
	"MachServices" =>  { count = 0, transaction: 0, voucher = 0x0, contents =
	}
	"EnablePressuredExit" => : false
	"InitialTaskRole" => : 1
	"UserName" =>  { length = 6, contents = "mobile" }
	"EnvironmentVariables" =>  { count = 3, transaction: 0, voucher = 0x0, contents =
		"TMPDIR" =>  { length = 88, contents = "/private/var/mobile/Containers/Data/Application/7D1C7817-C96F-4F3E-85DB-393CC2C04ACB/tmp" }
		"HOME" =>  { length = 84, contents = "/private/var/mobile/Containers/Data/Application/7D1C7817-C96F-4F3E-85DB-393CC2C04ACB" }
		"CFFIXED_USER_HOME" =>  { length = 84, contents = "/private/var/mobile/Containers/Data/Application/7D1C7817-C96F-4F3E-85DB-393CC2C04ACB" }
	}
	"_AdditionalProperties" =>  { count = 1, transaction: 0, voucher = 0x0, contents =
		"RunningBoard" =>  { count = 3, transaction: 0, voucher = 0x0, contents =
			"Managed" => : true
			"RunningBoardLaunchedIdentity" =>  { count = 3, transaction: 0, voucher = 0x0, contents =
				"TYPE" => : 2
				"EAI" =>  { length = 29, contents = "com.thefirstapp" }
				"PERS" =>  { length = 36, contents = "AB530B85-38B3-443A-B19C-91A3364CDBBA" }
			}
			"RunningBoardLaunched" => : true
		}
	}
	"ExitTimeOut" => : 1
	"Label" =>  { length = 63, contents = "UIKitApplication:com.thefirstapp[fe64][rb-legacy]" }
	"MaterializeDatalessFiles" => : true
	"_LaunchType" => : 3
	"ProgramArguments" =>  { count = 1, capacity = 8, contents =
		0:  { length = 91, contents = "/var/containers/Bundle/Application/A610C822-AD24-4CEA-A4F1-58CE8E217A99/thefirstapp.app/thefirstapp" }
	}
	"Program" =>  { length = 91, contents = "/var/containers/Bundle/Application/A610C822-AD24-4CEA-A4F1-58CE8E217A99/thefirstapp.app/thefirstapp" }
}
기본	15:45:00.232604+0900	amfid	[0xcd403cd00] activating connection: mach=true listener=false peer=false name=com.apple.trustd
기본	15:45:00.232630+0900	SpringBoard	 Adding SwitcherScene overlay for: , animated: NO
기본	15:45:00.232898+0900	trustd	[0x6b499e800] activating connection: mach=false listener=false peer=true name=com.apple.trustd.peer[15421].0x6b499e800
기본	15:45:00.233144+0900	trustd	cert[0]: SubjectCommonName =(leaf)[]> 0
기본	15:45:00.233382+0900	trustd	cert[0]: LeafMarkerOid =(leaf)[force]> 0
오류	15:45:00.233795+0900	trustd	SecKeyVerifySignature failed: Error Domain=NSOSStatusErrorDomain Code=-50 "rsa_pub_crypt failed, ccerr=-7" UserInfo={numberOfErrorsDeep=0, NSDescription=rsa_pub_crypt failed, ccerr=-7}
기본	15:45:00.234687+0900	backboardd	BaselineHarmony: Current strength: 0.270000, ALSStrength: 0.270000, AppStrength: 0.270000
기본	15:45:00.235234+0900	securityd	trustd[8971]/1#16 LF=0 copy_parent_certificates Error Domain=NSOSStatusErrorDomain Code=-34018 "Client has neither application-identifier nor keychain-access-groups entitlements" UserInfo={numberOfErrorsDeep=0, NSDescription=Client has neither application-identifier nor keychain-access-groups entitlements}
기본	15:45:00.235352+0900	SpringBoard	Added: 
기본	15:45:00.235387+0900	securityd	trustd[8971]/1#16 LF=0 copy_parent_certificates Error Domain=NSOSStatusErrorDomain Code=-34018 "Client has neither application-identifier nor keychain-access-groups entitlements" UserInfo={numberOfErrorsDeep=0, NSDescription=Client has neither application-identifier nor keychain-access-groups entitlements}
기본	15:45:00.235420+0900	SpringBoard	Requested update preferences for  with reason: SBSystemApertureZStackPolicyAssistant
기본	15:45:00.235598+0900	SpringBoard	_updatePreferences : {
    activationPolicyForParticipantsBelow: AtMostBG;
    homeAffordanceDrawingSuppression: Default;
    associatedSceneIdentifiersToSuppressInSystemAperture: (
        sceneID:com.thefirstapp-default
    );
    associatedBundleIdentifiersToSuppressInSystemAperture: (
        com.thefirstapp
    );
    allowsDimmingWhenForegroundInactive: No;
}
기본	15:45:00.235656+0900	SpringBoard	Ignoring appearance update for CoverSheet because we have no view.
기본	15:45:00.235707+0900	trustd	cert[0]: IssuerCommonName =(path)[]> 0
기본	15:45:00.236118+0900	SpringBoard	Invalidating promoted elements with coversheet suppression NO liquid detection suppression NO proximity reader suppression NO system chrome suppression NO bundleIDs {(
    "com.thefirstapp"
)} sceneIds {(
    "sceneID:com.thefirstapp-default"
)}
기본	15:45:00.236145+0900	amfid	[0xcd403cd00] invalidated because the current process cancelled the connection by calling xpc_connection_cancel()
기본	15:45:00.236196+0900	amfid	Trust evaluate failure: [leaf IssuerCommonName LeafMarkerOid SubjectCommonName]
기본	15:45:00.236366+0900	SpringBoard	Resolved Stack (
    " ownsHomeGesture: YES; FGActive; participantBelowAllowsDimming: NO",
    " ownsHomeGesture: YES; FGActive; participantBelowAllowsDimming: NO",
    " ownsHomeGesture: YES; FGActive; participantBelowAllowsDimming: NO",
    " ownsHomeGesture: YES; FGActive; participantBelowAllowsDimming: NO",
    " ownsHomeGesture: YES; FGActive; participantBelowAllowsDimming: NO",
    " ownsHomeGesture: YES; FGActive; participantBelowAllowsDimming: NO",
    " ownsHomeGesture: YES; FGActive; participantBelowAllowsDimming: NO",
    " ownsHomeGesture: YES; FGActive; participantBelowAllowsDimming: NO",
    " FGActive to BG; participantBelowAllowsDimming: NO"
)
기본	15:45:00.236423+0900	SpringBoard	Requested update preferences for  with reason: layout state transition did begin
기본	15:45:00.236449+0900	SpringBoard	_updatePreferences : no changes
기본	15:45:00.236645+0900	SpringBoard	Resolved Stack (
    " ownsHomeGesture: YES; FGActive; participantBelowAllowsDimming: NO",
    " ownsHomeGesture: YES; FGActive; participantBelowAllowsDimming: NO",
    " ownsHomeGesture: YES; FGActive; participantBelowAllowsDimming: NO",
    " ownsHomeGesture: YES; FGActive; participantBelowAllowsDimming: NO",
    " ownsHomeGesture: YES; FGActive; participantBelowAllowsDimming: NO",
    " ownsHomeGesture: YES; FGActive; participantBelowAllowsDimming: NO",
    " ownsHomeGesture: YES; FGActive; participantBelowAllowsDimming: NO",
    " ownsHomeGesture: YES; FGActive; participantBelowAllowsDimming: NO",
    " BG; participantBelowAllowsDimming: NO"
)
기본	15:45:00.237365+0900	SpringBoard	[DeviceSceneHandle] Did set interfaceOrientation[1] on scene with identifier[]
기본	15:45:00.237479+0900	SpringBoard	modifying scene setting userInterfaceStyle to Light displayIdentity: Main forSceneManagers: Main 
기본	15:45:00.237555+0900	SpringBoard	modifying scene setting underAppProtection to 0
기본	15:45:00.238399+0900	SpringBoard	No capture application found for the , launchCameraCapture: NO, isCaptureApplication: NO
기본	15:45:00.238425+0900	amfid	elided platform fast path for key: re6Zb+zwFKJNlkQTUeT+/w
기본	15:45:00.238451+0900	amfid	Authoritative
기본	15:45:00.238559+0900	amfid	[0xcd403cd00] activating connection: mach=true listener=false peer=false name=com.apple.misagent
기본	15:45:00.238842+0900	misagent	[0x4b211c000] activating connection: mach=false listener=false peer=true name=com.apple.misagent.peer[15421].0x4b211c000
기본	15:45:00.240684+0900	SpringBoard	[ShouldAutoPiP] For request(0x302dbb700): NO
기본	15:45:00.240758+0900	amfid	Keep going 
기본	15:45:00.240811+0900	backboardd	Setting minimum brightness level: 0.000000 with fade duration 0.400000
기본	15:45:00.240834+0900	backboardd	Set BrightnessSystem property:DisplayBrightnessFadePeriod to:0.4
기본	15:45:00.241460+0900	backboardd	Set BrightnessSystem property:BrightnessMinPhysicalWithFade to:0
기본	15:45:00.241780+0900	backboardd	soft cancel on display:<main>
기본	15:45:00.241981+0900	amfid	[0xcd403cd00] invalidated because the current process cancelled the connection by calling xpc_connection_cancel()
기본	15:45:00.242110+0900	backboardd	 342869.45749: notify client com.apple.siri.AttentionAwareness.Touch of  (timestamp:  342869.45738 attentionLostTimeout       0.10000 tagIndex 0 (tag not present in server))
기본	15:45:00.242588+0900	amfid	 was picked for validation
기본	15:45:00.242841+0900	amfid	[0xcd403cd00] activating connection: mach=true listener=false peer=false name=com.apple.misagent
기본	15:45:00.242947+0900	misagent	[0x4b211c140] activating connection: mach=false listener=false peer=true name=com.apple.misagent.peer[15421].0x4b211c140
기본	15:45:00.243216+0900	amfid	[0xcd403cd00] invalidated because the current process cancelled the connection by calling xpc_connection_cancel()
기본	15:45:00.243400+0900	misagent	[0x4b211c000] invalidated because the client process (pid 15421) either cancelled the connection or exited
기본	15:45:00.244590+0900	misagent	[0x4b211c140] invalidated because the client process (pid 15421) either cancelled the connection or exited
기본	15:45:00.244959+0900	cameracaptured	<<<< FigCaptureDisplayLayoutMonitor >>>> -[FigCaptureDisplayLayoutMonitor _parseFBSDisplayLayout:]:   {    bounds = {{0, 0}, {393, 852}};    interfaceOrientation = "portrait (1)";    backlightLevel = 100;    backlightState = 2;    elements = {        ;    }    timestamp = February 27, 2025 at 3:45:00 PM GMT+9;}
기본	15:45:00.245305+0900	cameracaptured	<<<< FigCaptureDisplayLayoutMonitor >>>> -[FigCaptureDisplayLayoutMonitor _updateObserversWithLayout:]:  
기본	15:45:00.245429+0900	SpringBoard	[Main (EmbeddedDisplay)] dispatch event:
; fromEnvironmentMode: home-screen; toEnvironmentMode: application; fromSpaceConfiguration: undefined; toSpaceConfiguration: full; pendingTermination: {(
)}; activating: ; morphingPIPLayoutRole: undefined>
기본	15:45:00.245471+0900	SpringBoard	[Main (EmbeddedDisplay)] handle response:
 {
     {
	    ;
	    ;
	};
     {
	    ;
	    ;
	    >;
	    >;
	     -> 
기본	15:45:00.245809+0900	kernel	AMFI: acquired profile with UUID: 471d257f-687b-434e-8d9f-d1ca6a20396e
기본	15:45:00.245824+0900	kernel	AMFI: device allowed
기본	15:45:00.245834+0900	kernel	AMFI: profile has successfully validated all entitlements
기본	15:45:00.245843+0900	kernel	AMFI: profile validated the code signature
기본	15:45:00.245873+0900	runningboardd	: submitAndStart completed, info=spawn failed, error=85: Bad executable (or shared library)
오류	15:45:00.245903+0900	runningboardd	: job failed to spawn, plist={
	ProcessType => App
	EnableTransactions => false
	_ManagedBy => com.apple.runningboard
	_ResourceCoalition => app
	CFBundleIdentifier => com.thefirstapp
	ThrottleInterval => 2147483647
	PersonaEnterprise => 1000
	MachServices => {
	}
	EnablePressuredExit => false
	InitialTaskRole => 1
	UserName => mobile
	EnvironmentVariables => {
		TMPDIR => /private/var/mobile/Containers/Data/Application/7D1C7817-C96F-4F3E-85DB-393CC2C04ACB/tmp
		HOME => /private/var/mobile/Containers/Data/Application/7D1C7817-C96F-4F3E-85DB-393CC2C04ACB
		CFFIXED_USER_HOME => /private/var/mobile/Containers/Data/Application/7D1C7817-C96F-4F3E-85DB-393CC2C04ACB
	}
	_AdditionalProperties => {
		RunningBoard => {
			Managed => true
			RunningBoardLaunchedIdentity => {
				TYPE => 2
				EAI => com.thefirstapp
				PERS => AB530B85-38B3-443A-B19C-91A3364CDBBA
			}
			Running<…>
오류	15:45:00.245996+0900	runningboardd	Process start failed with Error Domain=NSPOSIXErrorDomain Code=85 "Bad executable (or shared library)" UserInfo={NSLocalizedDescription=Launchd job spawn failed}
기본	15:45:00.246049+0900	runningboardd	: remove succeeded
기본	15:45:00.246309+0900	kernel	TXM [Error]: CodeSignature: selector: 17 | 0x22 | 0x3B | 2
기본	15:45:00.246324+0900	kernel	AMFI: XNU monitor refused profile: 1
기본	15:45:00.246335+0900	kernel	TXM [Error]: CodeSignature: selector: 23 | 0xA6 | 0x12 | 1
오류	15:45:00.246366+0900	runningboardd	Launch failed with Error Domain=NSPOSIXErrorDomain Code=85 "Bad executable (or shared library)" UserInfo={NSLocalizedDescription=Launchd job spawn failed}
기본	15:45:00.246391+0900	runningboardd	Invalidating assertion 33-10529-432332 (target:app) from originator [osservice:10529]
기본	15:45:00.246589+0900	cameracaptured	<<<< FigCaptureClientApplicationStateMonitor >>>> -[FigCaptureClientApplicationStateMonitor _handleLayout:]:  Looking for com.iwilab.KakaoTalk in the Main Display layout
기본	15:45:00.246614+0900	cameracaptured	<<<< FigCaptureClientApplicationStateMonitor >>>> -[FigCaptureClientApplicationStateMonitor _updateClientStateCondition:newValue:]: <0xaeb1cee80[10150][com.iwilab.KakaoTalk]> Updating client state condition "_layoutState" with new value "Other Apps"
기본	15:45:00.246639+0900	cameracaptured	<<<< FigCaptureClientApplicationStateMonitor >>>> -[FigCaptureClientApplicationStateMonitor _handleLayout:]:  Looking for com.apple.camera in the Main Display layout
기본	15:45:00.246663+0900	cameracaptured	<<<< FigCaptureClientApplicationStateMonitor >>>> -[FigCaptureClientApplicationStateMonitor _updateClientStateCondition:newValue:]: <0xaed8a12c0[15726][com.apple.camera]> Updating client state condition "_layoutState" with new value "Other Apps"
기본	15:45:00.246691+0900	sharingd	on lock screen: 
기본	15:45:00.246716+0900	sharingd	System UI Changed 0x0 < >, CanTrigger yes
기본	15:45:00.246903+0900	runningboardd	Full encoding handle , with data 0, and pid -1
오류	15:45:00.247047+0900	SpringBoard	Bootstrapping failed for :> with error:  {
    NSUnderlyingError =  {
        NSLocalizedDescription = Launchd job spawn failed;
    };
}
기본	15:45:00.247085+0900	SpringBoard	[app:-1] Now flagged as pending exit for reason: Bootstrap failed
기본	15:45:00.247116+0900	SpringBoard	[app:-1] Connection to remote process was not established.
기본	15:45:00.247140+0900	SpringBoard	Adding: :>
기본	15:45:00.247566+0900	backboardd	Received state update for -1 (app, none-Visible
기본	15:45:00.247592+0900	CommCenter	Received state update for -1 (app, none-Visible
기본	15:45:00.247642+0900	SpringBoard	Received state update for -1 (app, none-Visible</main>

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

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