xcode xamarin.forms:ibtool 退出,代码为 1,不再支持编译早于 iOS 7 的 IB 文档
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/46408137/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
xamarin.forms: ibtool exited with code 1, Compiling IB documents for earlier than iOS 7 is no longer supported
提问by Briefkasten
Since, I upgraded to xCode 9 on my Mac I get the following error when compiling:
自从我在 Mac 上升级到 xCode 9 后,编译时出现以下错误:
Error ibtool exited with code 1
Error Compiling IB documents for earlier than iOS 7 is no longer supported.
错误 ibtool exited with code 1
Error Compiling IB 文档早于 iOS 7 不再支持。
As suggested hereI don't have a project setting in visual studio (on windows) with an option "Build for: iOS 10 and later".
正如此处所建议的,我在 Visual Studio(在 Windows 上)中没有带有“Build for: iOS 10 and later”选项的项目设置。
Also, I'm working on a Xamarin.Forms project, so I don't have any storyboards. How can I solve this issue?
另外,我正在处理 Xamarin.Forms 项目,所以我没有任何故事板。我该如何解决这个问题?
[EDIT] I'm working with the Visual Studio IDE on Windows. I use the mac only for building the iOS Apps.
[编辑] 我在 Windows 上使用 Visual Studio IDE。我只使用 Mac 来构建 iOS 应用程序。
回答by AQuirky
The problem is that your deployment target in info.plist is set to 6.0. Set it to at least 7.0 and you will be fine.
问题是您在 info.plist 中的部署目标设置为 6.0。将它设置为至少 7.0,你会没事的。
回答by SushiHangover
I am going to assumethat you have an older LaunchScreen.storyboard
within your Xamarin.iOS
application project.
我将假设LaunchScreen.storyboard
您的Xamarin.iOS
应用程序项目中有一个较旧的。
I do not know how to edit those setting within the VS4M Storyboard editor, so right click on the LaunchScreen.storyboard
and open it with the Xcode Interface Builder
.
我不知道如何在 VS4M Storyboard 编辑器中编辑这些设置,所以右键单击LaunchScreen.storyboard
并使用Xcode Interface Builder
.
In the right-hand column, the File Inspector
should be the default view, change it as shown in the SO answer that you linked:
在右侧栏中,File Inspector
应该是默认视图,按照您链接的 SO 答案中所示进行更改:
Do a File
/ Save
, exit Xcode, and do a cleanand re-build your solution. I had to do this with a couple of old Xamarin.Forms
solutions.
执行File
/ Save
,退出 Xcode,然后进行清理并重新构建您的解决方案。我不得不用几个旧的Xamarin.Forms
解决方案来做到这一点。
回答by MRizwan33
回答by user5266363
I Did This And Be OK : I had xcode 10-beta and xcode 9.2 and i was using xcode 9.2 for build my projects by steps I did These steps :
我做了这个并且没问题:我有 xcode 10-beta 和 xcode 9.2,我正在使用 xcode 9.2 来构建我的项目,我做了这些步骤:
- Change Xcode Path From IOSSetting In Options To : /applications/xcode-beta.app and Select A Device And Run Project . Project Runs Successfully
- Then Again Return to IOSSetting In Options And Return Path to /applications/xcode.app
- 将 IOSSetting 中的 Xcode 路径更改为:/applications/xcode-beta.app 并选择设备并运行项目。项目运行成功
- 然后再次返回到 IOSSetting 中的选项并返回到 /applications/xcode.app 的路径
And select device and run successfully .
并选择设备并成功运行。