Xamarin.iOS 无法编译项目“应用程序是为比此模拟器更新的 iOS 10.2 构建的" [英] Xamarin.iOS Can't compile project "app was built for iOS 10.2 which is newer than this simulator"

查看:41
本文介绍了Xamarin.iOS 无法编译项目“应用程序是为比此模拟器更新的 iOS 10.2 构建的"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Xamarin.iOS,现在我正在使用 库(来自 GitHub) 提供了一些 Material UI 元素,它已经有一个 Xamarin 绑定和一些示例,问题是我无法编译示例项目.

I'm working with Xamarin.iOS, right now I'm doing some test with a library(from GitHub) that provides some Material UI elements, it already have a Xamarin binding and some samples, the problem is that I can't compile the samples project.

我收到以下错误:dyld:应用程序是为 iOS 10.2 构建的,它比此模拟器 10.1 更新

/Users/user/Projects/MaterialControls.Xamarin.Sample/iOS/LaunchScreen.storyboard:错误:dyld:应用程序是为比此模拟器 10.1 更新的 iOS 10.2 构建的2017-03-10 11:57:49.396 ibtoold[3878:537684] [MT] DVTAssertions:警告在/Library/Caches/com.apple.xbs/Sources/IDEInterfaceBuilder/IDEInterfaceBuilder-11762/InterfaceBuilderKit/ManagerInterface.IB254详细信息:无法附加到 Interface Builder Cocoa Touch Tool,错误为:Error Domain=com.apple.InterfaceBuilder Code=-1在与 Interface Builder Cocoa Touch Tool 通信时遇到错误."UserInfo={NSUnderlyingError=0x7fdce34aea00 {Error Domain=com.apple.InterfaceBuilder Code=-1无法通过 CoreSimulator spawn 启动 Interface Builder Cocoa Touch Tool" UserInfo={NSLocalizedDescription=无法通过 CoreSimulator spawn 启动 Interface Builder Cocoa Touch Tool,NSUnderlyingError=0x7fdce345dfb0 {Error Domain=com.apple.InterfaceBuilder Code=-1 "与平台工具握手失败" UserInfo={NSUnderlyingError=0x7fdce3467550 {Error Domain=com.apple.InterfaceBuilder Code=-1 "" UserInfo=0x7fdce0c18e70 ()}, NSLocalizedFailureReason=使用平台工具打开FIFO连接失败, NSLocalizedDescription=使用平台工具握手失败}}}}, NSLocalizedDescription=与Interface Builder Cocoa Touch Tool通信时遇到错误., NSLocalizedRecoverySuggestion=请检查Console.appInterface Builder Cocoa Touch Tool"的崩溃报告以获取更多信息., NSLocalizedFailureReason=Interface Builder Cocoa Touch Tool (3880) 失败ed 以状态 6} 启动和退出目的:方法:+_THREADSAFE_launchNewToolWithLaunchContext:executionContext:toolProxyClass:failureContext:requestingMethod:error:forReason:主题:{number = 1, name = main}请在 http://bugreport.apple.com 上提交错误,并附上此警告消息和您可以获得的任何有用信息提供.2017-03-10 11:57:49.563 ibtoold[3878:537684] [MT] IBPlatformTool: *** 无法启动工具描述系统内容 2x for IBCcoaTouchFramework-NineOneAndLater w/默认保真度:遇到错误与 Interface Builder Cocococo 通信触摸工具.(失败原因:Interface Builder Cocoa Touch Tool (3880) 无法启动并以状态 6 退出):无法通过 CoreSimulator spawn 启动 Interface Builder Cocoa Touch Tool:无法与平台工具握手(失败原因:无法通过 FIFO 打开连接)使用平台工具):: 无法打开用于与平台工具握手的 FIFO(失败原因:Interface Builder Cocoa Touch Tool 在我们可以握手之前退出)2017 年 3 月 10 日 11:58:00.489 ibtoold[3878:537684] [MT] IBPlatformTool:将失败的编组请求诊断写入路径:/var/folders/ys/w39_59552d9f24bfwk9cvjqlm0100000000000000057-55_996000(MaterialControls.Xamarin.Sample.iOS)

