swift auto completion not working in Xcode6-Beta

2019-07-18 10:29发布

I made an iOS project with Swift and the XCode6-Beta doesn't show any completion for me. But it works with playground.

I noticed some youtube videos for swift , the xCode can show the methods automatically, should I configure the project or do something else?

Thanks.

标签: swift xcode6
2条回答
时光不老,我们不散
2楼-- · 2019-07-18 11:00

Not even use as comments,it would lost auto completion if you use Unicode Characters as parameters.
Such as sender.setTitle("A♣︎", forState: UIControlState.Normal)
you have to delete all Unicode characters.
it's really inconvenient.Hope it would be fixed in next version.

查看更多
我想做一个坏孩纸
3楼-- · 2019-07-18 11:02

I have figured it out. If your swift files contain Unicode characters, auto completion will fail even if the characters are comments. So just delete all the Unicode characters, and the auto completion feature will work well !

I think this is a Xcode6-Beta bug !

查看更多
登录 后发表回答