ios - 当我尝试创建从 UIWebview 到头文件的导出时,Xcode 崩溃

标签 ios iphone objective-c xcode uiwebview

我目前在运行 OSX Yosemite 的 Macbook Pro 上使用 Xcode 5。我正在尝试创建一个从 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, 4 GB, DDR3, 1067 MHz, 0x859B, 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 中尝试连接头文件。

关于ios - 当我尝试创建从 UIWebview 到头文件的导出时,Xcode 崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24442274/

相关文章:

ios应用程序在 Debug模式下运行完美,但在 Release模式下崩溃

iphone - 通过 UIButton 将 UITableViewController 移回顶部

iphone - 错误 : expected specifier-qualifier-list before. ..在 Objective C 中?

html - 无法在 Cocoa 的 HTML webview 中设置表格的最大宽度

ios - [NSConcreteValue浮点值] : unrecognized selector sent to instance

ios - 如何使用 Swift 2.0 在 Parse.com (REST API) 中上传图像并将其与用户关联

iphone - 标签栏的隐藏显示空白(即使框架是全屏的)

ios - 使用 Objective C 以编程方式进行约束

ios - 当项目删除另一个 mac 时找不到 AFNetworking.h 文件

iphone - 在 USplitView iOS 5.1 中加载和隐藏主视图