2

我在模拟器上安装应用程序时遇到问题。我创建了一个新项目(完全不做任何修改)并点击构建,它构建成功,然后打开模拟器。此时我收到一条错误消息,提示“此时无法安装此应用程序”。

我正在运行 macOS Catalina 10.15 Beta。直接从 Appstore 安装了 Xcode 11.1 并创建了一个不会出现该错误的新项目。我安装了 Xcode 11.2 Beta,也收到了同样的错误。我已经多次重新启动计算机,并且我也经常正常关闭 Xcode 和模拟器,并在没有运气的情况下强制关闭它们。我不确定还能尝试什么。如果有任何区别,这是在带有 Touchbar 的 2017 MacBook Pro 上。

以下是错误详细信息:


This app could not be installed at this time.
Domain: IXUserPresentableErrorDomain
Code: 1
Failure Reason: Could not install at this time.
--
The operation couldn’t be completed. (LSApplicationWorkspaceErrorDomain error -102.)
Domain: LSApplicationWorkspaceErrorDomain
Code: -102
User Info: {
    CFBundleIdentifier = "com.blackhive.SwiftUI-Demo-4";
    Error = RegistrationFailed;
    "_LSFunction" = "-[_LSInstaller _doinstallApplication:atURL:withOptions:installType:notificationJournaller:reply:]";
    "_LSLine" = 627;
}

新错误详情:

Process:               com.apple.migrationpluginwrapper [2349]
Path:                  /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/DataMigration.framework/XPCServices/com.apple.migrationpluginwrapper.xpc/com.apple.migrationpluginwrapper
Identifier:            com.apple.migrationpluginwrapper
Version:               1.0 (1)
Code Type:             X86-64 (Native)
Parent Process:        launchd_sim [2249]
Responsible:           SimulatorTrampoline [2215]
User ID:               501

Date/Time:             2019-10-30 15:40:44.834 -0700
OS Version:            Mac OS X 10.15.1 (19B77a)
Report Version:        12
Bridge OS Version:     3.0 (14Y904)
Anonymous UUID:        7F594A3B-E0E3-8F8E-9876-9A1130956853


Time Awake Since Boot: 3100 seconds

System Integrity Protection: enabled

Crashed Thread:        1  Dispatch queue: com.apple.migrationpluginwrapper.plugin.MobileSafari.migrator

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSURL initFileURLWithPath:isDirectory:]: nil string parameter'
terminating with uncaught exception of type NSException
abort() called
CoreSimulator 681.14 - Device: iPhone 11 Pro Max (1A97AF8B-70F3-401C-85AF-DB1D7D7A9EC8) - Runtime: iOS 13.1 (17A844) - DeviceType: iPhone 11 Pro Max

Application Specific Backtrace 1:
0   CoreFoundation                      0x00000001015d21ee __exceptionPreprocess + 350
1   libobjc.A.dylib                     0x000000010143fb20 objc_exception_throw + 48
2   Foundation                          0x0000000100f266ec -[NSURL(NSURL) initFileURLWithPath:isDirectory:relativeToURL:] + 0
3   Foundation                          0x0000000100f26c66 +[NSURL(NSURL) fileURLWithPath:isDirectory:] + 54
4   SafariServices                      0x0000000104c806b6 __58+[NSUserDefaults(SafariServicesExtras) _sf_safariDefaults]_block_invoke + 234
5   libdispatch.dylib                   0x0000000102206781 _dispatch_client_callout + 8
6   libdispatch.dylib                   0x00000001022079ad _dispatch_once_callout + 20
7   SafariServices                      0x0000000104c805c9 +[NSUserDefaults(SafariServicesExtras) _sf_safariDefaults] + 45
8   MobileSafari                        0x0000000103cc7776 MobileSafari + 30582
9   MobileSafari                        0x0000000103cc1261 MobileSafari + 4705
10  com.apple.migrationpluginwrapper    0x0000000100d64018 __47-[DMMigrationPluginWrapperProxy handleMessage:]_block_invoke_2 + 552
11  libdispatch.dylib                   0x0000000102205810 _dispatch_call_block_and_release + 12
12  libdispatch.dylib                   0x0000000102206781 _dispatch_client_callout + 8
13  libdispatch.dylib                   0x000000010220c4ee _dispatch_lane_serial_drain + 707
14  libdispatch.dylib                   0x000000010220cf24 _dispatch_lane_invoke + 388
15  libdispatch.dylib                   0x0000000102216ffc _dispatch_workloop_worker_thread + 626
16  libsystem_pthread.dylib             0x000000010267c71b _pthread_wqthread + 290
17  libsystem_pthread.dylib             0x000000010267c57b start_wqthread + 15

