让Xcode 8.x可以调试iOS 7.x真机

  1. 首先须要 Xcode 7.x。能够去 苹果开发者官网 下载。app

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

    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。code

  2. 如今能够在 "iOS Deployment Target" 中选择 "7.0" 和 "7.1" 而且能够在 iOS 7.x 真机上调试。orm

相关文章
相关标签/搜索