gpt4 book ai didi

xcode - Xcode不断崩溃

转载 作者:行者123 更新时间:2023-12-03 15:56:31 25 4
gpt4 key购买 nike

我刚刚开始为iOS编程。我尝试为一个简单的计算器添加回车按钮并更改其大小,但是Xcode一直崩溃。这是报告:

Process:         Xcode [406]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 4.5.1 (1842)

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

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

Application Specific Information:
ProductBuildVersion: 4G1004
ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilderCocoaTouch/IDEInterfaceBuilderCocoaTouch-1929/IBPlugin/Utilities/IBObjectMarshalling.m:651
Details: Failed to arbitrate IBNSLayoutConstraint, IBUIButton, IBUILabel, 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:
Reason: All views needing candidate constraints have already had constraints generated. This most likely indicates a bug involving layout of the following views:
Layout engine frame ({{20, 20}, {282, 36}}) of <UILabel: 0x81f5560; frame = (20 20; 281 36); text = '0'; clipsToBounds = YES; opaque = NO; autoresize = TM+BM; userInteractionEnabled = NO; layer = <CALayer: 0x815cdd0>> does not match canvas frame ({{20, 20}, {281, 36}})

我已经尝试过重新安装Xcode并重置iOS模拟器。我有山狮。

最佳答案

请尝试以下步骤:

1) Right click on Storyboard in the navigator

2) Click on Show File Inspector

3) Uncheck "Use Autolayout"



希望这可以帮助

关于xcode - Xcode不断崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13003566/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com