问题解析:
iOS对接完CP游戏渠道SDK后,然后打开游戏闪退crash,抓包日志报错如下:
error 13:45:10.855026 -0400 symptomsd Can't get most elevated app state from dictionary {
BKSApplicationStateExtensionKey = 0;
SBApplicationStateDisplayIDKey = "com.capitalone.Jupiter";
SBApplicationStateKey = 0;
SBApplicationStateProcessIDKey = 991;
SBApplicationStateRunningReasonsKey = (
{
SBApplicationStateRunningReasonAssertionIdentifierKey = Resume;
SBApplicationStateRunningReasonAssertionReasonKey = 10000;
},
{
SBApplicationStateRunningReasonAssertionIdentifierKey = UIApplicationLaunch;
SBApplicationStateRunningReasonAssertionReasonKey = 10000;
}
);
}
完整的日志或者有下面的
default 13:45:10.348434 -0400 SpringBoard Bootstrapping com.My.Bundle.Id with intent foreground-interactive
default 13:45:10.348590 -0400 assertiond Submitting new job for "com.My.Bundle.Id" on behalf of <BKProcess: 0x101c03a60; SpringBoard; com.apple.springboard; pid: 52; agency: SystemShell; visibility: foreground; task: running>
default 13:45:10.349683 -0400 assertiond Submitted job with label: UIKitApplication:com.My.Bundle.Id[0xe595][62]
default 13:45:10.382109 -0400 SpringBoard [com.My.Bundle.Id] Bootstrap complete with label: UIKitApplication:com.My.Bundle.Id[0xe595][62]
default 13:45:10.382495 -0400 SpringBoard Adding: <FBApplicationProcess: 0x146b73c10; Jupiter (com.My.Bundle.Id); pid: 991>
default 13:45:10.384602 -0400 assertiond Now tracking process <BKProcess: 0x101b07760; Jupiter; com.My.Bundle.Id; pid: 991; agency: Application; visibility: none; task: running; hostpid: 52> with host <BKProcess: 0x101c03a60; SpringBoard; com.apple.springboard; pid: 52; agency: SystemShell; visibility: foreground; task: running>
default 13:45:10.396434 -0400 mediaserverd -CMSessionMgr- CMSessionMgrHandleApplicationStateChange: CMSession: Client com.My.Bundle.Id with pid '991' is now Foreground Running. Background entitlement: NO
default 13:45:10.401556 -0400 SpringBoard [com.My.Bundle.Id] Setting deactivation reasons to: 'systemAnimation' for reason: scene settings update - settings are eligible for deactivation reasons.
default 13:45:10.415638 -0400 SpringBoard Application process state changed for com.My.Bundle.Id: <SBApplicationProcessState: 0x28130de40; pid: 991; taskState: Running; visibility: Unknown>
default 13:45:10.433713 -0400 SpringBoard WIFI PICKER [com.My.Bundle.Id]: isProcessLaunch: 1, isForegroundActivation: 1, isForegroundDeactivation: 0
default 13:45:10.434940 -0400 symptomsd 991 com.My.Bundle.Id: ForegroundRunning (most elevated: ForegroundRunning)
default 13:45:10.435072 -0400 symptomsd Entry, display name com.My.Bundle.Id uuid 5DF98506-8B88-381F-8E79-82FB0DA768FC pid 991 isFront 1
default 13:45:10.435420 -0400 symptomsd Continue with bundle name com.My.Bundle.Id, is front 1
default 13:45:10.435464 -0400 symptomsd com.My.Bundle.Id: Foreground: true
default 13:45:10.435746 -0400 symptomsd Failed to find process for com.My.Bundle.Id
default 13:45:10.641383 -0400 SpringBoard [com.My.Bundle.Id] Setting deactivation reasons to: '(none)' for reason: updateAllScenesForBand - Assertion removed.
default 13:45:10.775095 -0400 backboardd Connection added: IOHIDEventSystemConnection uuid:960FB53D-5C0A-47D5-8260-BB2E2A63D61B pid:991 process:Jupiter type:Passive entitlements:0x0 caller:BackBoardServices: <redacted> + 368 attributes:<CFBasicHash 0x10bd00b70 [0x102f00010]>{type = immutable dict, count = 3,
entries =>
0 : <CFString 0x102b799f0 [0x20baeba30]>{contents = "pid"} = <CFNumber 0xc45bcab69880bc04 [0x20baeba30]>{value = +991, type = kCFNumberSInt64Type}
1 : <CFString 0x102b48c20 [0x20baeba30]>{contents = "bundleID"} = <CFString 0x102b6c3f0 [0x20baeba30]>{contents = "com.My.Bundle.Id"}
2 : <CFString 0x102b065e0 [0x20baeba30]>{contents = "HighFrequency"} = <CFBoolean 0x20baf1a10 [0x20baeba30]>{value = true}
}
inactive:1
default 13:45:10.789855 -0400 backboardd Connection removed: IOHIDEventSystemConnection uuid:960FB53D-5C0A-47D5-8260-BB2E2A63D61B pid:991 process:Jupiter type:Passive entitlements:0x0 caller:BackBoardServices: <redacted> + 368 attributes:<CFBasicHash 0x10bd00b70 [0x102f00010]>{type = immutable dict, count = 3,
entries =>
0 : <CFString 0x102b799f0 [0x20baeba30]>{contents = "pid"} = <CFNumber 0xc45bcab69880bc04 [0x20baeba30]>{value = +991, type = kCFNumberSInt64Type}
1 : <CFString 0x102b48c20 [0x20baeba30]>{contents = "bundleID"} = <CFString 0x102b6c3f0 [0x20baeba30]>{contents = "com.My.Bundle.Id"}
2 : <CFString 0x102b065e0 [0x20baeba30]>{contents = "HighFrequency"} = <CFBoolean 0x20baf1a10 [0x20baeba30]>{value = true}
}
inactive:0
default 13:45:10.791946 -0400 SpringBoard [com.My.Bundle.Id] Sending scene action [Logical Activate] through WorkspaceServer: 0x283139630
default 13:45:10.797970 -0400 SpringBoard [com.My.Bundle.Id] Sending scene action [SceneLifecycleEventOnly] through WorkspaceServer: 0x283139630
default 13:45:10.798522 -0400 SpringBoard [com.My.Bundle.Id] Sending scene action [SceneLifecycleEventOnly] through WorkspaceServer: 0x283139630
default 13:45:10.800563 -0400 SpringBoard Application process state changed for com.My.Bundle.Id: <SBApplicationProcessState: 0x281252bc0; pid: 991; taskState: Not Running; visibility: Unknown>
default 13:45:10.803944 -0400 SpringBoard Application process state changed for com.My.Bundle.Id: <SBApplicationProcessState: 0x2812536a0; pid: 991; taskState: Running; visibility: Foreground>
default 13:45:10.807589 -0400 backboardd [BKEventFocusManager] Setting foreground application to: com.My.Bundle.Id (991)
default 13:45:10.854839 -0400 SpringBoard WIFI PICKER [com.My.Bundle.Id]: isProcessLaunch: 0, isForegroundActivation: 0, isForegroundDeactivation: 1
error 13:45:10.855026 -0400 symptomsd Can't get most elevated app state from dictionary {
BKSApplicationStateExtensionKey = 0;
SBApplicationStateDisplayIDKey = "com.My.Bundle.Id";
SBApplicationStateKey = 0;
SBApplicationStateProcessIDKey = 991;
SBApplicationStateRunningReasonsKey = (
{
SBApplicationStateRunningReasonAssertionIdentifierKey = Resume;
SBApplicationStateRunningReasonAssertionReasonKey = 10000;
},
{
SBApplicationStateRunningReasonAssertionIdentifierKey = UIApplicationLaunch;
SBApplicationStateRunningReasonAssertionReasonKey = 10000;
}
);
}
default 13:45:10.855086 -0400 symptomsd 991 com.My.Bundle.Id: Unknown (most elevated: Unknown)
default 13:45:10.855150 -0400 symptomsd Entry, display name com.My.Bundle.Id uuid (null) pid 991 isFront 0
default 13:45:10.855393 -0400 symptomsd Continue with bundle name com.My.Bundle.Id, is front 0
default 13:45:10.855456 -0400 symptomsd com.My.Bundle.Id: Foreground: false
default 13:45:10.855519 -0400 symptomsd Failed to find process for com.My.Bundle.Id
default 13:45:10.970118 -0400 SpringBoard Front display did change: <SBApplication: 0x282df9a40; com.My.Bundle.Id>
default 13:45:10.995763 -0400 SpringBoard [com.My.Bundle.Id] Will update scene - foregroundness changed to: Background
default 13:45:11.999866 -0400 assertiond [SpringBoard:52] Attempting to acquire assertion for Jupiter:991: <BKProcessAssertion: 0x100d12ba0; "FBSceneSnapshotAction:com.My.Bundle.Id" (finishTask:180s); id:…FE83F1033A36>
default 13:45:11.000082 -0400 assertiond [Jupiter:991] Add assertion: <BKProcessAssertion: 0x100d12ba0; id: 52-341DA9E7-EC57-4850-8882-FE83F1033A36; name: FBSceneSnapshotAction:com.My.Bundle.Id; state: active; reason: finishTask; duration: 180.0s> {
owner = <BSProcessHandle: 0x101a0a550; SpringBoard:52; valid: YES>;
flags = preventSuspend, preventThrottleDownUI, preventThrottleDownCPU, preventIdleSleep, preventSuspendOnSleep;
}
default 13:45:11.000215 -0400 assertiond [Jupiter:991] Activate assertion: <BKProcessAssertion: 0x100d12ba0; "FBSceneSnapshotAction:com.My.Bundle.Id" (finishTask:180s); id:…FE83F1033A36>
default 13:45:11.015843 -0400 powerd Process assertiond.62 Created SystemIsActive "Jupiter:991:52-341DA9E7-EC57-4850-8882-FE83F1033A36 [FBSceneSnapshotAction:com.My.Bundle.Id] [0x100d12ba0]" age:00:00:00 id:51539642211 [System: SysAct]
default 13:45:11.187081 -0400 assertiond Server invalidated <BKProcessAssertion: 0x100d12ba0; "FBSceneSnapshotAction:com.My.Bundle.Id" (finishTask:180s); id:…FE83F1033A36>
default 13:45:11.187457 -0400 assertiond Client relinquished <BKProcessAssertion: 0x100d12ba0; "FBSceneSnapshotAction:com.My.Bundle.Id" (finishTask:180s); id:…FE83F1033A36>
default 13:45:11.187934 -0400 assertiond Process exited: <BKProcess: 0x101b07760; Jupiter; com.My.Bundle.Id; pid: 991; agency: Application; visibility: none; task: none; hostpid: 52>
default 13:45:11.188564 -0400 powerd Process assertiond.62 Released SystemIsActive "Jupiter:991:52-341DA9E7-EC57-4850-8882-FE83F1033A36 [FBSceneSnapshotAction:com.My.Bundle.Id] [0x100d12ba0]" age:00:00:00 id:51539642211 [System: SysAct]
default 13:45:11.355578 -0400 SpringBoard <FBApplicationProcess: 0x146b73c10; Jupiter (com.My.Bundle.Id); pid: 991> assertiond says the process actually exited with context: <BKSProcessExitContext: 0x2810cbfc0; reason: crash>
default 13:45:11.356682 -0400 SpringBoard <FBApplicationProcess: 0x146b73c10; Jupiter (com.My.Bundle.Id); pid: 991> crashed.
default 13:45:11.357390 -0400 SpringBoard Removing: <FBApplicationProcess: 0x146b73c10; Jupiter (com.My.Bundle.Id); pid: 991>
default 13:45:11.358054 -0400 SpringBoard Process exited: <FBApplicationProcess: 0x146b73c10; Jupiter (com.My.Bundle.Id); pid: -1> -> <FBApplicationProcessExitContext: 0x281cffbd0; exitReason: crash; terminationReason: (none)> {
stateAtExit = <FBProcessState: 0x281307fe0; pid: 991; taskState: Not Running; visibility: Unknown>;
}
default 13:45:11.359464 -0400 SpringBoard Application process state changed for com.My.Bundle.Id: (null)
default 13:45:11.375592 -0400 assertiond Deleted job with label: UIKitApplication:com.My.Bundle.Id[0xe595][62]
default 13:45:11.375852 -0400 assertiond [Jupiter:991] Deleted launchd job with label: UIKitApplication:com.My.Bundle.Id[0xe595][62]
default 13:45:11.377370 -0400 assertiond Checking for deferred bootstrap request for com.My.Bundle.Id
default 13:45:11.394094 -0400 mediaserverd -CMSessionMgr- CMSessionMgrHandleApplicationStateChange: CMSession: Client com.My.Bundle.Id with pid '991' is now Terminated. Background entitlement: NO
default 13:45:11.395671 -0400 SpringBoard WIFI PICKER [com.My.Bundle.Id]: isProcessLaunch: 0, isForegroundActivation: 0, isForegroundDeactivation: 0
default 13:45:11.397915 -0400 symptomsd 991 com.My.Bundle.Id: Terminated (most elevated: Terminated)
default 13:45:11.398135 -0400 symptomsd Entry, display name com.My.Bundle.Id uuid (null) pid 991 isFront 0
我的解决方法如下:
第一种解决方法:
首先检查你的证书跟签名文件那块,打包的时候签名证书不对应导致 比如我打包用的是iOS dev证书,然后我打包没有选中正确的打包出来就会crash,后面我选择正确的iOS dev证书就可以了
第二种解决方法:
有些库是需要引用的,然后你在build phase把embed framework那里也把他删除了 我后面检查发现我有一个资源库是需要导入引用的被我删掉了,然后也是crash
今天的文章iOS闪退crash scene settings update – settings are eligible for deactivation reason分享到此就结束了,感谢您的阅读。
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/22670.html