草庐IT

ios - Xcode 6.3 更新导致 ide 卡住并需要强制退出

coder 2023-07-16 原文

我刚刚将 Xcode 更新到新的 6.3 版本,但遇到了问题。每次当我使用 MainStoryboard 从 Interface Builder 转到任何代码文件时,我都会获得加载进度并且应用程序被卡住。我什么也做不了,我必须使用 Force quit 退出 Xcode 并再次运行,但我遇到了同样的问题。它仅适用于我的一个应用程序,其他应用程序都可以,Xcode 运行良好。我不确定是什么问题。有问题的应用程序在 Storyboard 中有很多 View ,但我的其他应用程序也有。它很快,但我尝试了一些其他示例项目,没问题。

我真的很想解决这个问题,所以我在强制退出后从信息中提取了前几行:

Date/Time:       2015-04-10 14:10:12 +0200
OS Version:      10.10.3 (Build 14D131)
Architecture:    x86_64
Report Version:  21

Command:         Xcode
Path:            /Applications/Xcode.app/Contents/MacOS/Xcode
Version:         6.3 (7569)
Build Version:   2
Project Name:    IDEFrameworks
Source Version:  7569000000000000
Parent:          launchd [1]
PID:             594

Event:           hang
Duration:        1.10s (process was unresponsive for 320 seconds before sampling)
Steps:           12 (100ms sampling interval)

Hardware model:  MacBookPro10,2
Active cpus:     4

Fan speed:       2162 rpm

--------------------------------------------------
Timeline format: stacks are sorted chronologically
Use -i and -heavy to re-report with count sorting
--------------------------------------------------

