将 Xcode 更新到 6.2 (6C131e) 后,执行“在工作区中查找”会崩溃并显示“未处理的异常 (NSInternalInconsistencyException):找不到名为 UIImage 的类”。我试过“清理构建文件夹”无济于事。我应该尝试重置其他 Xcode 缓存或索引吗?
Process: Xcode [21278]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 6.2 (6776)
Build Info: IDEFrameworks-6776000000000000~11
App Item ID: 497799835
App External ID: 811890240
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [21278]
User ID: 501
Date/Time: 2015-03-15 19:53:43.364 -0700
OS Version: Mac OS X 10.10.2 (14C1510)
Report Version: 11
Anonymous UUID: 539D7F12-9E6C-9CC5-F6D9-1FDBD16DF85D
Sleep/Wake UUID: B9E7A3DF-5CB3-4194-82BA-4445905D6A2D
Time Awake Since Boot: 120000 seconds
Time Since Wake: 340 seconds
Crashed Thread: 21 Dispatch queue: IDEBatchFindReplace_ConcurrentQueue :: NSOperation 0x7fdb7f20c550 (QOS: USER_INITIATED)
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 6C131e
UNCAUGHT EXCEPTION (NSInternalInconsistencyException): Could not find class named UIImage
UserInfo: (null)
Hints: None
Backtrace:
0 0x00007fff94143654 __exceptionPreprocess (in CoreFoundation)
1 0x0000000106601764 DVTFailureHintExceptionPreprocessor (in DVTFoundation)
2 0x00007fff9546176e objc_exception_throw (in libobjc.A.dylib)
3 0x00007fff9414344a +[NSException raise:format:arguments:] (in CoreFoundation)
4 0x00007fff928273a9 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] (in Foundation)
5 0x000000010d4bdf21 -[IBBinaryUnarchiver decodeObject] (in IBFoundation)
6 0x000000010d53ac3e +[IBUserDefinedRuntimeAttribute decodeWithBinaryUnarchiver:] (in IBFoundation)
7 0x000000010d4bdf47 -[IBBinaryUnarchiver decodeObject] (in IBFoundation)
8 0x000000010d4b93a0 -[NSDictionary(IBBinaryArchivingAdditions) initWithBinaryUnarchiver:] (in IBFoundation)
9 0x000000010d4b8411 +[NSObject(IBBinaryArchivingAdditions) decodeWithBinaryUnarchiver:] (in IBFoundation)
10 0x000000010d4bdf47 -[IBBinaryUnarchiver decodeObject] (in IBFoundation)
11 0x000000010d4bd017 +[IBBinaryUnarchiver unarchiveObjectWithData:context:minArchiveVersion:] (in IBFoundation)
12 0x00000001112c2aeb -[IBAttributeSearchLocation initWithPropertyList:owner:] (in IDEInterfaceBuilderKit)
13 0x00000001113faff8 -[IBSearchableAttributeDescription initWithPropertyList:owner:] (in IDEInterfaceBuilderKit)
14 0x00000001113fa3eb __64-[IBDocumentMemberSearchDescription initWithPropertyList:owner:]_block_invoke (in IDEInterfaceBuilderKit)
15 0x000000010d4c8be9 IBArrayByMappingCollectionWithBehavior (in IBFoundation)
16 0x00000001113fa2f6 -[IBDocumentMemberSearchDescription initWithPropertyList:owner:] (in IDEInterfaceBuilderKit)
17 0x00000001113f99cc __58-[IBDocumentSearchDescription initWithPropertyList:owner:]_block_invoke (in IDEInterfaceBuilderKit)
18 0x000000010d4c8be9 IBArrayByMappingCollectionWithBehavior (in IBFoundation)
19 0x00000001113f9923 -[IBDocumentSearchDescription initWithPropertyList:owner:] (in IDEInterfaceBuilderKit)
20 0x000000011161240e -[IBTextIndexDataProvider findableForFilePath:] (in IDEInterfaceBuilderKit)
21 0x00000001070f5abf -[IDETextIndex _computeFindableForFilePath:withDataProvider:] (in IDEFoundation)
22 0x00000001070f7e27 -[IDETextIndexTextFindableWrapper findStringMatchingDescriptor:backwards:from:to:] (in IDEFoundation)
23 0x00000001064c703a -[DVTTextFinder _findNext] (in DVTFoundation)
24 0x00000001064c6f36 -[DVTTextFinder findBeforeDate:] (in DVTFoundation)
25 0x0000000107adb62a -[IDEBatchDocumentFindable performFind] (in IDEKit)
26 0x00007fff9273c32c -[__NSOperationInternal _start:] (in Foundation)
27 0x00007fff9273bf33 __NSOQSchedule_f (in Foundation)
28 0x00007fff9670dc13 _dispatch_client_callout (in libdispatch.dylib)
29 0x00007fff96711365 _dispatch_queue_drain (in libdispatch.dylib)
30 0x00007fff96712ecc _dispatch_queue_invoke (in libdispatch.dylib)
31 0x00007fff967106b7 _dispatch_root_queue_drain (in libdispatch.dylib)
32 0x00007fff9671efe4 _dispatch_worker_thread3 (in libdispatch.dylib)
33 0x00007fff90950637 _pthread_wqthread (in libsystem_pthread.dylib)
34 0x00007fff9094e40d start_wqthread (in libsystem_pthread.dylib)
最佳答案
这是 xcode 中的一个错误,当您在 Xcode 6.2 中搜索字符串并且搜索在属于工作区的 Storyboard中找到实例时会发生。
在我们的案例中修复它的是打开、保存和关闭所有 Storyboard。
关于ios - 随着 Xcode 6.2 更新,在工作区中查找崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29069007/
我在从html页面生成PDF时遇到问题。我正在使用PDFkit。在安装它的过程中,我注意到我需要wkhtmltopdf。所以我也安装了它。我做了PDFkit的文档所说的一切......现在我在尝试加载PDF时遇到了这个错误。这里是错误:commandfailed:"/usr/local/bin/wkhtmltopdf""--margin-right""0.75in""--page-size""Letter""--margin-top""0.75in""--margin-bottom""0.75in""--encoding""UTF-8""--margin-left""0.75in""-
给定这段代码defcreate@upgrades=User.update_all(["role=?","upgraded"],:id=>params[:upgrade])redirect_toadmin_upgrades_path,:notice=>"Successfullyupgradeduser."end我如何在该操作中实际验证它们是否已保存或未重定向到适当的页面和消息? 最佳答案 在Rails3中,update_all不返回任何有意义的信息,除了已更新的记录数(这可能取决于您的DBMS是否返回该信息)。http://ar.ru
我在我的项目目录中完成了compasscreate.和compassinitrails。几个问题:我已将我的.sass文件放在public/stylesheets中。这是放置它们的正确位置吗?当我运行compasswatch时,它不会自动编译这些.sass文件。我必须手动指定文件:compasswatchpublic/stylesheets/myfile.sass等。如何让它自动运行?文件ie.css、print.css和screen.css已放在stylesheets/compiled。如何在编译后不让它们重新出现的情况下删除它们?我自己编译的.sass文件编译成compiled/t
为了将Cucumber用于命令行脚本,我按照提供的说明安装了arubagem。它在我的Gemfile中,我可以验证是否安装了正确的版本并且我已经包含了require'aruba/cucumber'在'features/env.rb'中为了确保它能正常工作,我写了以下场景:@announceScenario:Testingcucumber/arubaGivenablankslateThentheoutputfrom"ls-la"shouldcontain"drw"假设事情应该失败。它确实失败了,但失败的原因是错误的:@announceScenario:Testingcucumber/ar
我花了三天的时间用头撞墙,试图弄清楚为什么简单的“rake”不能通过我的规范文件。如果您遇到这种情况:任何文件夹路径中都不要有空格!。严重地。事实上,从现在开始,您命名的任何内容都没有空格。这是我的控制台输出:(在/Users/*****/Desktop/LearningRuby/learn_ruby)$rake/Users/*******/Desktop/LearningRuby/learn_ruby/00_hello/hello_spec.rb:116:in`require':cannotloadsuchfile--hello(LoadError) 最佳
当我在Rails控制台中按向上或向左箭头时,出现此错误:irb(main):001:0>/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/rb-readline-0.4.2/lib/rbreadline.rb:4269:in`blockin_rl_dispatch_subseq':invalidbytesequenceinUTF-8(ArgumentError)我使用rvm来管理我的ruby安装。我正在使用=>ruby-2.0.0-p247[x86_64]我使用bundle来管理我的gem,并且我有rb-readline(0.4.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
我将应用程序升级到Rails4,一切正常。我可以登录并转到我的编辑页面。也更新了观点。使用标准View时,用户会更新。但是当我添加例如字段:name时,它不会在表单中更新。使用devise3.1.1和gem'protected_attributes'我需要在设备或数据库上运行某种更新命令吗?我也搜索过这个地方,找到了许多不同的解决方案,但没有一个会更新我的用户字段。我没有添加任何自定义字段。 最佳答案 如果您想允许额外的参数,您可以在ApplicationController中使用beforefilter,因为Rails4将参数
关闭。这个问题需要detailsorclarity.它目前不接受答案。想改进这个问题吗?通过editingthispost添加细节并澄清问题.关闭8年前。Improvethisquestion在首页我有:汽车:VolvoSaabMercedesAudistatic_pages_spec.rb中的测试代码:it"shouldhavetherightselect"dovisithome_pathit{shouldhave_select('cars',:options=>['volvo','saab','mercedes','audi'])}end响应是rspec./spec/request
在Rails4.0.2中,我使用s3_direct_upload和aws-sdkgems直接为s3存储桶上传文件。在开发环境中它工作正常,但在生产环境中它会抛出如下错误,ActionView::Template::Error(noimplicitconversionofnilintoString)在View中,create_cv_url,:id=>"s3_uploader",:key=>"cv_uploads/{unique_id}/${filename}",:key_starts_with=>"cv_uploads/",:callback_param=>"cv[direct_uplo