【发布时间】:2016-12-05 01:57:44
【问题描述】:
我遇到以下错误,即使我清理或重建后,错误仍然出现。该文件不是由 Xamarin 自动生成的吗?
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets:错误:System.IO.FileNotFoundException:/Users/simonlam/Desktop/Application Repository/App/iOS/ obj/iPhone/Debug/build-iphone5.4-9.3/ibtool-link/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib 不存在 文件名:'/Users/simonlam/Desktop/Application Repository/App/iOS/obj/iPhone/Debug/build-iphone5.4-9.3/ibtool-link/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5- 6b-2t3.nib' 在 System.IO.File.Copy (System.String sourceFileName, System.String destFileName, System.Boolean overwrite) [0x000d1] in :0 在 Xamarin.MacDev.Tasks.SmartCopyTaskBase.CopyFile (System.String 源,System.String 目标,System.String targetItemSpec) [0x0002e] 在 :0 在 Xamarin.MacDev.Tasks.SmartCopyTaskBase.Execute () [0x00121] 在 :0
【问题讨论】:
-
该文件可能由项目模板自动创建,但您仍然可以删除/重命名/破坏它。如果您已将其删除,请检查您的 info.plist 以查看是否有对其的引用。
-
在 info.plist ->Deployment Info 下,Main Interface 部分是空白的,但不确定它之前是否为空白,因为我没有触及该部分。现在我把 LaunchScreen 放在那里,但错误仍然存在。
-
您的 iOS 应用项目中有 LaunchScreen.storyboard 文件吗?您是否在 Info.plist->Launch Images->LaunchScreen 字段中指定了启动屏幕?如果是这样,如果您不想在启动屏幕上使用情节提要,请尝试将其删除。
-
谢谢,我想我通过删除编译时自动生成的 obj 文件夹解决了。
标签: ios xamarin nib file-not-found