/Users/user/Projects/MaterialControls.Xamarin.Sample/iOS/LaunchScreen.storyboard: Error: dyld: app was built for iOS 10.2 which is newer than this simulator 10.1 2017-03-10 11:57:49.396 ibtoold[3878:537684] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEInterfaceBuilder/IDEInterfaceBuilder-11762/InterfaceBuilderKit/Utilities/IBAbstractInterfaceBuilderPlatformToolManager.m:254 Details: Failed to attach to Interface Builder Cocoa Touch Tool with error: Error Domain=com.apple.InterfaceBuilder Code=-1 "Encountered an error communicating with Interface Builder Cocoa Touch Tool." UserInfo={NSUnderlyingError=0x7fdce34aea00 {Error Domain=com.apple.InterfaceBuilder Code=-1 "Failed to launch Interface Builder Cocoa Touch Tool via CoreSimulator spawn" UserInfo={NSLocalizedDescription=Failed to launch Interface Builder Cocoa Touch Tool via CoreSimulator spawn, NSUnderlyingError=0x7fdce345dfb0 {Error Domain=com.apple.InterfaceBuilder Code=-1 "Failed to handshake with platform tool" UserInfo={NSUnderlyingError=0x7fdce3467550 {Error Domain=com.apple.InterfaceBuilder Code=-1 "" UserInfo=0x7fdce0c18e70 (not displayed)}, NSLocalizedFailureReason=Failed to open connection over FIFOs with platform tool, NSLocalizedDescription=Failed to handshake with platform tool}}}}, NSLocalizedDescription=Encountered an error communicating with Interface Builder Cocoa Touch Tool., NSLocalizedRecoverySuggestion=Please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" for further information., NSLocalizedFailureReason=Interface Builder Cocoa Touch Tool (3880) failed to launch and exited with status 6} Object: Method: +_THREADSAFE_launchNewToolWithLaunchContext:executionContext:toolProxyClass:failureContext:requestingMethod:error:forReason: Thread: {number = 1, name = main} Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide. 2017-03-10 11:57:49.563 ibtoold[3878:537684] [MT] IBPlatformTool: *** Failed to launch tool with description System content 2x for IBCocoaTouchFramework-NineOneAndLater w/ default fidelity: Encountered an error communicating with Interface Builder Cocoa Touch Tool. (Failure reason: Interface Builder Cocoa Touch Tool (3880) failed to launch and exited with status 6): Failed to launch Interface Builder Cocoa Touch Tool via CoreSimulator spawn: Failed to handshake with platform tool (Failure reason: Failed to open connection over FIFOs with platform tool): : Failed to open FIFOs for handshaking with platform tool (Failure reason: Interface Builder Cocoa Touch Tool exited before we could handshake) 2017-03-10 11:58:00.489 ibtoold[3878:537684] [MT] IBPlatformTool: Wrote failed marshalling request diagnostics to path: /var/folders/ys/w39_59552d9f24bfwk9cvjlm0000gq/T/IB-agent-diagnostics_2017-03-10_11-57-55_996000 (MaterialControls.Xamarin.Sample.iOS)

这是我尝试过的:

  • 更新 Xcode(已经有最新版本 8.2.1 8C1002)
  • 更新到 macOS Sierra
  • 再次更新 Xcode(它说它为 Sierra 安装了一些新工具)
  • 更新 Xamarin Studio(已经有最新版本)
  • 更新项目包
  • 尝试使用 10.2 创建模拟器,但它没有显示为选项
  • 尝试安装 10.2 运行时,但它没有显示为下载选项
  • 尝试在 10.2.1 (14D27) 的 iPhone 上运行
  • 将部署目标更改为不同的版本

以上都没有奏效,我不断收到同样的错误.我对 iOS 开发还很陌生,我只在 Android 上使用过 Xamarin,所以我可能会遗漏一些明显的东西.

None of the above worked, I keep getting the same error. I'm very new to developing for iOS, I've used Xamarin for Android only, so I might be missing something obvious.

任何帮助将不胜感激.

推荐答案

在尝试了很多解决方案后,我最终完全重新安装了 Xcode,解决了我遇到的任何错误.

After trying a lot of solutions I ended up reinstalling Xcode completely, that fixed whatever error I had.

我建议任何有此问题或类似问题的人,如果在尝试解决此问题两三次后仍然有问题,请停止像我一样浪费时间并直接重新安装.

I suggest to anyone with this or similar problems that if after two or three attempts to fix this you still have issues, stop wasting time like me and go straight for a full reinstall.

这篇关于Xamarin.iOS 无法编译项目“应用程序是为比此模拟器更新的 iOS 10.2 构建的"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