当前位置: 首页 > 知识库问答 >
问题:

iOS模拟器Xcode 8上的黑屏

晋天逸
2023-03-14

  • 卸载然后重新安装Xcode
  • 重置内容

问题 我启动我的应用程序并运行,我知道这个cos我在控制台中看到print()的日志输出。但是,模拟器屏幕是空白的,只是黑色的。根本没有用户界面。我可以消除我的应用程序是问题,因为当我按下(模拟按下)主页时,它应该向我显示跳板,但它是空白的(黑屏)。我重置了内容

有人能帮忙吗?

附加:

我已经完全删除了Xcode,从Mac上删除了它的所有痕迹。然后重新安装它。已启动新项目和(与之前一样,出现空白屏幕)。但是这次我注意到一个错误警报。

Rountined
App quit Unexpectedly

谷歌没有发现任何迹象表明这是什么或者它是否与我的问题有关。然而,日志文件是这样的,有人能够诊断问题吗?

Process:               routined [1045]
Path:                  /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/libexec/routined
Identifier:            routined
Version:               413.0.10
Code Type:             X86-64 (Native)
Parent Process:        launchd_sim [1039]
Responsible:           routined [1045]
User ID:               501

Date/Time:             2016-11-14 12:03:49.450 +0000
OS Version:            Mac OS X 10.12.2 (16C41b)
Report Version:        12
Anonymous UUID:        EB6CBF9E-B878-C122-2B34-BA3ED088512F


Time Awake Since Boot: 1900 seconds

System Integrity Protection: disabled

Crashed Thread:        5  Dispatch queue: RTMigrationManager-0x7fd26d50fe00

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

Application Specific Information:
abort() called
CoreSimulator 338.10 - Device: iPhone 7 Plus - Runtime: iOS 10.2 (14C5062c) - DeviceType: iPhone 7 Plus

Thread 0:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib          0x00000001138f938a mach_msg_trap + 10
1   libsystem_kernel.dylib          0x00000001138f87d7 mach_msg + 55
2   com.apple.CoreFoundation        0x000000010f130d24 __CFRunLoopServiceMachPort + 212
3   com.apple.CoreFoundation        0x000000010f1301a1 __CFRunLoopRun + 1345
4   com.apple.CoreFoundation        0x000000010f12fa04 CFRunLoopRunSpecific + 420
5   com.apple.Foundation            0x000000010e6e98c0 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 274
6   com.apple.Foundation            0x000000010e6e979b -[NSRunLoop(NSRunLoop) run] + 76
7   libcoreroutine.dylib            0x000000010e388c31 -[RTLifeCycleManager start] + 1124
8   routined                        0x000000010e2d6ecc 0x10e2d6000 + 3788
9   libdyld.dylib                   0x00000001135d268d start + 1

Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib          0x0000000113901e5a kevent_qos + 10
1   libdispatch.dylib               0x000000011357dc37 _dispatch_mgr_wait_for_event + 79
2   libdispatch.dylib               0x0000000113577a81 _dispatch_mgr_invoke + 248
3   libdispatch.dylib               0x0000000113577883 _dispatch_mgr_thread + 54

Thread 2:
0   libsystem_kernel.dylib          0x00000001139014e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x0000000113935791 _pthread_wqthread + 1426
2   libsystem_pthread.dylib         0x00000001139351ed start_wqthread + 13

