IOS之提示Interface type cannot be statically allocated

简介: IOS之提示Interface type cannot be statically allocated

1、问题

command  + R运行提示如下错误

Interface type cannot be statically allocated

2、解决办法

是代码写错了

User user = [[User alloc] init];

改成如下

User *user = [[User alloc] init];

 

相关文章
|
iOS开发 开发者
iOS 上传APP到AppStore 卡在 Authenticating with the iTunes store 提示
iOS 上传APP到AppStore 卡在 Authenticating with the iTunes store 提示
iOS 上传APP到AppStore 卡在 Authenticating with the iTunes store 提示
|
程序员 iOS开发
iOS开发:真机调试提示XXX, but code signing identity Apple Development问题
最近从网上下载一个demo,然后想要运行真机,运行不成功,提示提示XXX is automatically signed, but code signing identity Apple Development的问题,然后通过排查报错原因找到了报错原因,那么本篇博文就来分享一下具体的解决原因。
164 0
iOS开发:真机调试提示XXX, but code signing identity Apple Development问题
|
程序员 iOS开发 开发者
iOS开发:程序打包提示Ignoring file XXX missing required architecture arm7 in file XXX错误
前段时间在开发过程中遇到一个iOS打包报错Ignoring file XXX missing required architecture arm7 in file XXX的问题,然后回想了一下问题所在,是因为集成了ijk播放器插件,然后ijk三方库不支持arm7造成的报错。
144 0
iOS开发:程序打包提示Ignoring file XXX missing required architecture arm7 in file XXX错误
|
iOS开发
IOS之提示control may reach end of non-void function
IOS之提示control may reach end of non-void function
295 0
|
iOS开发
iOS中使用本地通知为你的APP添加提示用户功能(二)
iOS中使用本地通知为你的APP添加提示用户功能
244 0
|
iOS开发
iOS中使用本地通知为你的APP添加提示用户功能(一)
iOS中使用本地通知为你的APP添加提示用户功能
181 0
|
开发者 iOS开发
iOS 10 不提示「是否允许应用访问数据」,导致应用无法使用的解决方案
每日更新关注:http://weibo.com/hanjunqiang  新浪微博!iOS开发者交流QQ群: 446310206 这个坑最近弄得我很抓狂,不过现在基本弄清楚了。记录一下过程中我收集到的信息,分享给大家。
1701 0