ios - Why is using join on array of strings causing Segmentation fault: 11 error on archiving in XCode? -
i've been spending hours trying ding why keep getting segmentation fault 11 error when archiving in xcode. i've figured out (by commenting out sections of code) using:
// if comment out second line join, archive works var test = ["hello","world"] let tested = " ".join(test)
any ideas why happening , how fix it?
i encountered same issue. think bug in compiler. workaround found avoid use join.
var array = ["hello", "world"] var resultstring = "" (index, string) in enumerate(array) { if index > 0 { resultstring += " " } resultstring += string }
Comments
Post a Comment