Thread 3:: Dispatch queue: RTDefaultsManager-0x7fd26d50ec80-ServiceQueue
0   libsystem_kernel.dylib          0x0000000113900cb6 __psynch_mutexwait + 10
1   libsystem_pthread.dylib         0x0000000113935f6a _pthread_mutex_lock_wait + 100
2   com.apple.CoreFoundation        0x000000010f0e8858 -[CFPrefsSearchListSource alreadylocked_copyDictionary] + 312
3   com.apple.CoreFoundation        0x000000010f0e854c -[CFPrefsSearchListSource alreadylocked_copyValueForKey:] + 60
4   com.apple.CoreFoundation        0x000000010f1cf045 -[CFPrefsSource copyValueForKey:] + 53
5   com.apple.CoreFoundation        0x000000010f1f5640 __76-[_CFXPreferences copyAppValueForKey:identifier:container:configurationURL:]_block_invoke + 32
6   com.apple.CoreFoundation        0x000000010f20a702 __108-[_CFXPreferences(SearchListAdditions) withSearchListForIdentifier:container:cloudConfigurationURL:perform:]_block_invoke + 322
7   com.apple.CoreFoundation        0x000000010f209f09 normalizeQuintuplet + 329
8   com.apple.CoreFoundation        0x000000010f20a5b8 -[_CFXPreferences(SearchListAdditions) withSearchListForIdentifier:container:cloudConfigurationURL:perform:] + 104
9   com.apple.CoreFoundation        0x000000010f1f55a6 -[_CFXPreferences copyAppValueForKey:identifier:container:configurationURL:] + 310
10  com.apple.Foundation            0x000000010e6cc69b -[NSUserDefaults(NSUserDefaults) objectForKey:] + 43
11  libcoreroutine.dylib            0x000000010e386602 -[RTDefaultsManager _objectForKey:] + 169
12  libcoreroutine.dylib            0x000000010e38612b __34-[RTDefaultsManager objectForKey:]_block_invoke + 30
13  libdispatch.dylib               0x000000011358912e _dispatch_client_callout + 8
14  libdispatch.dylib               0x0000000113571d3f _dispatch_non_barrier_sync_f_invoke + 119
15  libcoreroutine.dylib            0x000000010e3860b8 -[RTDefaultsManager objectForKey:] + 225
16  libcoreroutine.dylib            0x000000010e3f3530 __62-[RTRoomSenseManager updateValueForKey:expectedClass:handler:]_block_invoke + 68
17  libdispatch.dylib               0x0000000113567808 _dispatch_call_block_and_release + 12
18  libdispatch.dylib               0x000000011358912e _dispatch_client_callout + 8
19  libdispatch.dylib               0x000000011356e4cf _dispatch_queue_serial_drain + 1018
20  libdispatch.dylib               0x000000011356ec9f _dispatch_queue_invoke + 1118
21  libdispatch.dylib               0x000000011356f047 _dispatch_queue_override_invoke + 376
22  libdispatch.dylib               0x00000001135709dc _dispatch_root_queue_drain + 506
23  libdispatch.dylib               0x0000000113570782 _dispatch_worker_thread3 + 113
24  libsystem_pthread.dylib         0x0000000113935712 _pthread_wqthread + 1299
25  libsystem_pthread.dylib         0x00000001139351ed start_wqthread + 13

Thread 4:: Dispatch queue: RTDefaultsManager-0x7fd26d50ec80-ServiceQueue
0   libsystem_kernel.dylib          0x0000000113900cb6 __psynch_mutexwait + 10
1   libsystem_pthread.dylib         0x0000000113935f6a _pthread_mutex_lock_wait + 100
2   com.apple.CoreFoundation        0x000000010f0e8858 -[CFPrefsSearchListSource alreadylocked_copyDictionary] + 312
3   com.apple.CoreFoundation        0x000000010f0e854c -[CFPrefsSearchListSource alreadylocked_copyValueForKey:] + 60
4   com.apple.CoreFoundation        0x000000010f1cf045 -[CFPrefsSource copyValueForKey:] + 53
5   com.apple.CoreFoundation        0x000000010f1f5640 __76-[_CFXPreferences copyAppValueForKey:identifier:container:configurationURL:]_block_invoke + 32
6   com.apple.CoreFoundation        0x000000010f20a702 __108-[_CFXPreferences(SearchListAdditions) withSearchListForIdentifier:container:cloudConfigurationURL:perform:]_block_invoke + 322
7   com.apple.CoreFoundation        0x000000010f209f09 normalizeQuintuplet + 329
8   com.apple.CoreFoundation        0x000000010f20a5b8 -[_CFXPreferences(SearchListAdditions) withSearchListForIdentifier:container:cloudConfigurationURL:perform:] + 104
9   com.apple.CoreFoundation        0x000000010f1f55a6 -[_CFXPreferences copyAppValueForKey:identifier:container:configurationURL:] + 310
10  com.apple.Foundation            0x000000010e6cc69b -[NSUserDefaults(NSUserDefaults) objectForKey:] + 43
11  libcoreroutine.dylib            0x000000010e386602 -[RTDefaultsManager _objectForKey:] + 169
12  libcoreroutine.dylib            0x000000010e38612b __34-[RTDefaultsManager objectForKey:]_block_invoke + 30
13  libdispatch.dylib               0x000000011358912e _dispatch_client_callout + 8
14  libdispatch.dylib               0x0000000113571d3f _dispatch_non_barrier_sync_f_invoke + 119
15  libcoreroutine.dylib            0x000000010e3860b8 -[RTDefaultsManager objectForKey:] + 225
16  libcoreroutine.dylib            0x000000010e3ebc16 __76-[RTPredictionControllerRoomAssist updateValueForKey:expectedClass:handler:]_block_invoke + 83
17  libdispatch.dylib               0x0000000113567808 _dispatch_call_block_and_release + 12
18  libdispatch.dylib               0x000000011358912e _dispatch_client_callout + 8
19  libdispatch.dylib               0x000000011356e4cf _dispatch_queue_serial_drain + 1018
20  libdispatch.dylib               0x000000011356ec9f _dispatch_queue_invoke + 1118
21  libdispatch.dylib               0x000000011356f047 _dispatch_queue_override_invoke + 376
22  libdispatch.dylib               0x00000001135709dc _dispatch_root_queue_drain + 506
23  libdispatch.dylib               0x0000000113570782 _dispatch_worker_thread3 + 113
24  libsystem_pthread.dylib         0x0000000113935712 _pthread_wqthread + 1299
25  libsystem_pthread.dylib         0x00000001139351ed start_wqthread + 13

