21

When trying to run app on my iPhone 4, Xcode 8 beta shows me this message:

This iPhone 4 is running iOS 7.1.2 (11D257), which may not be supported by this version of Xcode.

My app must support iOS 7. I read many answers they say that app build with Xcode 8 beta still can run on iOS 7 devices. So is there a way to install app to iPhone 4 with Xcode 8 beta? Like building the app first, then use a command line to install .app file to the iPhone?

kientux
  • 1,782
  • 1
  • 17
  • 32

2 Answers2

68

Actually, there is a way. You just need to copy DeviceSupport folder for iOS 7.1 from Xcode 7 to the new one. It's located in:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/7.1

I've tried it and it works.

EDIT: If you don't have the 7.1 files anymore, you can find them here.

petra
  • 694
  • 6
  • 8
0

If you do not need to debug but only build and put the app on device then you could also use product -> archive to create .ipa file with an adhoc version and then put in on iphone 4 using window -> devices. This works on xcode 8 without any additional files.

Leszek Szary
  • 9,763
  • 4
  • 55
  • 62