让Xcode 8.x能够调试iOS 7.x真机

  1. 首先需要 Xcode 7.x。可以去 苹果开发者官网 下载。

  2. 打开Finder, 进入文件夹:

    Xcode 7.x.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
  3. 复制 "7.0" 和 "7.1" 文件夹,然后 粘贴 至文件夹:

    Xcode 8.x.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

  1. 打开 文件:
    Xcode 8.x.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/SDKSettings.plist

  1. 按照下图将值 "7.0" 和 "7.1" 添加到键:
    Root/DefaultProperties/DEPLOYMENT_TARGET_SUGGESTED_VALUES

  1. 重启 Xcode 8.x。

  2. 现在可以在 "iOS Deployment Target" 中选择 "7.0" 和 "7.1" 并且可以在 iOS 7.x 真机上调试。

原文地址:https://www.cnblogs.com/DeviLeo/p/6100583.html