Thread 5 Crashed:: Dispatch queue: RTMigrationManager-0x7fd26d50fe00
0   libsystem_kernel.dylib          0x0000000113900dd6 __pthread_kill + 10
1   libsystem_pthread.dylib         0x0000000113938787 pthread_kill + 90
2   libsystem_c.dylib               0x000000011367afd7 abort + 129
3   libcoreroutine.dylib            0x000000010e455926 -[RTMigrationManager abortDueToFatalMigrationError] + 247
4   libcoreroutine.dylib            0x000000010e45560e __48-[RTMigrationManager _finishMigrationWithError:]_block_invoke.174 + 290
5   libdispatch.dylib               0x0000000113567808 _dispatch_call_block_and_release + 12
6   libdispatch.dylib               0x000000011358912e _dispatch_client_callout + 8
7   libdispatch.dylib               0x000000011356e4cf _dispatch_queue_serial_drain + 1018
8   libdispatch.dylib               0x000000011356ec9f _dispatch_queue_invoke + 1118
9   libdispatch.dylib               0x000000011356f047 _dispatch_queue_override_invoke + 376
10  libdispatch.dylib               0x00000001135709dc _dispatch_root_queue_drain + 506
11  libdispatch.dylib               0x0000000113570782 _dispatch_worker_thread3 + 113
12  libsystem_pthread.dylib         0x0000000113935712 _pthread_wqthread + 1299
13  libsystem_pthread.dylib         0x00000001139351ed start_wqthread + 13

Thread 6:
0   libsystem_kernel.dylib          0x00000001139014e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x0000000113935791 _pthread_wqthread + 1426
2   libsystem_pthread.dylib         0x00000001139351ed start_wqthread + 13

Thread 7:
0   libsystem_kernel.dylib          0x00000001139014e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x0000000113935791 _pthread_wqthread + 1426
2   libsystem_pthread.dylib         0x00000001139351ed start_wqthread + 13

Thread 5 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x0000000000000006  rcx: 0x000070000f1b5b98  rdx: 0x0000000000000000
  rdi: 0x0000000000004703  rsi: 0x0000000000000006  rbp: 0x000070000f1b5bc0  rsp: 0x000070000f1b5b98
   r8: 0x000000000000000a   r9: 0x00007fd26d7533f0  r10: 0x000000000c000000  r11: 0x0000000000000202
  r12: 0x000000010ec1bd20  r13: 0x000000010ec1bd20  r14: 0x000070000f1b6000  r15: 0x000000010ec1eac0
  rip: 0x0000000113900dd6  rfl: 0x0000000000000202  cr2: 0x0000000116978000

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


Binary Images:
     ...
