Mahmut Akyol Mahmut Akyol - 1 year ago 126
Swift Question

command failed due to signal: Segmentation fault: 11 when swift 3 migration

my example code is here
and my fault is under the line
thanks for advices.

enter image description here

Answer Source

This issue is dynamic and each time there is something for which compiler will complain.

I think given line of code in viewDidLoad causing problem. Don't know compiler why complaining.

But if you comment this line of code then error will get removed. Try once by removing this line.

If it works, then try to work around this line.

currencyFormatter.currencyCode = (Locale.current as NSLocale).displayName(forKey: NSLocale.Key.currencySymbol, value: NSLocale.Key.currencyCode)

Here is segmentation fault thread, but each one has its own solution, there is no universal solution for this error.

Best luck!!!

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download