Unable to archive work 6.0.1. Swift Project in Xcode 6.1 / Segmentation Error: 11

The command could not be completed due to a signal: Segmentation error: 11 Although the type checking expression is in [/Users/thedude/Documents/Repositories/MyProject/Data.swift:258:36 - line: 258: 56] RangeText = "UILocalNotification () "

The error refers to the next line of code.

var notification = UILocalNotification() // also tried var notification:UILocalNotification = UILocalNotification() 

The problem occurs only during archiving (for sending to the repository). If I comment on this line of code, the error will only appear in other random places until I have a project that is pretty useless.

This is another example of what appears after commenting on the previous code.

 var someDate:NSDate = self.datePicker.date 

And so on ... REALLY strange part - this project is compiled and completely builds on the device. This only happens when creating the ARCHIVE . I set the Compiler Optimization Level to No to ensure that this was the cause to no avail.

+2
ios swift
Oct 22 '14 at 13:43
source share
3 answers

Although this is not the solution I hope for, I have found whether the Swift Compiler Optimization Level set faster, is not marked [-Ounchecked] . I can at least archive and submit my assembly.

I assume this is a specific Xcode 6.1 (release) issue and filed a bug report.

+7
Oct 22 '14 at 13:52
source share

Changing the deployment target to 8.1 fixes this for me. I have not tested Archiving, but it works for the Simulator.

+1
Oct 27 '14 at 0:17
source share

I had the same issue on Xcode 6.1. Creating and running the Swift project was not a problem; archiving led to an error:

 Command failed due to signal: Segmentation fault: 11 1. While type-checking <my Swift class> 

Changing the project deployment goal from 7.0 to 7.1 solved the problem, now the application can be archived.

0
Nov 21 '14 at 8:40
source share



All Articles