简体   繁体   English

如何解决“无法初始化uikit.uiimage类型的实例:图标选项卡式页面中的本机initwithcontentsofFile”错误

[英]How to resolve 'could not initialize an instance of the type uikit.uiimage : The native initwith contentsofFile' errors in icons tabbed page

I am very struggle to fix this strange issue. 我很难解决这个奇怪的问题。 In my application using tabbed page with icons but when try to build getting exception. 在我的应用程序中,使用带有图标的选项卡式页面,但是尝试构建异常时。 From last three months it's working fine. 从最近三个月开始,一切正常。 last day on wards it's getting build issue. 在病房的最后一天,它出现了构建问题。 please suggest any idea to fix this. 请提出任何解决方案。 Thanks in advance. 提前致谢。

1) Check that build action for icon is set to Bundle Resource 1)检查图标的构建操作是否设置为捆绑资源

2) Check the file name. 2)检查文件名。 If it contains capital letters, remove the file from the project, rename to lowercase and then add again. 如果包含大写字母,请从项目中删除文件,重命名为小写,然后再次添加。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Xamarin.Forms iOS UIKit.UIImage错误 - Xamarin.Forms iOS UIKit.UIImage Error 无法从UIKit.UIImage转换为ZXing.LuminanceSource-Visual Studios 2017中的Xamarin iOS - cannot convert from UIKit.UIImage to ZXing.LuminanceSource - Xamarin iOS in Visual Studios 2017 Unicode URL =无法初始化“Foundation.NSUrl”类型的实例:本机“initWithString:” - Unicode URL = Could not initialize an instance of the type 'Foundation.NSUrl': the native 'initWithString:' 如何在 XAML 中居中选项卡式页面选项卡图标和/或文本? - How to center Tabbed Page Tab Icons and/or text in XAML? 无法解析类型:IMvxPictureChooserTask> - Could not resolve type: IMvxPictureChooserTask> 如何在 xamarin forms 中显示带有可滚动而不是更多(3 个点)的选项卡式图标 - How to show the tabbed icons with scrollable instead of more(3 dots) in xamarin forms 无法使用令牌0100000f解析类型 - Could not resolve type with token 0100000f 如何在Xamarin iOS中将图标从UIBarButtonSystemItem转换为UIImage - How to convert icons from UIBarButtonSystemItem into a UIImage in Xamarin iOS 如何在Xamarin的XAML中设置标签页的内容页面? - How to setup a content page of a tabbed page in XAML in Xamarin? 如何在选项卡页面之前添加内容页面或视图 - How to add content page or view before tabbed page
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM