How to test apps for iOS 11 on an older xCode version than 9

让人想犯罪 __ 提交于 2019-12-13 20:29:39

问题


After updating my xCode to be version 9.0, I'm facing an issue with the custom navigationBar, the status bar and navigation bar are colliding which was addressed here as a bug from xCode...

My question is: how can build my project for iOS 11 too with an older version so I wouldn't have this issue?

Thank you!


回答1:


Originally modified from this answer.

Follow these steps:

  • Close/Quit Xcode 8 (or any of 8.. series) completely.
  • Download Xcode 9 from Apple site (if you have done this already, ignore)

Step one

  • Right click on the downloaded .dmg file and show package contents

  • Navigate to Contents/Developer/Platforms/iPhoneOS.platform/Developer/

  • Copy the SDKs folder

  • Go to older version of Xcode, e.g. Xcode 8, in the Finder -> Applications -> Xcode

  • Right click and show package contents

  • Navigate to Contents/Developer/Platforms/iPhoneOS.platform/Developer/

  • Paste the copied SDKs folder here

Step two

  • Right click on the downloaded .dmg file and show package contents

  • Navigate to Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

  • Copy the 11.0 (15A372) folder (Maybe a slight difference, but copy the latest 11.0 (....) folder)

  • Go to older version of Xcode, e.g. Xcode 8, in the Finder -> Applications -> Xcode

  • Right click and show package contents

  • Navigate to Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

  • Paste the copied 11.0 (15A372) folder here (Maybe a slight difference, but replace the latest 11.0 (....) folder)

Finally restart you old Xcode.



来源:https://stackoverflow.com/questions/46648025/how-to-test-apps-for-ios-11-on-an-older-xcode-version-than-9

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!