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

后端 未结 24 2336
长情又很酷
长情又很酷 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:46

    I am not sure if it has one solution. I recommend you to check the differences between your last git commit, and comment on/off the changes.

    In my case, my code was

    let anArray = ResultDict["ResultSet"] as [[NSDictionary : AnyObject]]
    for aDict : NSDictionary in anArray {
        let anObject = ObjectType(ObjectDict: aDict)
        objectList.addObject(aDict)
    }
    

    no warning on the line, i got the same exit 1 compile error then i changed it to the below it has compiled.

    let anArray = ResultDict["ResultSet"] as [[NSDictionary : AnyObject]]
        for aDict in anArray {
            let anObject = ObjectType(ObjectDict: aDict)
            objectList.addObject(aDict)
        }
    

提交回复
热议问题