Heaviest stack for the main thread of the target process:
  12  start + 1 (libdyld.dylib + 13769) [0x7fff8b86b5c9]
  12  NSApplicationMain + 1832 (AppKit + 13140) [0x7fff9947f354]
  12  -[NSApplication run] + 594 (AppKit + 551923) [0x7fff99502bf3]
  12  ??? (<2D862ACB-D0E0-3846-A777-5B2C3034C408> + 1318362) [0x110276dda]
  12  -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346 (AppKit + 593768) [0x7fff9950cf68]
  12  _DPSNextEvent + 978 (AppKit + 596411) [0x7fff9950d9bb]
  12  _BlockUntilNextEventMatchingListInModeWithFilter + 71 (HIToolbox + 205099) [0x7fff910e812b]
  12  ReceiveNextEventCommon + 431 (HIToolbox + 205546) [0x7fff910e82ea]
  12  RunCurrentEventLoopInMode + 235 (HIToolbox + 206191) [0x7fff910e856f]
  12  CFRunLoopRunSpecific + 296 (CoreFoundation + 465880) [0x7fff8f2d7bd8]
  12  __CFRunLoopRun + 2024 (CoreFoundation + 468488) [0x7fff8f2d8608]
  12  __CFRunLoopDoTimers + 301 (CoreFoundation + 1221949) [0x7fff8f39053d]
  12  __CFRunLoopDoTimer + 1059 (CoreFoundation + 749427) [0x7fff8f31cf73]
  12  __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20 (CoreFoundation + 750308) [0x7fff8f31d2e4]
  12  __NSFireDelayedPerform + 364 (Foundation + 308251) [0x7fff9883b41b]
  12  ??? (<053704CD-4B33-3C59-915F-0979F48157F0> + 844193) [0x110e221a1]
  12  ??? (<053704CD-4B33-3C59-915F-0979F48157F0> + 845367) [0x110e22637]
  12  ??? (<053704CD-4B33-3C59-915F-0979F48157F0> + 847265) [0x110e22da1]
  12  ??? (<053704CD-4B33-3C59-915F-0979F48157F0> + 2337454) [0x110f8eaae]
  12  ??? (<053704CD-4B33-3C59-915F-0979F48157F0> + 847466) [0x110e22e6a]
  12  ??? (<053704CD-4B33-3C59-915F-0979F48157F0> + 847855) [0x110e22fef]
  12  ??? (<053704CD-4B33-3C59-915F-0979F48157F0> + 848146) [0x110e23112]
  12  ??? (<053704CD-4B33-3C59-915F-0979F48157F0> + 848562) [0x110e232b2]
  12  ??? (<053704CD-4B33-3C59-915F-0979F48157F0> + 850427) [0x110e239fb]
  12  ??? (<053704CD-4B33-3C59-915F-0979F48157F0> + 2115290) [0x110f586da]
  12  ??? (<053704CD-4B33-3C59-915F-0979F48157F0> + 571839) [0x110ddf9bf]
  12  ??? (<053704CD-4B33-3C59-915F-0979F48157F0> + 361406) [0x110dac3be]
  12  ??? (<053704CD-4B33-3C59-915F-0979F48157F0> + 361754) [0x110dac51a]
  12  ??? (<053704CD-4B33-3C59-915F-0979F48157F0> + 2108389) [0x110f56be5]
  12  ??? (<053704CD-4B33-3C59-915F-0979F48157F0> + 2101698) [0x110f551c2]
  12  -[NSView removeFromSuperviewWithoutNeedingDisplay] + 38 (AppKit + 1359529) [0x7fff995c7ea9]
  12  -[NSView removeFromSuperview] + 435 (AppKit + 438399) [0x7fff994e707f]
  12  -[NSView _setSuperview:] + 675 (AppKit + 259352) [0x7fff994bb518]
  12  ??? (<2D862ACB-D0E0-3846-A777-5B2C3034C408> + 108788) [0x11014f8f4]
  12  ??? (<2D862ACB-D0E0-3846-A777-5B2C3034C408> + 289845) [0x11017bc35]
  12  ??? (<2D862ACB-D0E0-3846-A777-5B2C3034C408> + 2318676) [0x11036b154]
  12  ??? (<F77F04E0-7640-3115-8245-6052DFF052E0> + 3633286) [0x11a70c086]
  12  ??? (<F77F04E0-7640-3115-8245-6052DFF052E0> + 56886) [0x11a3a2e36]
  12  ??? (<F77F04E0-7640-3115-8245-6052DFF052E0> + 1194480) [0x11a4b89f0]
  12  ??? (<F77F04E0-7640-3115-8245-6052DFF052E0> + 1193538) [0x11a4b8642]
  12  ??? (<F77F04E0-7640-3115-8245-6052DFF052E0> + 1199009) [0x11a4b9ba1]
  12  ??? (<F77F04E0-7640-3115-8245-6052DFF052E0> + 1344856) [0x11a4dd558]
  12  ??? (<0AC21504-55BC-3F11-BE13-5E0FEC1759C1> + 209920) [0x11fdd4400]
  12  ??? (<0AC21504-55BC-3F11-BE13-5E0FEC1759C1> + 249917) [0x11fdde03d]
  12  ??? (<0AC21504-55BC-3F11-BE13-5E0FEC1759C1> + 246203) [0x11fddd1bb]
  12  ??? (<F77F04E0-7640-3115-8245-6052DFF052E0> + 868598) [0x11a4690f6]
  12  ??? (<0AC21504-55BC-3F11-BE13-5E0FEC1759C1> + 246373) [0x11fddd265]
  12  ??? (<0AC21504-55BC-3F11-BE13-5E0FEC1759C1> + 250364) [0x11fdde1fc]
  12  ??? (<F77F04E0-7640-3115-8245-6052DFF052E0> + 2629753) [0x11a617079]
  12  _dispatch_barrier_sync_f_slow + 597 (libdispatch.dylib + 46423) [0x7fff8ebdf557]
  12  semaphore_wait_trap + 10 (libsystem_kernel.dylib + 70938) [0x7fff935de51a]
 *12  semaphore_wait_continue + 0 (kernel + 1357760) [0xffffff800034b7c0]


