问题
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 -> XcodeRight 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 -> XcodeRight 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