“Cannot find interface declaration for NSObject”?

前端 未结 7 555
礼貌的吻别
礼貌的吻别 2020-12-15 08:09

So I\'ve done some research into this issue, but I haven\'t found anything similar just yet...

So I\'m coding a game in Obj-C using Xcode and Sparrow Framework. I\'v

7条回答
  •  死守一世寂寞
    2020-12-15 08:47

    This can be caused by not including UIKit.

    Add this to your header:

    #include 
    

    Also make sure to add the UIKit Framework to your project. (Targets/Build Phases/Link Binary With Libraries/ -- Select Add --- Add UIKit.Framework)

提交回复
热议问题