Xcode 6.0.1 Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1

后端 未结 24 2380
长情又很酷
长情又很酷 2020-11-27 13:18

I am getting this error on archive:

Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with

24条回答
  •  我在风中等你
    2020-11-27 13:55

    I had a resolution very similar to RyanM, where with an excess of hubris I tried to assign a variable to the default value of an inner function:

    Fails to compile (though does not crash SourceKit):

    func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
        func itemCell(_ indexPath: IndexPath = indexPath) -> UITableViewCell {//...}
    

    Succeeds:

    func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
        func itemCell(_ indexPath: IndexPath) -> UITableViewCell {//...}
    

提交回复
热议问题