首页 > 编程语言 > 详细

swift创建对象use of undeclared type 自己的类

时间:2016-11-06 16:57:31      阅读:288      评论:0      收藏:0      [点我收藏+]

在swift项目中,引用自己创建的类,编译会成功的,但是会出现红色感叹号,类似报错,如:swift创建对象use of  undeclared type 自己的类,或者 use of unresolved identifier,这种错误提示,但编译还是会成功的,不影响程序。此类错误,是因为当前运行的Target找不到必须编译文件。将文件添加到Target即可,

技术分享

中间一个可选可不选

swift创建对象use of undeclared type 自己的类

原文:http://www.cnblogs.com/weixw/p/6035403.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!