ios – 当我尝试从UIWebview到头文件创建一个插槽时,Xcode崩溃

前端之家收集整理的这篇文章主要介绍了ios – 当我尝试从UIWebview到头文件创建一个插槽时,Xcode崩溃前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在Macbook Pro上使用 Xcode 5,它运行的是OSX Yosemite.我正在尝试从UIWebview创建一个到头文件的插座.当我放开鼠标来创建连接时,Xcode将冻结并崩溃.无论我做了什么,这一再发生.我已经尝试重新启动Xcode和我的Macbook.有没有人有这个问题或知道如何解决它?谢谢!

我已经添加了崩溃的日志(我不能包括回溯,因为它超出了身体的最大字符)

  1. Process: Xcode [1631]
  2. Path: /Applications/Xcode.app/Contents/MacOS/Xcode
  3. Identifier: com.apple.dt.Xcode
  4. Version: 5.1.1 (5085)
  5. Build Info: IDEFrameworks-5085000000000000~10
  6. App Item ID: 497799835
  7. App External ID: 520942841
  8. Code Type: X86-64 (Native)
  9. Parent Process: ??? [1]
  10. Responsible: Xcode [1631]
  11. User ID: 502
  12.  
  13. Date/Time: 2014-06-26 21:50:34.616 -0400
  14. OS Version: Mac OS X 10.10 (14A238x)
  15. Report Version: 11
  16. Anonymous UUID: 6D3E70F1-91EB-79A5-FAB6-2929D7E8A66F
  17.  
  18. Sleep/Wake UUID: C86C5452-A655-43AA-9D11-92BE0F080F3E
  19.  
  20. Time Awake Since Boot: 11000 seconds
  21. Time Since Wake: 510 seconds
  22.  
  23. Crashed Thread: 0 Dispatch queue: com.apple.main-thread
  24.  
  25. Exception Type: EXC_CRASH (SIGABRT)
  26. Exception Codes: 0x0000000000000000,0x0000000000000000
  27.  
  28. Application Specific Information:
  29. ProductBuildVersion: 5B1008
  30. ASSERTION FAILURE in /SourceCache/DVTFrameworks/DVTFrameworks-5074/DVTKit/ViewControllers/DVTControllerContentView.m:280
  31. Details: <DVTControllerContentView: 0x7fe687d170a0> can only have one subview,its contentView
  32. Object: <DVTControllerContentView: 0x7fe687d170a0>
  33. Method: -addSubview:
  34. Thread: <NSThread: 0x7fe682d086a0>{number = 1,name = main}
  35. Hints: None
  36.  
  37.  
  38. External Modification Summary:
  39. Calls made by other processes targeting this process:
  40. task_for_pid: 1
  41. thread_create: 0
  42. thread_set_state: 0
  43. Calls made by this process:
  44. task_for_pid: 0
  45. thread_create: 0
  46. thread_set_state: 0
  47. Calls made by all processes on this machine:
  48. task_for_pid: 4286
  49. thread_create: 0
  50. thread_set_state: 0
  51.  
  52. VM Region Summary:
  53. ReadOnly portion of Libraries: Total=404.2M resident=289.4M(72%) swapped_out_or_unallocated=114.9M(28%)
  54. Writable regions: Total=1.2G written=71.9M(6%) resident=141.4M(11%) swapped_out=0K(0%) unallocated=1.1G(89%)
  55.  
  56. REGION TYPE VIRTUAL
  57. =========== =======
  58. Activity Tracing 2048K
  59. CG backing stores 4084K
  60. CG image 19.3M
  61. CG raster data 92K
  62. CG shared images 1324K
  63. CoreAnimation 880K
  64. CoreAnimation (reserved) 12K reserved VM address space (unallocated)
  65. CoreData Object IDs 4100K
  66. CoreImage 264K
  67. CoreUI image data 180K
  68. Dispatch continuations 4096K
  69. Foundation 16K
  70. IOKit 13.8M
  71. IOKit (reserved) 4K reserved VM address space (unallocated)
  72. Image IO 700K
  73. JS JIT generated code 8K
  74. JS JIT generated code (reserved) 1.0G reserved VM address space (unallocated)
  75. Kernel Alloc Once 8K
  76. MALLOC 114.7M
  77. MALLOC (admin) 32K
  78. Memory Tag 242 12K
  79. Memory Tag 249 156K
  80. Memory Tag 251 80K
  81. OpenCL 16K
  82. OpenGL GLSL 256K
  83. sqlite page cache 4352K
  84. STACK GUARD 56.1M
  85. Stack 15.7M
  86. VM_ALLOCATE 16.9M
  87. WebKit Malloc 464K
  88. __DATA 60.1M
  89. __GLSLBUILTINS 2588K
  90. __IMAGE 528K
  91. __LINKEDIT 100.5M
  92. __TEXT 304.0M
  93. __UNICODE 544K
  94. mapped file 152.6M
  95. shared memory 68K
  96. =========== =======
  97. TOTAL 1.9G
  98. TOTAL,minus reserved VM space 879.9M
  99.  
  100.  
  101. Model: MacBookPro7,1,BootROM MBP71.0039.B0E,2 processors,Intel Core 2 Duo,2.4 GHz,8 GB,SMC 1.62f7
  102. Graphics: NVIDIA GeForce 320M,NVIDIA GeForce 320M,PCI,256 MB
  103. Memory Module: BANK 0/DIMM0,4 GB,DDR3,1067 MHz,0x859B,0x435435313236344243313036372E4D313646
  104. Memory Module: BANK 1/DIMM0,0x435435313236344243313036372E4D313646
  105. AirPort: spairport_wireless_card_type_airport_extreme (0x14E4,0x8D),Broadcom BCM43xx 1.0 (5.106.98.100.24)
  106. Bluetooth: Version 4.3.0d49 14130,3 services,16 devices,1 incoming serial ports
  107. Network Service: Wi-Fi,AirPort,en1
  108. Serial ATA Device: Hitachi HTS545032B9SA02,320.07 GB
  109. Serial ATA Device: HL-DT-ST DVDRW GS23N
  110. USB Device: Built-in iSight
  111. USB Device: Internal Memory Card Reader
  112. USB Device: BRCM2046 Hub
  113. USB Device: Bluetooth USB Host Controller
  114. USB Device: IR Receiver
  115. USB Device: Apple Internal Keyboard / Trackpad
  116. Thunderbolt Bus:

解决方法

我想你应该在头文件中声明一个IBOutlet.然后在Storyboard中,尝试连接头文件.

猜你在找的iOS相关文章