IBUIColor.m中的断言失败-Xamarin.iOS

问题描述 投票:0回答:1

突然我的Xamarin iOS项目没有建立。我上一次提交的情节提要版正在运行,但是文件中的任何细微更改都会产生以下错误。

MainController.storyboard : error : 2019-11-19 19:53:33.159 ibtoold[9510:345883] [MT] DVTAssertions: ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEInterfaceBuilder/IDEInterfaceBuilder-15505/InterfaceBuilderKit/ImageCatalog/Library/IBUIColor.m:105

MainController.storyboard : error : Details:  nsColor should be an instance inheriting from NSColor, but it is IBUIColor

MainController.storyboard : error : Object:   <IBUIColor: 0x7fd6420a5290>

MainController.storyboard : error : Method:   -initWithNSColor:

这里是完整的日志:https://del.dog/obapeletof

这里是完整的xcode崩溃日志:https://del.dog/oyibarutoc

如果我尝试在xcode中打开文件,则会产生相同的错误并使Xcode崩溃。我现在真的很无知是什么导致了错误。我尝试在xml格式的Storyboard中搜索nscolor,没有!

xcode xamarin xamarin.ios visual-studio-mac
1个回答
0
投票

出于某种原因,Xamarin iOS设计器从StoryBoard资源中删除了我下面的自定义颜色资产

<namedColor name="lightdarkcolor">
        <color colorSpace="custom" customColorSpace="sRGB" red="0" green="0" blue="0" alpha="1" />
</namedColor>

我必须手动将其添加到后面的情节提要代码中。而且似乎xamarin ios设计器正在为每个项目使用颜色资产(可能是在最近更新之后)。

© www.soinside.com 2019 - 2024. All rights reserved.