Xcode 4.5 故事板崩溃

2023-12-06

很多时候,当我尝试在 Storyboard 中编辑 UILabels 时,Xcode 会崩溃。有什么想法可能导致这种情况吗?看起来它与自动布局约束之一有关。这是错误报告:

Process:         Xcode [43938]
Path:            /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:      com.apple.dt.Xcode
Version:         4.5 (1839)
Build Info:      IDEApplication-1839000000000000~3
App Item ID:     497799835
App External ID: 10747437
Code Type:       X86-64 (Native)
Parent Process:  launchd [43283]

Date/Time:       2012-10-01 09:43:36.443 -0400
OS Version:      Mac OS X 10.7.4 (11E53)
Report Version:  9
Sleep/Wake UUID: 8C7C93A7-0BEF-42C6-944C-488D8C7896DD

Interval Since Last Report:          152594 sec
Crashes Since Last Report:           6
Per-App Interval Since Last Report:  135715 sec
Per-App Crashes Since Last Report:   5
Anonymous UUID:                      E745D8FE-362B-4FD2-8594-7EC5C26767B2

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

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

Application Specific Information:
ProductBuildVersion: 4G182
ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilderCocoaTouch/IDEInterfaceBuilderCocoaTouch-1926/IBPlugin/Utilities/IBObjectMarshalling.m:651
Details:  Failed to start deciding frames for IBNSLayoutConstraint, IBUILabel, IBUITabBarItem, IBUITableView, IBUIView, and IBUIViewController.

Interface Builder encountered an error communicating with the iOS Simulator. If you choose to file a crash report or radar for this issue, please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" and include their content in your crash report.

Exception name: IBAssertionFailure
Exception reason: ASSERTION FAILURE: realConstraint
Reason:     Should have found real constraint for represented constraint <NSLayoutConstraint:0x86a8c30 H:[UIView:0x868a0f0(71)]>
File:       /SourceCache/IBAutolayoutFoundationIOS/IBAutolayoutFoundation-1818/Framework/Classes/Arbitration/IBAutolayoutEngine.m:223
Method:     __76-[IBAutolayoutEngine realConstraintsFromCollectionOfRepresentedConstraints:]_block_invoke_0
Exception backtrace: 
  0. CoreFoundation           0x022a4012 __exceptionPreprocess
  1. libobjc.A.dylib          0x01703e7e objc_exception_throw
  2. CoreFoundation           0x0232cfb1 -[NSException raise]
  3. ???                      0x0000beae [IBCocoaTouchTool startAutolayoutFrameDecisionSessionWithRequest:document:]
  4. ???                      0x000342a5 [IBMessageReceiveChannel deliverMessage:toTarget:withArguments:result:]
  5. ???                      0x00033fa9 [IBMessageReceiveChannel deliverMessage:toTarget:withArguments:result:]
  6. ???                      0x00033c47 [IBMessageReceiveChannel runBlockingReceiveLoopNotifyingQueue:notifyingTarget:]
  7. libdispatch.dylib        0x04c3d731 _dispatch_barrier_sync_f_slow_invoke
  8. libdispatch.dylib        0x04c4c014 _dispatch_client_callout
  9. libdispatch.dylib        0x04c3c7d5 _dispatch_main_queue_callback_4CF
 10. CoreFoundation           0x0224aaf5 __CFRunLoopRun
 11. CoreFoundation           0x02249f44 CFRunLoopRunSpecific
 12. CoreFoundation           0x02249e1b CFRunLoopRunInMode
 13. Foundation               0x01308c7c -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
 14. ???                      0x0000cf06 [IBCocoaTouchTool startServingReceiveChannel:]
 15. ???                      0x0000d09f [IBCocoaTouchTool startServingWithSocket:]
 16. ???                      0x0000e1b7 [IBCocoaTouchTool .cxx_destruct]
 17. ???                      0x00002365 ???
Exception info:{
}

我有同样的问题......在使用“圆角矩形按钮”的故事板中工作时,它崩溃了。有时只有一两个按钮,有时我可以添加十个按钮,然后它就会崩溃。

