Questions tagged «xcode4.5»



17
iOS模拟器无法安装应用程序
我创建了一个Cordova 2.1.0应用程序,在最初的2-3次中运行良好。但是现在当我尝试通过终端运行它时,出现了以下错误,我没有进行任何更改。 Ankurs-Mac-mini:~ ankur$ /Users/ankur/Desktop/CordovaSMS/cordova/emulate Ankurs-Mac-mini:~ ankur$ 2012-10-17 16:11:08.695 ios-sim[7032:507] stderrPath: /Users/ankur/Desktop/CordovaSMS/cordova/console.log 2012-10-17 16:11:08.698 ios-sim[7032:507] stdoutPath: /Users/ankur/Desktop/CordovaSMS/cordova/console.log [DEBUG] Session could not be started: Error Domain=DTiPhoneSimulatorErrorDomain Code=1 "iOS Simulator failed to install the application." UserInfo=0x7fc643902320 {NSLocalizedDescription=iOS Simulator failed to install the application., DTiPhoneSimulatorUnderlyingErrorCodeKey=-1} 任何帮助,将不胜感激。谢谢

30
UITableViewCell子类“执行-layoutSubviews之后仍需要自动布局”
使用XCode 4.5和iOS 6,我正在开发带有带有自定义单元格的简单表格视图的应用程序。我已经在iOS 5及更低版本中完成了一百次,但是由于某种原因,新的autoLayout系统给我带来了很多麻烦。 我在IB中设置了表格视图和原型单元,添加了子视图并将其连接为IBOutlets,然后设置了我的委托和数据源。但是现在,无论何时从中获取第一个单元格cellForRowAtIndexPath,我都会遇到以下错误: ***-[[ShopCell layoutSublayersOfLayer:],/ SourceCache / UIKit_Sim / UIKit-2372 / UIView.m:5776中的断言失败 ***由于未捕获的异常“ NSInternalInconsistencyException”而终止应用程序,原因:“执行-layoutSubviews之后仍需要自动布局。ShopCell的-layoutSubviews实现需要调用超级。” 我尚未在我的子类化单元(ShopCell)中实现-layoutSubviews方法,即使我尝试这样做并添加超级调用也是如此,因为这表明我仍然遇到相同的错误。如果我从IB的单元格中删除子视图,然后将其更改为标准的UITableViewCell,则一切都会按预期进行,尽管我的单元格中当然没有数据。 我几乎可以肯定,我缺少一些简单的东西,但是找不到任何文档或指南来建议我做错了什么。任何帮助,将不胜感激。 编辑:只是尝试将其更改为IB中的UITableViewCell,并将所有子视图保留在原处,仍然是相同的错误。




21
如何解决iPhone中的“命令/ bin / sh失败,退出代码为1”的问题
我在应用程序中使用了可可静态库。编译库时,出现以下错误: Shell Script invocation error:can't open input file: /Users/sijuthomas/Library/Developer/Xcode/DerivedData/SCXML2- bbttehupryhijphhjdiemcytkvgy/Build/Products/Debug-iphonesimulator/ libSCXMLParser.a (No such file or directory) Command /bin/sh failed with exit code 1 我怎样才能解决这个问题?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.