iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
walkingway
V2EX  ›  iDev

xcode 4.5非6.0的模拟器运行最简单的程序,main函数上显示“ Thread 1: signal SIGABRT ”

  •  
  •   walkingway · Oct 2, 2012 · 8153 views
    This topic created in 4992 days ago, the information mentioned may be changed or developed.
    比如我新建个项目,什么都code都没有,这时运行无论5.1还是6.0都是ok的,然后随便拖个label上去,再运行6.0 ok,5.0和5.1就在main函数上显示“ Thread 1: signal SIGABRT ”,请教各位大神,这是怎么回事呢。

    还有之前用非xcode4.5 写的code运行也是ok的
    5 replies    1970-01-01 08:00:00 +08:00
    walkingway
        1
    walkingway  
    OP
       Oct 2, 2012
    找到原因了,原来是xcode4.5的问题

    解决方法, 选中当前的 xib文件,

    再右边的 inspector 一栏 将 interface builder document 下的 use autolayout 复选框去掉就可以了
    Radeon
        2
    Radeon  
       Oct 2, 2012
    Interface Builder这种在属性器里隐藏大量关键信息的做法,让开发者退回到了VB时代
    xuan_lengyue
        3
    xuan_lengyue  
       Oct 2, 2012
    @Radeon 那么所有的IDE都可以去死了,存在即合理。
    xatest
        4
    xatest  
       Oct 2, 2012
    升级4.5在iOS 6调试也被这个坑过,不过在StackOverflow已经有人被坑过了~
    iOS 6下调试需要把APP测试全面回归一次,在iOS 5.1跑得过的地方不一定在iOS 6跑得过~
    zhigang1992
        5
    zhigang1992  
       Oct 3, 2012
    同被坑过,载入nib的时候读取的frame是错的。得等几个毫秒让xcode把autolayout转成frame才能用。。。用不了还是关了吧,不过AutoLayout在功能上的确不错.:)
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1376 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 23:53 · PVG 07:53 · LAX 16:53 · JFK 19:53
    ♥ Do have faith in what you're doing.