如何在 Xcode 10 中打开 Xcode 11 Beta 4 项目?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/57104151/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 11:00:10  来源:igfitidea点击:

How to open a Xcode 11 Beta 4 project in Xcode 10?

iosswiftxcodexcode9xcode11

提问by ben_fm

I worked on a project in Xcode 11 Beta 4 and then downgraded to Xcode 10 and can't open the project.

我在 Xcode 11 Beta 4 中处理了一个项目,然后降级到 Xcode 10 并且无法打开该项目。

I want to submit my app to the app store, but I kept getting error messages in Xcode 11 beta 4. I'm a beginner and I know I tampered with the build settings trying to make it work. I deleted Xcode 11 and downloaded Xcode 10 to try and archive through that, but now I can't even open the project with Xcode 10.

我想将我的应用程序提交到应用程序商店,但我一直在 Xcode 11 beta 4 中收到错误消息。我是初学者,我知道我篡改了构建设置以使其正常工作。我删除了 Xcode 11 并下载了 Xcode 10 以尝试通过它进行存档,但现在我什至无法使用 Xcode 10 打开该项目。

I started the project on Xcode 9, I believe. I tried archiving, but there was an "SDK Version Issue", something with the old iOS. So I updated my Mac's operating system, and replaced Xcode 9 with Xcode 11 beta. That came with many more errors trying to archive, and I changed architectures and proxies and all that. So I deleted Xcode 11 and tried Xcode 10 but I can't open the project.

我相信我是在 Xcode 9 上开始这个项目的。我尝试存档,但是"SDK Version Issue"旧的 iOS有一个. 所以我更新了我的 Mac 操作系统,并用 Xcode 11 beta 替换了 Xcode 9。这带来了更多尝试存档的错误,我更改了架构和代理等等。所以我删除了 Xcode 11 并尝试了 Xcode 10,但我无法打开该项目。

It says:

它说:

"cannot be opened because it is in a future Xcode project file format. Adjust the project format using a compatible version of Xcode to allow it to be opened by this version of Xcode."

“无法打开,因为它是未来的 Xcode 项目文件格式。使用兼容版本的 Xcode 调整项目格式,使其能够被该版本的 Xcode 打开。”

How do I solve the problem?

我该如何解决问题?

回答by nab

You are probably getting a ton of Swift errors. The release notes for beta 4 acknowledge this is an issue.

您可能会收到大量 Swift 错误。beta 4 的发行说明承认这是一个问题。

The official workaround is to a custom build setting with the name LD_VERIFY_BITCODE, and set it to NO.

官方的解决方法是使用名称为 LD_VERIFY_BITCODE 的自定义构建设置,并将其设置为 NO。

Just remember to remove when issue is resolved!

请记住在问题解决后删除!

enter image description here

在此处输入图片说明

回答by Anand Kore

If problem still persists for XCode 11 beta 4, then try setting "Library Search Paths" to :

如果 XCode 11 beta 4 问题仍然存在,请尝试将“库搜索路径”设置为:

$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)

Credit: https://stackoverflow.com/a/57126566/5576675

信用:https: //stackoverflow.com/a/57126566/5576675