Thread 0:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib          0x000000010261c166 mach_msg_trap + 10
1   libsystem_kernel.dylib          0x000000010261c6cc mach_msg + 60
2   com.apple.CoreFoundation        0x0000000101534af5 __CFRunLoopServiceMachPort + 197
3   com.apple.CoreFoundation        0x000000010152f817 __CFRunLoopRun + 1671
4   com.apple.CoreFoundation        0x000000010152ee66 CFRunLoopRunSpecific + 438
5   com.apple.Foundation            0x0000000100ee994f -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 211
6   com.apple.Foundation            0x0000000100ee9b67 -[NSRunLoop(NSRunLoop) run] + 76
7   libxpc.dylib                    0x00000001025b24e6 _xpc_objc_main + 297
8   libxpc.dylib                    0x00000001025b4b87 xpc_main + 132
9   com.apple.migrationpluginwrapper    0x0000000100d647dd main + 61
10  libdyld.dylib                   0x0000000102287d29 start + 1

Thread 1 Crashed:: Dispatch queue: com.apple.migrationpluginwrapper.plugin.MobileSafari.migrator
0   libsystem_kernel.dylib          0x000000010262249a __pthread_kill + 10
1   libsystem_pthread.dylib         0x000000010267f6cb pthread_kill + 384
2   libsystem_c.dylib               0x00000001023aea3c abort + 120
3   libc++abi.dylib                 0x00000001020c47f8 abort_message + 231
4   libc++abi.dylib                 0x00000001020c49c7 demangling_terminate_handler() + 262
5   libobjc.A.dylib                 0x000000010143fd7c _objc_terminate() + 96
6   libc++abi.dylib                 0x00000001020d1e97 std::__terminate(void (*)()) + 8
7   libc++abi.dylib                 0x00000001020d1e39 std::terminate() + 41
8   libdispatch.dylib               0x0000000102206795 _dispatch_client_callout + 28
9   libdispatch.dylib               0x00000001022079ad _dispatch_once_callout + 20
10  com.apple.SafariServices        0x0000000104c805c9 +[NSUserDefaults(SafariServicesExtras) _sf_safariDefaults] + 45
11  com.apple.MobileSafari.migrator 0x0000000103cc7776 0x103cc0000 + 30582
12  com.apple.MobileSafari.migrator 0x0000000103cc1261 0x103cc0000 + 4705
13  com.apple.migrationpluginwrapper    0x0000000100d64018 __47-[DMMigrationPluginWrapperProxy handleMessage:]_block_invoke_2 + 552
14  libdispatch.dylib               0x0000000102205810 _dispatch_call_block_and_release + 12
15  libdispatch.dylib               0x0000000102206781 _dispatch_client_callout + 8
16  libdispatch.dylib               0x000000010220c4ee _dispatch_lane_serial_drain + 707
17  libdispatch.dylib               0x000000010220cf24 _dispatch_lane_invoke + 388
18  libdispatch.dylib               0x0000000102216ffc _dispatch_workloop_worker_thread + 626
19  libsystem_pthread.dylib         0x000000010267c71b _pthread_wqthread + 290
20  libsystem_pthread.dylib         0x000000010267c57b start_wqthread + 15

Thread 2:
0   libsystem_pthread.dylib         0x000000010267c56c start_wqthread + 0

Thread 1 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x0000700009e9d000  rcx: 0x0000700009e9bfd8  rdx: 0x0000000000000000
  rdi: 0x0000000000001703  rsi: 0x0000000000000006  rbp: 0x0000700009e9c000  rsp: 0x0000700009e9bfd8
   r8: 0x0000700009e9bea0   r9: 0x0000700009e9c070  r10: 0x0000000000000000  r11: 0x0000000000000206
  r12: 0x0000000000001703  r13: 0x0000003000000008  r14: 0x0000000000000006  r15: 0x0000000000000016
  rip: 0x000000010262249a  rfl: 0x0000000000000206  cr2: 0x000000010267f54b

Logical CPU:     0
Error Code:      0x02000148
Trap Number:     133
4

1 回答 1

1

您的问题在于您的 OSx,您有 10.15(beta),并且在发行说明中指出 XCode 和 OSX 必须“同步”。我遇到了同样的问题,但后来我通过重新安装 MacOS 10.15 解决了这个问题。我最初安装的是 10.15 Beta 版本。因此,请确保您运行的是 MacOS 10.15(不是 Beta)。

于 2020-07-18T23:03:05.480 回答