Swift does not support the SDK 'iPhoneSimulator9.3.sdk'?

后端 未结 5 1512
清酒与你
清酒与你 2020-12-15 09:56

I have just installed the xcode 8.0 and upgrade my project to swift 3. I was using swift 2.2 and xcode 7.3.1.

But getting following error:

Swi

5条回答
  •  时光取名叫无心
    2020-12-15 11:01

    It happen due to old xcode still in system and you updated new one. For fixing this use following step.

    1. Quit Xcode
    2. go to Simulator and iPhoneOS. platform

    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/ 3. remove the iPhoneOS9.x.sdk folder from that directory. Be sure to
    make an external copy if you still need it so you can put it back
    later.

    1. Copy old xcode sdk (iPhoneOS9.x(Updated SDK)) Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/ iPhoneOS9.3(Updated SDK)

    5> Paste this SDK in new XCODE 8 in this folder /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/

    6> Clean and Build.

    Fixed

提交回复
热议问题