Process:         Xcode [594]
Path:            /Applications/Xcode.app/Contents/MacOS/Xcode
Architecture:    x86_64
Parent:          launchd [1]
UID:             501
Sudden Term:     Dirty
Task size:       71539 pages
CPU Time:        0.005s
Note:            Unresponsive for 320 seconds before sampling
Note:            2 idle work queue threads omitted

  Thread 0x6341       DispatchQueue 1     12 samples (1-12)   priority 47
  <frontmost, thread QoS user interactive, boosted, received importance donation from WindowServer [142], IO policy important>
  12  start + 1 (libdyld.dylib + 13769) [0x7fff8b86b5c9] 1-12
    12  NSApplicationMain + 1832 (AppKit + 13140) [0x7fff9947f354] 1-12
      12  -[NSApplication run] + 594 (AppKit + 551923) [0x7fff99502bf3] 1-12
        12  ??? (<2D862ACB-D0E0-3846-A777-5B2C3034C408> + 1318362) [0x110276dda] 1-12
          12  -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346 (AppKit + 593768) [0x7fff9950cf68] 1-12
            12  _DPSNextEvent + 978 (AppKit + 596411) [0x7fff9950d9bb] 1-12
              12  _BlockUntilNextEventMatchingListInModeWithFilter + 71 (HIToolbox + 205099) [0x7fff910e812b] 1-12
                12  ReceiveNextEventCommon + 431 (HIToolbox + 205546) [0x7fff910e82ea] 1-12
                  12  RunCurrentEventLoopInMode + 235 (HIToolbox + 206191) [0x7fff910e856f] 1-12
                    12  CFRunLoopRunSpecific + 296 (CoreFoundation + 465880) [0x7fff8f2d7bd8] 1-12
                      12  __CFRunLoopRun + 2024 (CoreFoundation + 468488) [0x7fff8f2d8608] 1-12
                        12  __CFRunLoopDoTimers + 301 (CoreFoundation + 1221949) [0x7fff8f39053d] 1-12
                          12  __CFRunLoopDoTimer + 1059 (CoreFoundation + 749427) [0x7fff8f31cf73] 1-12
                            12  __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20 (CoreFoundation + 750308) 

有没有办法解决这个问题?或者也许有一些技巧可以帮助我?谢谢

最佳答案

感谢 Carrl,我找到了另一个 question with similar problem (不同之处在于,当我试图从 IB 获取时,我的 Xcode 卡住了)它对我有帮助。与其他问题一样,我实际上是在使用带有 @IBDesignable 标签的自定义 View ,在某些情况下我使用的是自定义字体。

所以我的解决方案:

首先,我删除了 Project.xcworkspace 中的文件夹 xcuserdata,然后我能够运行项目并搜索具有 @IBDesignable 标记的文件并将其删除。现在看来它起作用了。

关于ios - Xcode 6.3 更新导致 ide 卡住并需要强制退出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29561193/

