8

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

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.

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.

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."

How do I solve the problem?

Emma
  • 27,428
  • 11
  • 44
  • 69
ben_fm
  • 83
  • 1
  • 1
  • 3

3 Answers3

17

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

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

Just remember to remove when issue is resolved!

enter image description here

edhnb
  • 2,122
  • 3
  • 24
  • 38
  • I tried that and it didn't work (I'm now in Xcode 10 btw). I click add user setting, put in "LD_VERIFY_BITCODE", and type in NO in the other side. I'm getting the nonzero exit code error. – ben_fm Jul 19 '19 at 21:02
  • Never mind, I changed something else with the architectures and it finally uploaded! I've been at this for days so thank you. – ben_fm Jul 19 '19 at 22:08
  • Glad you got it going. is sucks to get delayed by this kind of stuff :) – edhnb Jul 20 '19 at 00:11
  • 1
    @ben_fm Can you elaborate on what "changed something else with the architectures" means? – bsberry Apr 01 '20 at 16:27
  • I’d like to hear this too. Still running into this in Sep 2020 – Ryan Tremblay Sep 01 '20 at 04:58
  • However, my issue is with a specific third party framework. See this OSS repo: https://github.com/zaptrem/react-native-transcription It integrates deepspeech_ios.framework (also open source) and works with both debug and release, but archiving fails unless this flag is enabled. – Ryan Tremblay Sep 01 '20 at 05:09
1

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

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

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

Anand Kore
  • 1,300
  • 1
  • 15
  • 33
0

I update Xcode to 14.1, and fix this Hundreds of compile errors. You can try to update newest xcode.

leonardosccd
  • 1,503
  • 11
  • 12