更新Xcode项目时出错。从Xamarin.Studio打开XIB时参数无效

时间:2014-11-07 09:12:13

标签: ios xcode xamarin.ios xamarin xib

我无法在项目中打开任何XIB文件。 详情如下:

  • 安装了最新的Xamarin.iOS sdk(8.4)
  • Xamarin Studio(稳定频道)
  • 5.5.3 Build 6 xCode - 6.1

错误详情:

System.IO.IOException: Invalid parameter
  at System.IO.File.SetLastWriteTime (System.String path, DateTime lastWriteTime) [0x00029] in /private/tmp/source-mono-mac-3.10.0-branch/bockbuild-mono-3.10.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.10.0/mcs/class/corlib/System.IO/File.cs:474 
  at MonoDevelop.MacDev.ObjCIntegration.NSObjectTypeInfo.GenerateObjcType (System.String directory, System.String[] frameworks) [0x004d1] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.5-branch/fbe3e945/source/md-addins/MonoDevelop.MacDev/MonoDevelop.MacDev/ObjCIntegration/NSObjectTypeInfo.cs:236 
  at MonoDevelop.MacDev.XcodeSyncing.XcodeSyncedType.SyncOut (IProgressMonitor monitor, MonoDevelop.MacDev.XcodeSyncing.XcodeSyncContext context) [0x00033] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.5-branch/fbe3e945/source/md-addins/MonoDevelop.MacDev/MonoDevelop.MacDev/XcodeSyncing/XcodeSyncedType.cs:82 
  at MonoDevelop.MacDev.XcodeSyncing.XcodeMonitor.UpdateProject (IProgressMonitor monitor, System.Collections.Generic.List`1 allItems, MonoDevelop.MacDev.XcodeIntegration.XcodeProject emptyProject) [0x00417] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.5-branch/fbe3e945/source/md-addins/MonoDevelop.MacDev/MonoDevelop.MacDev/XcodeSyncing/XcodeMonitor.cs:164 
  at MonoDevelop.MacDev.XcodeSyncing.XcodeProjectTracker.UpdateXcodeProject (IProgressMonitor monitor) [0x00050] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.5-branch/fbe3e945/source/md-addins/MonoDevelop.MacDev/MonoDevelop.MacDev/XcodeSyncing/XcodeProjectTracker.cs:517 

3 个答案:

答案 0 :(得分:3)

根据this thread,一个解决方法帮助了我。 转到〜/ Library / Caches并删除所有XamarinStudio-XX文件夹

答案 1 :(得分:1)

这是在下周初提交的5.5.4中修复的。上面提到的工作是一种可能的解决方案。

答案 2 :(得分:0)

我有类似的问题,但没有消息"无效的参数"。 在我的情况下问题是我不小心将DS_Store包含在csproj中。我修复了使用文本编辑器打开csproj的问题,并删除了连接到包含DS_Store的所有行到项目

尝试从* .csproj文件中删除与此类似的代码:

<ImageAsset Include="Resources\Images.xcassets\.DS_Store">
    <Visible>false</Visible>
</ImageAsset>