使用插座编译错误

使用插座编译错误

本文介绍了XCODE 6(6A313)使用插座编译错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Xcode 6(6A313)开发一个示例应用程序(使用objective-c),按照IOS编程4版Big Nerd Ranch这本书与Xcode 5一起工作但是这个基本应用程序只有2个标签当我使用Interface Builder将outlet属性与视图控件连接时,2个底部会出现编译错误 ViewController.xib:错误:非法配置:启动屏幕可能没有连接。

I am using Xcode 6(6A313) to develop an example app (use objective-c), follow the book IOS Programming 4 edition Big Nerd Ranch that is made to work with Xcode 5 however this basic app that has only 2 labels an 2 bottoms get a compile error "ViewController.xib: error: Illegal Configuration: Launch screens may not have connections." when i connect the outlet property with the view controls using Interface Builder.

任何人都知道什么是错的?

Anyone has idea whats wrong?

感谢高级

推荐答案

使用笔尖的能力或故事板而不是启动图像是Xcode 6中的新功能,但是您的启动故事板中的视图不能有插座。

The ability to use a nib or storyboard instead of a launch image is new in Xcode 6, but the view in your launch storyboard can't have outlets.

您的启动画面中似乎有文件中的插座。 Xcode 6模板项目现在将创建两个文件 - main.storyboard和LaunchScreen.xib。

It seems that you have outlets in the file that is being used for your launch screen. Xcode 6 template projects will now create two files - main.storyboard and LaunchScreen.xib.

从LaunchScreen.xib中删除出口或转到目标并删除值从启动屏幕文件字段 -

Either remove the outlets from LaunchScreen.xib or go to your target and remove the value from the "Launch Screen File" field -

这篇关于XCODE 6(6A313)使用插座编译错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 04:05