UIApplication.sharedApplication() is unavailable

后端 未结 6 2086
情话喂你
情话喂你 2020-12-20 13:48

I just upgraded from XCode 6.4 to Xcode 7 GM and get started to change the code to be compliant with Swift 2. I could not come over the following errors.

The project

6条回答
  •  庸人自扰
    2020-12-20 14:21

    The classes in containing app somehow went in to the compile resources list in the extension Build Phases. I deleted them, it is ok now.

    I did not do that. Obviously upgrade to Xcode 7 GM process somehow did it.

提交回复
热议问题