********(REMOVED THIS SECTION TO FIT POST UNDER THE 30,000 CHARACTER LIMIT)

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 1541
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=135.2M resident=0K(0%) swapped_out_or_unallocated=135.2M(100%)
Writable regions: Total=62.3M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=62.3M(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Activity Tracing                   256K        2 
Dispatch continuations            8192K        2 
Kernel Alloc Once                    8K        2 
MALLOC                            41.5M       20 
MALLOC guard page                   48K       10 
SQLite page cache                   64K        2 
STACK GUARD                       56.0M        9 
Stack                             11.1M        9 
VM_ALLOCATE                         20K        3 
__DATA                            14.5M      207 
__LINKEDIT                        31.4M      313 
__TEXT                           104.3M      166 
__UNICODE                          556K        2 
mapped file                       25.1M        8 
shared memory                       32K        5 
===========                     =======  ======= 
TOTAL                            293.0M      745 

Model: iMac11,3, BootROM IM112.0057.B03, 2 processors, Intel Core i3, 3.2 GHz, 16 GB, SMC 1.59f2
Graphics: ATI Radeon HD 5670, ATI Radeon HD 5670, PCIe, 512 MB
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1333 MHz, 0x859B, 0x435434473353313333394D2E43313646314B
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1333 MHz, 0x859B, 0x435434473353313333394D2E43313646314B
Memory Module: BANK 0/DIMM1, 4 GB, DDR3, 1333 MHz, 0x859B, 0x435434473353313333394D2E43313646314B
Memory Module: BANK 1/DIMM1, 4 GB, DDR3, 1333 MHz, 0x859B, 0x435434473353313333394D2E43313646314B
AirPort: spairport_wireless_card_type_airport_extreme (0x168C, 0x8F), Atheros 9280: 4.0.74.0-P2P
Bluetooth: Version 5.0.2d9, 3 services, 27 devices, 1 incoming serial ports
Network Service: Ethernet, Ethernet, en0
Network Service: AirPort, AirPort, en1
Serial ATA Device: ST31000528AS, 1 TB
Serial ATA Device: OPTIARC DVD RW AD-5680H
USB Device: USB 2.0 Bus
USB Device: Hub
USB Device: iPhone
USB Device: IR Receiver
USB Device: Built-in iSight
USB Device: USB 2.0 Bus
USB Device: Hub
USB Device: Card Reader
USB Device: BRCM2046 Hub
USB Device: Bluetooth USB Host Controller
Thunderbolt Bus:

共有2个答案

束阳旭
2023-03-14

我也有一样的——除了屏幕是黑色的,一切都正常。答案很简单:

@property (weak, nonatomic) IBOutlet UIView *loadView;

避免使用名称为loadView的属性

赵灼光
2023-03-14

问题已经解决。我更新到最新的8.2测试版(8C30a),一切正常。还不知道原因,所以没有真正的答案。

 类似资料:
  • 升级到xcode8后,我的项目将不再在模拟器上运行(在一个设备上运行) 错误: 我已经删除了整个deriveddata文件夹,并多次清理项目,但没有成功。有什么办法可以修好的吗?

  • 我用的是Xcode 10。没有足够的空间更新到最新的Xcode。所以从苹果网站下载了它,并删除了旧的Xcode。为了腾出更多空间,我删除了所有的缓存、不可用的模拟器、派生数据和不需要的东西。之后安装了新的Xcode 11.3。 我的应用程序已成功构建。但模拟器只显示黑屏。 我试过了 “删除所有内容和设置” 而且还 默认写com。苹果核心模拟器。IndigoFramebufferServices帧缓

  • 当我在开发iOS应用程序时,我需要在模拟器中测试它与黑暗模式选项,这样我就可以获得更清晰的应用程序用户界面。但当我去设置,我没有得到黑暗模式作为真实设备显示选项。

  • 我在尝试使用ios应用程序上的滑动功能时遇到问题。目前正在将Appium v1.3.5与Cucumber/RubyMine v7.04联合使用。 我尝试使用一个范围的x,y坐标。然而,我仍然只能刷一半,无法点击屏幕上的元素。 以前有人遇到过这个问题吗? 请发送错误消息:

  • 本文向大家介绍Xcode8 更新解决模拟器找不到的方法,包括了Xcode8 更新解决模拟器找不到的方法的使用技巧和注意事项,需要的朋友参考一下 更新了Xcode8后,模拟器莫名的消失了。看了一下Xcode文件夹,SDK都在 首先试试重启电脑和Xcode后看看模拟器出现了没,没有的话只能重新建模拟器了。 方法如下: 1.打开Xcode->Winwos->Devices 2.点击左下角小图标Add S

  • 我有一个libgdx应用程序。当我使用libgdx 1.1.4和robovm 1.0.0时,它在Android和IOS上都运行良好。Beta版本。最近我升级到libgdx 1.6.3和robovm 1.4。现在Android版本工作正常,但IOS应用程序有一点小故障。问题是,如果我按下home按钮暂停应用程序,然后恢复它,我会得到一个黑屏。应用程序不会崩溃。我也没有在日志中看到任何东西。 有人知道