有关ios - Xcode 6.3 更新导致 ide 卡住并需要强制退出的更多相关文章

  1. ruby-on-rails - 如何验证 update_all 是否实际在 Rails 中更新 - 2

    给定这段代码defcreate@upgrades=User.update_all(["role=?","upgraded"],:id=>params[:upgrade])redirect_toadmin_upgrades_path,:notice=>"Successfullyupgradeduser."end我如何在该操作中实际验证它们是否已保存或未重定向到适当的页面和消息? 最佳答案 在Rails3中,update_all不返回任何有意义的信息,除了已更新的记录数(这可能取决于您的DBMS是否返回该信息)。http://ar.ru

  2. ruby - 如何在 Lion 上安装 Xcode 4.6,需要用 RVM 升级 ruby - 2

    我实际上是在尝试使用RVM在我的OSX10.7.5上更新ruby,并在输入以下命令后:rvminstallruby我得到了以下回复:Searchingforbinaryrubies,thismighttakesometime.Checkingrequirementsforosx.Installingrequirementsforosx.Updatingsystem.......Errorrunning'requirements_osx_brew_update_systemruby-2.0.0-p247',pleaseread/Users/username/.rvm/log/138121

  3. ruby-on-rails - 使用 rails 4 设计而不更新用户 - 2

    我将应用程序升级到Rails4,一切正常。我可以登录并转到我的编辑页面。也更新了观点。使用标准View时,用户会更新。但是当我添加例如字段:name时,它​​不会在表单中更新。使用devise3.1.1和gem'protected_attributes'我需要在设备或数据库上运行某种更新命令吗?我也搜索过这个地方,找到了许多不同的解决方案,但没有一个会更新我的用户字段。我没有添加任何自定义字段。 最佳答案 如果您想允许额外的参数,您可以在ApplicationController中使用beforefilter,因为Rails4将参数

  4. ruby - 如何验证 IO.copy_stream 是否成功 - 2

    这里有一个很好的答案解释了如何在Ruby中下载文件而不将其加载到内存中:https://stackoverflow.com/a/29743394/4852737require'open-uri'download=open('http://example.com/image.png')IO.copy_stream(download,'~/image.png')我如何验证下载文件的IO.copy_stream调用是否真的成功——这意味着下载的文件与我打算下载的文件完全相同,而不是下载一半的损坏文件?documentation说IO.copy_stream返回它复制的字节数,但是当我还没有下

  5. Ruby 文件 IO 定界符? - 2

    我正在尝试解析一个文本文件,该文件每行包含可变数量的单词和数字,如下所示:foo4.500bar3.001.33foobar如何读取由空格而不是换行符分隔的文件?有什么方法可以设置File("file.txt").foreach方法以使用空格而不是换行符作为分隔符? 最佳答案 接受的答案将slurp文件,这可能是大文本文件的问题。更好的解决方案是IO.foreach.它是惯用的,将按字符流式传输文件:File.foreach(filename,""){|string|putsstring}包含“thisisanexample”结果的

  6. Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting - 2

    1.错误信息:Errorresponsefromdaemon:Gethttps://registry-1.docker.io/v2/:net/http:requestcanceledwhilewaitingforconnection(Client.Timeoutexceededwhileawaitingheaders)或者:Errorresponsefromdaemon:Gethttps://registry-1.docker.io/v2/:net/http:TLShandshaketimeout2.报错原因:docker使用的镜像网址默认为国外,下载容易超时,需要修改成国内镜像地址(首先阿里

  7. objective-c - 在设置 Cocoa Pods 和安装 Ruby 更新时出错 - 2

    我正在尝试为我的iOS应用程序设置cocoapods但是当我执行命令时:sudogemupdate--system我收到错误消息:当前已安装最新版本。中止。当我进入cocoapods的下一步时:sudogeminstallcocoapods我在MacOS10.8.5上遇到错误:ERROR:Errorinstallingcocoapods:cocoapods-trunkrequiresRubyversion>=2.0.0.我在MacOS10.9.4上尝试了同样的操作,但出现错误:ERROR:Couldnotfindavalidgem'cocoapods'(>=0),hereiswhy:U

  8. Ruby 守护进程导致 ActiveRecord 记录器 IOError - 2

    我目前正在用Ruby编写一个项目,它使用ActiveRecordgem进行数据库交互,我正在尝试使用ActiveRecord::Base.logger记录所有数据库事件具有以下代码的属性ActiveRecord::Base.logger=Logger.new(File.open('logs/database.log','a'))这适用于迁移等(出于某种原因似乎需要启用日志记录,因为它在禁用时会出现NilClass错误)但是当我尝试运行包含调用ActiveRecord对象的线程守护程序的项目时脚本失败并出现以下错误/System/Library/Frameworks/Ruby.frame

  9. ruby-on-rails - Rails Associations 的更新方法是什么? - 2

    这太简单了,太荒谬了,我在任何地方都找不到关于它的任何信息,包括API文档和Rails源代码:我有一个:belongs_to关联,我开始理解当您没有关联时您在Controller中调用的正常模型方法与您有关联时调用的方法略有不同。例如,我的关联在创建Controller操作时运行良好:@user=current_user@building=Building.new(params[:building])respond_todo|format|if@user.buildings.create(params[:building])#etcetera但我找不到关于更新如何工作的文档:@user

  10. ruby - 为什么不能使用类IO的实例方法noecho? - 2

    print"Enteryourpassword:"pass=STDIN.noecho(&:gets)puts"Yourpasswordis#{pass}!"输出:Enteryourpassword:input.rb:2:in`':undefinedmethod`noecho'for#>(NoMethodError) 最佳答案 一开始require'io/console'后来的Ruby1.9.3 关于ruby-为什么不能使用类IO的实例方法noecho?,我们在StackOverflow上

随机推荐