GM release of Xcode 6 compile

前端 未结 21 2436
难免孤独
难免孤独 2020-12-02 15:37

I just downloaded the GM release of Xcode 6 and it won\'t compile with this error:

Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault         


        
21条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-02 16:33

    May be the same issue Swift compile error in XCode 6 GM

    I had the same problem, then I use git checkout old versions to find which commit cause the problem, and try to find the key problem code. My key problem code is something like this

    func afunc() {
        class AClass() {
        }
        let ac = AClass()
        //....
    }
    

    Other code could make the same problem, occur in Swift Optimization, and swift compiler doesn't tell you the exact location. This must be a bug by Apple.

提交回复
热议问题