Xcode 6 Beta not compiling

Luca

I've got the following problem: I've written my first Swift App (for iOS7) and it worked fine. After changing some minor detail (adding a string somewhere) it wouldn't compile anymore, even if I changed everything back how it was before.

There is no error message or anything like it, it says that it's building the project (Compiling Swift Source Files) but it's not progressing at all, even after hours of "building".

I've tried it with Xcode 6 b1 and b2 and with both it's the same: all the other projects are compiling without any problems, this one get's stuck.

Does anyone have a clue what might be the problem and how to solve it?

Zhenshan Yu

Debug the code manually works for me.

Finally I find the root cause of my problem is too many string concatenation in one line.

Bug code:

var string = string1 + string2 + string3 + string4 + string5 + string6 + string7 + string8 

Fixed code:

var string = string1
string += string2
string += string3
string += string4
string += string5
string += string6
string += string7
string += string8

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Xcode 6 Beta项目与Xcode 6兼容

来自分类Dev

Xcode 6 Beta无法编译

来自分类Dev

Xcode 6 Beta无法编译

来自分类Dev

Xcode 6 beta 6初始化

来自分类Dev

Xcode 6 Beta工具链错误

来自分类Dev

Swift 3(Xcode 8 beta 6)localizedStringWithFormat

来自分类Dev

iPhone无法在Xcode 6 Beta中连接

来自分类Dev

在Xcode 6 Beta中使用大小类

来自分类Dev

在Xcode 6 Beta 4中释放Segue

来自分类Dev

XCode 6 Beta 7错误迅速

来自分类Dev

Xcode 6 Beta:无此类模块“ Cocoa”

来自分类Dev

如何快速动画处理(xcode 6 beta)

来自分类Dev

Xcode 8 beta 6中的MusicEventIteratorGetEventInfo

来自分类Dev

Xcode6 beta SourceKitService错误

来自分类Dev

Xcode 6 Beta:无此类模块“ Cocoa”

来自分类Dev

Xcode 6 Beta工具链错误

来自分类Dev

Xcode 7.0 beta 6:VectorKit问题

来自分类Dev

XCode 6 Beta是否会覆盖XCode 5.1.1?

来自分类Dev

安装xcode 6 beta后Xcode 4.6.3崩溃

来自分类Dev

XCode 6 Beta是否会覆盖XCode 5.1.1?

来自分类Dev

SWIFT-xcode 6 beta 6中的KVO。

来自分类Dev

XCode6 beta 6 Swift编译器错误

来自分类Dev

Swift,解析和Xcode 6 beta6

来自分类Dev

无法在Xcode 6 beta 6中添加帐户

来自分类Dev

Swift,解析和Xcode 6 beta6

来自分类Dev

Xcode 6 Beta 6上的iPhone 5c设置

来自分类Dev

安装Beta后,Xcode 6显示Xcode 7 Beta错误消息

来自分类Dev

Xcode6 Beta7无法使用吗?

来自分类Dev

UIView.animateWithDuration change in Xcode 6 Beta 5