Segmentation Error: 11 - Xcode 6.3

Unable to archive

My application works fine (Xcode 6.3.2, swift based) on Simulator and on multiple devices. But when I try to archive it, I get an error message Command failed due to signal: Segmentation fault: 11.

Others face the same problem

Segmentation Error 11 when starting the Swift application

"The team failed due to a signal: Segmentation error: 11" - What is the problem?

The command could not be completed due to a signal: Segmentation Error: 11

The root cause?

But it seems that everyone has different reasons for getting an error. I can not understand the error message I receive. It is written below, any hints or tips will be greatly appreciated!

Error log

0  swift                    0x0000000108e5d2b8 llvm::sys::PrintStackTrace(__sFILE*) + 40
1  swift                    0x0000000108e5d794 SignalHandler(int) + 452
2  libsystem_platform.dylib 0x00007fff8897bf1a _sigtramp + 26
3  libsystem_platform.dylib 0x00007fff574b7b28 _sigtramp + 3467885608
4  swift                    0x0000000108a053f2 swift::serialization::Serializer::writeCrossReference(swift::Decl const*) + 578
5  swift                    0x0000000108a0e275 swift::serialization::Serializer::writeAllDeclsAndTypes() + 2181
6  swift                    0x0000000108a0f2f8 swift::serialization::Serializer::writeAST(llvm::PointerUnion<swift::Module*, swift::SourceFile*>) + 2600
7  swift                    0x0000000108a11960 swift::serialization::Serializer::writeToStream(llvm::raw_ostream&, llvm::PointerUnion<swift::Module*, swift::SourceFile*>, swift::SILModule const*, swift::SerializationOptions const&) + 144
8  swift                    0x0000000108a12521 swift::serialize(llvm::PointerUnion<swift::Module*, swift::SourceFile*>, swift::SerializationOptions const&, swift::SILModule const*) + 321
9  swift                    0x0000000108746c1a frontend_main(llvm::ArrayRef<char const*>, char const*, void*) + 5514
10 swift                    0x00000001087454e6 main + 1814
11 libdyld.dylib            0x00007fff8db235c9 start + 1
12 libdyld.dylib            0x0000000000000080 start + 1917700792
+4
source share
2

. : 1) Double 2)

Double

var lat: Double? = d["lat"].doubleValue var lat: Double? = Double(d["lat"].doubleValue)

let brands = d["brands_unfiltered"].arrayValue {
if brands == [] {
    // Do nothing (empty)
}
else{
    // Do stuff
}

if let brands = d["brands_unfiltered"].arrayValue as Array! {
     // Do stuff
}

, , , . . , -, .

+3

, - "" " - : : 11"

indexPath cellForRowAtIndexPath, (i.e indexPath! indexPath). , , . - ?

    override func tableView(tableView: UITableView!, cellForRowAtIndexPath indexPath: NSIndexPath!, object: PFObject!) -> PFTableViewCell! {

            // code to get cell, etc

            let thumbnailImage = self.userPhotos?.getFromCacheOrDownload(username,
                circle: team.circle(), delegate: self, indexPath: indexPath!)
            cell.userPhotoImageView.image = thumbnailImage

            return cell
}
0

All Articles