swift auto completion not working in Xcode6-Beta

2019-07-18 10:55发布

问题:

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.

回答1:

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 !



回答2:

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.



标签: swift xcode6