- iOS Xcode 解决 "could not insert n
- iOS xib报错 "could not insert new
- IOS中提示could not insert new actio
- iOS Xcode, 解决“Could not insert
- 解决Xib属性连线报Could not insert new o
- iOS could not insert new outlet
- Xcode报错“Could not insert new out
- 虚拟器无法启动modprobe vboxdrv
- IOS,SWIT 解决“Could not insert new
- iOS-拉outlet到代码区错误:Could not inse
我们在使用xib编辑页面的时候,通过Ctrl+拖拽的方式拖住控件常会遇到以下错误:Could not insert new outlet connection: Could not find any information for the class named "xxx"
以下列出几种解决方案供大家参考:
第一种:新建类时有没有把对应的类添加到对应的“target”中。
步骤:选中目标类,在xcode右侧的“File inspector”界面的“Target Membership”中确认对应的“target”选中没有,没有选中的话就勾选上,这是最简单的情况
第二种:重新将文件加入项目中试一下
步骤:选中目标文件的.h和.m文件,点击delete,选择“Remove Reference”,这样只会删除引用不会真正的删除目标文件。接着点击“File”点击 “Add Files to ...”,在文件选择界面选择刚才的.m文件和.h文件将他们重新加入项目中。然后重新编译,重新操作一遍。
第三种:直接删除DeriveData
步骤:退出Xcode,然后通过终端或者是Finder找到进入下面的目录:~/Library/Developer/XCode/DerivedData在里面找到以你的项目开头的文件,将他们删除,然后重新启动Xcode。
网友评论