编辑: 经过一些实验后,我在故事板的“文件检查器”中取消选中“使用自动布局”,它可以工作。 也许你会尝试一下。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Xcode 4.5 故事板崩溃 的相关文章

  • 允许沙盒应用程序的 HID 控制

    我们正在尝试对我们的应用程序进行沙箱处理 以将其提交到 Mac App Store 这是第一次 它很难使用较低级别的 Carbon API 并且无法以其他方式操作 当我启用沙箱时 某些功能停止工作 我在日志中看到以下消息 9 14 12 1
  • 归档时出现“没有此类模块”错误

    我的 Swift 4 应用程序在所有模拟器上重建并成功运行 除了Generic iOS Device 如果我尝试将其存档或重建Generic iOS Device 我得到一个No such module与我的 Pod 框架之一相关的错误 我
  • 如何从我的 appDelegate 访问我的 viewController? iOS系统

    我有一个在 xCode 中创建为 基于视图的应用程序 的 iOS 应用程序 我只有一个 viewController 但它会自动显示 而且我没有看到任何将它与我的 appDelegate 关联的代码 我需要将数据从 appDelegate
  • 有没有[转到文件...]?

    在现代 IDE 中 有一个键盘快捷键可以通过键入文件名来打开文件 而无需将手放在鼠标上 例如 Eclipse Cmd Ctrl Shift R gt Open Resource IntelliJ Cmd Ctrl Shift N gt Op
  • Objective C - 如何从 NSAttributedString 创建 rtf

    我可以使用以下方法从 rtf 字符串转换为属性字符串 NSAttributedString attributedStr NSAttributedString alloc initWithData data options NSDocumen
  • 我现在可以使用新的 Xcode 4.2 开发者预览版来发布常规应用程序吗?

    长话短说 如果我在 Mac 上下载并安装新的 Xcode 4 2 开发者预览版并开始开发新的 iOS 5 应用程序 我仍然可以使用它来开发和发布 iOS 4 x 应用程序吗 我现在无法安装该平台的两个不同版本 可能你们当中有人已经尝试过并且
  • SwiftUI 中如何防止键盘推高视图? [复制]

    这个问题在这里已经有答案了 我是 SwiftUI 编程新手 我已经创建了一个视图 但是一旦用户点击文本字段 键盘就会出现 整个视图就会向上推 我该如何解决这个问题 我相信你可以使用 ignoresSafeArea keyboard 我在 X
  • 在 UINavigationController 中使用 UISearchController 和 UITabBarController 时,搜索栏被切断

    我有一个应用程序有一个UITabBarController in a UINavigationController The UITabBarController不是故事板的 初始视图控制器 在最初的UIViewController 我有一个
  • 用户 displayName 在电子邮件注册方法的 .onCreate 触发器中未定义

    我尝试实施 onCreatefirebase 云函数就像 Firebase 云函数 codeLab 中一样 https codelabs developers google com codelabs firebase cloud funct
  • 减缓 Push Segue 的过渡

    我想知道是否有一种方法可以像 Tinder 和 Snapchat 那样减慢 推进和返回 速度 这就像正常的转场 但不知怎的 它过渡得很慢 我通常通过在 Storyboard 上设置推送通知并以编程方式调用 segue 来处理推送 Segue
  • 如何防止点击 Google 地图中的标记时相机移动?

    我正在使用适用于 iOS 的 Google 地图 SDK 我想在点击标记时防止相机移动 我怎样才能做到呢 在viewDidLoad中添加以下代码 BOOL mapView GMSMapView mapView didTapMarker GM
  • 收到 fcm 推送通知时设置应用程序徽章

    我正在使用 FCM 进行云消息传递 当我在后台和前台应用程序状态下收到来自服务器的推送通知时 我想添加应用程序徽章 我缺少什么 主要问题是根据推送通知添加 更新 删除应用程序徽章 我可以接收和处理推送消息 我在这个问题上花了 3 天 请帮帮
  • 如何保存 UIButton 的属性并使用按钮加载? [复制]

    这个问题在这里已经有答案了 可能的重复 如何在应用程序中保存和加载 UIButton 的 alpha 值 https stackoverflow com questions 7336594 how can i save and load t
  • 加快故事板打开速度

    当我打开 Storyboard 文件时 由于其中包含 VC 的数量 需要 1 2 分钟才能打开 加快速度的最佳做法是什么 我们是否应该将一些 VC 移动到不同的故事板文件中 我们是否应该使用更多的 xib 文件来减少 VC 中的元素数量 对
  • 如何通过触摸按钮在 swift 2 中播放 m4a 文件?

    当我触摸按钮时 如何播放音频文件 我在网上找不到任何东西 因为它都是 swift 1 我想要音频代码original功能 import UIKit import AVFoundation class ViewController UIVie
  • PreferredStatusBarStyle 不起作用[重复]

    这个问题在这里已经有答案了 我以前用过setStatusBarStyle在我的项目中 它工作正常 但它已被弃用 所以我使用preferredStatusBarStyle 那不起作用 知道我已经 调用方法setNeedsStatusBarAp
  • Spotify:使用网络 API 登录不接受重定向 URL

    我正在尝试使用 Web API 登录 Spotify 因为我不需要会话对象 在我的授权方法中 我需要传入重定向 url 但 GET 请求中不接受 iOS 重定向 url 的格式化方式 func authorize create the ur
  • 如何将此脚本安装到 PhoneGap for iOS 中

    我不了解任何 Objective C 这就是我使用 PhoneGap 来创建 iOS 应用程序的原因 iOS 版 PhoneGap 存在一个很大的缺陷 键盘上经常有表单助手 下一个 上一个 和 完成 按钮 网上关于如何摆脱这个的信息很少 所
  • iOS 8.0 中的 UISearchBar barTintColor clearColor 错误

    在我的应用程序中我正在使用UISearchBar在 xib 与Xcode6 我给的条形锡颜色是透明颜色 它正在努力iOS 7 1 below 但主要问题在于iOS 8 0它的颜色不清晰 它显示黑色 看图片 任何对这个问题有冒险精神的人 我在
  • 在 iOS Swift 中将 NSDate 转换为字符串 [重复]

    这个问题在这里已经有答案了 我正在尝试转换NSDate to a String然后更改格式 但当我经过NSDate to String它正在产生空白 let formatter DateFormatter let myString Stri

随机推荐