上下文:Xcode 9.0(9A235)
当我尝试编辑我的故事板标签的本地化人员注释(插入Barty Crouch标记#bc-ignore!
)时,XCode 9崩溃。
此外,尝试编辑字体什么都不做。
对我来说,似乎是一个腐败的故事板,当然是在合并之后。
有没有人面临同样的问题?
编辑,非模棱两可的问题:
是否有修复可以避免崩溃或我是否需要手动编辑故事板?
Process: Xcode [66619]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 9.0 (13247)
Build Info: IDEFrameworks-13247000000000000~26
App Item ID: 497799835
App External ID: 823595305
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [66619]
User ID: 501
Date/Time: 2017-10-03 15:59:00.562 +0200
OS Version: Mac OS X 10.12.6 (16G29)
Report Version: 12
Anonymous UUID: 3A288ABF-30D0-A9E7-A02E-4BBD3B1BABB5
Sleep/Wake UUID: 22E57F41-2180-4AB1-AA1D-B1DCF99E683E
Time Awake Since Boot: 320000 seconds
Time Since Wake: 26000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
ProductBuildVersion: 9A235
ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEInterfaceBuilder/IDEInterfaceBuilder-13196/InterfaceBuilderKit/Utilities/IBAppKitSupport.m:388
Details: Unknown systemFontType: 132
Object: <NSFont: 0x7fc74354c640>
Method: -metaFont
Thread: <NSThread: 0x7fc73a40f910>{number = 1, name = main}
Hints:
Backtrace:
0 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit)
1 _DVTAssertionHandler (in DVTFoundation)
2 _DVTAssertionFailureHandler (in DVTFoundation)
3 -[NSFont(MethodsBasedOnPrivateState) metaFont] (in IDEInterfaceBuilderKit)
4 -[NSFont(IBDocumentArchiving) archiveWithDocumentArchiver:] (in IDEInterfaceBuilderKit)
5 __51-[IBDocumentArchiver archiveObject:forOptionalKey:]_block_invoke (in IDEInterfaceBuilderKit)
6 -[IBDocumentArchiver recurseWithArchiveToken:usingBlock:] (in IDEInterfaceBuilderKit)
7 -[IBDocumentArchiver recurseWithElementNamed:forObject:kind:invokingBlock:] (in IDEInterfaceBuilderKit)
答案 0 :(得分:4)
即使有一个全新的空白项目,它在编辑评论本地化程序时也会出现问题。这是一个Xcode 9问题。
作为一种变通方法,您可以通过添加此类块(例如直接位于.storyboard
块内)手动编辑<label>
文件:
<attributedString key="userComments">
<fragment content="Here goes your comment...">
<attributes>
<font key="NSFont" metaFont="smallSystem"/>
<paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/>
</attributes>
</fragment>
</attributedString>
答案 1 :(得分:0)
清理Xcode DerivedData文件夹。
重新运行Xcode。