讓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

相關文章
相關標籤/搜索