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

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

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

Process:               Xcode [1631]
Path:                  /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:            com.apple.dt.Xcode
Version:               5.1.1 (5085)
Build Info:            IDEFrameworks-5085000000000000~10
App Item ID:           497799835
App External ID:       520942841
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Xcode [1631]
User ID:               502

Date/Time:             2014-06-26 21:50:34.616 -0400
OS Version:            Mac OS X 10.10 (14A238x)
Report Version:        11
Anonymous UUID:        6D3E70F1-91EB-79A5-FAB6-2929D7E8A66F

Sleep/Wake UUID:       C86C5452-A655-43AA-9D11-92BE0F080F3E

Time Awake Since Boot: 11000 seconds
Time Since Wake:       510 seconds

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

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

Application Specific Information:
ProductBuildVersion: 5B1008
ASSERTION FAILURE in /SourceCache/DVTFrameworks/DVTFrameworks-5074/DVTKit/ViewControllers/DVTControllerContentView.m:280
Details:  <DVTControllerContentView: 0x7fe687d170a0> can only have one subview,its contentView
Object:   <DVTControllerContentView: 0x7fe687d170a0>
Method:   -addSubview:
Thread:   <NSThread: 0x7fe682d086a0>{number = 1,name = main}
Hints:   None


External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 1
    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: 4286
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=404.2M resident=289.4M(72%) swapped_out_or_unallocated=114.9M(28%)
Writable regions: Total=1.2G written=71.9M(6%) resident=141.4M(11%) swapped_out=0K(0%) unallocated=1.1G(89%)

REGION TYPE                        VIRTUAL
===========                        =======
Activity Tracing                     2048K
CG backing stores                    4084K
CG image                             19.3M
CG raster data                         92K
CG shared images                     1324K
CoreAnimation                         880K
CoreAnimation (reserved)               12K        reserved VM address space (unallocated)
CoreData Object IDs                  4100K
CoreImage                             264K
CoreUI image data                     180K
Dispatch continuations               4096K
Foundation                             16K
IOKit                                13.8M
IOKit (reserved)                        4K        reserved VM address space (unallocated)
Image IO                              700K
JS JIT generated code                   8K
JS JIT generated code (reserved)      1.0G        reserved VM address space (unallocated)
Kernel Alloc Once                       8K
MALLOC                              114.7M
MALLOC (admin)                         32K
Memory Tag 242                         12K
Memory Tag 249                        156K
Memory Tag 251                         80K
OpenCL                                 16K
OpenGL GLSL                           256K
sqlite page cache                    4352K
STACK GUARD                          56.1M
Stack                                15.7M
VM_ALLOCATE                          16.9M
WebKit Malloc                         464K
__DATA                               60.1M
__GLSLBUILTINS                       2588K
__IMAGE                               528K
__LINKEDIT                          100.5M
__TEXT                              304.0M
__UNICODE                             544K
mapped file                         152.6M
shared memory                          68K
===========                        =======
TOTAL                                 1.9G
TOTAL,minus reserved VM space      879.9M


Model: MacBookPro7,1,BootROM MBP71.0039.B0E,2 processors,Intel Core 2 Duo,2.4 GHz,8 GB,SMC 1.62f7
Graphics: NVIDIA GeForce 320M,NVIDIA GeForce 320M,PCI,256 MB
Memory Module: BANK 0/DIMM0,4 GB,DDR3,1067 MHz,0x859B,0x435435313236344243313036372E4D313646
Memory Module: BANK 1/DIMM0,0x435435313236344243313036372E4D313646
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4,0x8D),Broadcom BCM43xx 1.0 (5.106.98.100.24)
Bluetooth: Version 4.3.0d49 14130,3 services,16 devices,1 incoming serial ports
Network Service: Wi-Fi,AirPort,en1
Serial ATA Device: Hitachi HTS545032B9SA02,320.07 GB
Serial ATA Device: HL-DT-ST DVDRW  GS23N
USB Device: Built-in iSight
USB Device: Internal Memory Card Reader
USB Device: BRCM2046 Hub
USB Device: Bluetooth USB Host Controller
USB Device: IR Receiver
USB Device: Apple Internal Keyboard / Trackpad
Thunderbolt Bus:

解决方法

我想你应该在头文件中声明一个IBOutlet.然后在Storyboard中,尝试连接头文件.
原文链接:https://www.f2er.com/iOS/330113.html

猜你在找的iOS相关文章