Xamarin.iOS应用程序在模拟器上运行,但不在物理设备上运行

时间:2020-04-29 08:19:02

标签: c# ios xcode xamarin xamarin.ios

我开始在Xamarin Classic上开发应用程序。我从一个非常基本的应用程序开始-只是一个TextField和一个Button。它在Mac mini上的模拟器上以及在插入Mac的iPhone SE上的“释放”模式下都可以正常工作,但是当我尝试在插入Mac的iPhone SE上运行它时,应用程序在加载时崩溃(白屏)出现不到一秒钟,然后退出)。当我需要调试iOS应用时,这对于将来来说不是一个好兆头。

以下是Xcode上手机控制台的输出:

[application<nz.co.spinningcube.DeliveryApp>:1678] Setting process task state to: Running
Finished acquiring assertion 26-53-22576 (target:application<nz.co.spinningcube.DeliveryApp>)
Acquiring assertion targeting application<nz.co.spinningcube.DeliveryApp>(com.apple.frontboard.workspace) from originator [daemon<com.apple.SpringBoard>:53] with description <RBSAssertionDescriptor; "injecting "com.apple.frontboard"-"com.apple.frontboard.workspace-service" to 1678<com.apple.frontboard.workspace>"; ID: 26-53-22577; target: 1678<com.apple.frontboard.workspace>> attributes = {
    <RBSHereditaryGrant: 0x155d917d0> {
        endowmentNamespace = com.apple.boardservices.endpoint-injection;
        hasEncodedEndowment = YES;
    };
}
Assertion 26-53-22577 (target:application<nz.co.spinningcube.DeliveryApp>(com.apple.frontboard.workspace)) will be created as active
[application<nz.co.spinningcube.DeliveryApp>:1678] Death sentinel fired!
Calculated state for application<nz.co.spinningcube.DeliveryApp>: running-active (role: UserInteractiveNonFocal)
[application<nz.co.spinningcube.DeliveryApp>:1678] Resuming task.
[application<nz.co.spinningcube.DeliveryApp>:1678] Error disabling CPU monitoring: 3
Now tracking: <FBScene: 0x282eda580; sceneID: sceneID:nz.co.spinningcube.DeliveryApp-default; valid: YES>
[sceneID:nz.co.spinningcube.DeliveryApp-default] Setting deactivation reasons to: 'systemAnimation' for reason: scene settings update - settings are eligible for deactivation reasons.
Acquiring assertion targeting application<nz.co.spinningcube.DeliveryApp> from originator [daemon<com.apple.SpringBoard>:53] with description <RBSAssertionDescriptor; "Subordinate Process"; ID: 26-53-22578; target: 1678> attributes = {
    <RBSSubordinateProcessAttribute: 0x155edde10>;
}
Assertion 26-53-22578 (target:application<nz.co.spinningcube.DeliveryApp>) will be created as active
Finished acquiring assertion 26-53-22577 (target:application<nz.co.spinningcube.DeliveryApp>(com.apple.frontboard.workspace))
Calculated state for application<nz.co.spinningcube.DeliveryApp>: running-active (role: UserInteractiveNonFocal)
Finished acquiring assertion 26-53-22578 (target:application<nz.co.spinningcube.DeliveryApp>)
Application process state changed for nz.co.spinningcube.DeliveryApp: <SBApplicationProcessState: 0x281a9ada0; pid: 1678; taskState: Running; visibility: Unknown>
-CMSessionMgr- CMSessionMgrHandleApplicationStateChange: CMSession: Client nz.co.spinningcube.DeliveryApp with pid '1678' is now Foreground Running. Background entitlement: NO ActiveLongFormVideoSession: NO WhitelistedLongFormVideoApp NO
-CMSessionMgr- CMSessionMgrHandleApplicationStateChange: CMSession: Sending EndInterruption to nz.co.spinningcube.DeliveryApp with pid '1678' because client moved to ForegroundRunning and is not allowed to play in the background
Removing process: [application<nz.co.spinningcube.DeliveryApp>:1678]
[application<nz.co.spinningcube.DeliveryApp>:1678] Deleting job: UIKitApplication:nz.co.spinningcube.DeliveryApp[c2be][rb-legacy]
Removing job: <RBLaunchdJob: 0x155ee91f0; pid=1678 UIKitApplication:nz.co.spinningcube.DeliveryApp[c2be][rb-legacy]>
Removed job with label: UIKitApplication:nz.co.spinningcube.DeliveryApp[c2be][rb-legacy]
Removing assertions for terminated process: [application<nz.co.spinningcube.DeliveryApp>:1678]
Removed last relative-start-date-defining assertion for process application<nz.co.spinningcube.DeliveryApp>
Calculated state for application<nz.co.spinningcube.DeliveryApp>: none (role: None)
-CMSessionMgr- CMSessionMgrHandleApplicationStateChange: CMSession: Client nz.co.spinningcube.DeliveryApp with pid '1678' is now Terminated. Background entitlement: NO ActiveLongFormVideoSession: NO WhitelistedLongFormVideoApp NO
[application<nz.co.spinningcube.DeliveryApp>:1678] Now flagged as pending exit for reason: process exited with context
[application<nz.co.spinningcube.DeliveryApp>:1678] Process exited: <RBSProcessExitContext; specific: <RBSProcessExitStatus; domain: dyld (6); code: 1>>.
[application<nz.co.spinningcube.DeliveryApp>:1678] Setting process task state to: Not Running
Removing: <FBApplicationProcess: 0x10569e700; application<nz.co.spinningcube.DeliveryApp>:1678>
[application<nz.co.spinningcube.DeliveryApp>:1678] Launch failed.
Calculated state for application<nz.co.spinningcube.DeliveryApp>: none (role: None)
Process exited: <FBApplicationProcess: 0x10569e700; application<nz.co.spinningcube.DeliveryApp>:1678> -> <RBSProcessExitContext; specific: <RBSProcessExitStatus; domain: dyld (6); code: 1>>
Application process state changed for nz.co.spinningcube.DeliveryApp: (null)
No longer tracking: <FBScene: 0x282eda580; sceneID: sceneID:nz.co.spinningcube.DeliveryApp-default; valid: NO>
[SBMainDisplaySceneManager sceneManager:didDestroyScene: <FBScene: 0x282eda580; sceneID: sceneID:nz.co.spinningcube.DeliveryApp-default; valid: NO>] - proposing IdleTimerBehavior.
Process runningboardd.26 Created SystemIsActive "application<nz.co.spinningcube.DeliveryApp>26-53-22576:FBApplicationProcess" age:00:00:00  id:51539648493 [System: PrevIdle SysAct]
Process runningboardd.26 Released SystemIsActive "application<nz.co.spinningcube.DeliveryApp>26-53-22576:FBApplicationProcess" age:00:00:00  id:51539648493 [System: PrevIdle SysAct]
[FBSSystemService][0xeccc] Request successful: <BSProcessHandle: 0x102934920; nz.co.spinningcube.DeliveryApp:1678; valid: YES>
cr_update: Parsing corpse data for process DeliveryApp.iOS [pid 1678]
Formulating fatal report for corpse[1678] DeliveryApp.iOS
{"msg":"#CLIUA Marking change", "clientKey":"nz.co.spinningcube.DeliveryApp", "reason":"Process state from RunningBoard", "assertionLevel":4, "coming":1}
{"msg":"#CLIUA Marking change", "clientKey":"nz.co.spinningcube.DeliveryApp", "reason":"Process state from RunningBoard", "assertionLevel":4, "coming":0}
Saved type '109(<private>)' report (20 of max 25) at /var/mobile/Library/Logs/CrashReporter/DeliveryApp.iOS-2020-04-29-194637.ips
Front display did change: <SBApplication: 0x282054b60; nz.co.spinningcube.DeliveryApp>

不太确定那里发生的事情似乎没有明显的错误。这是我的构建设置的屏幕截图: Build setup for physical iPhone

这里的任何帮助都会很好。

0 个答案:

没有答案