Earlier versions of Xcode not working

I need Xcode 10 to update some swift 3 code. But it fails to open . Never had this problem before. I have a MacBook Pro, BigSur 11.4. Any ideas about this problem? Anyone? Thanks

Replies

You should be able to do this directly in more recent Xcode.

  • Open project. You get this alert:

  • Type OK and open Issues Navigator.
  • Find the warning for project Settings:
  • Click on each alert and validate changes when requested.

  • You should then get a compilation error, with Swift version undefined:

  • Open Project settings and search for Swift

  • There, in Swift Language Version, select Swift 5.

Now project should compile (in fact you will get a lot of API errors because of changes since Xcode 8), but project can now be handled in the recent Xcode.

  • Thanks. I Tried it. Didn't work.

    So any idea why earlier versions of Xcode crash as soon as I open them? And what can be done to fix that?

    Thanks again!

  • why earlier versions of Xcode crash as soon as I open them? Apple made it so. what can be done to fix that? As far as I know, there is no sure way. Better find other ways than using old Xcode.

  • What I described is how to use RECENT versions of XCode, not old ones. What didn't work? I do this frequently when I need to work on an old project.

a tip to make this easier: switch it to SWIFT 4 and THEN convert it to 5... gives fewer errors.