Quantcast
Channel: Active questions tagged crash - Stack Overflow
Viewing all articles
Browse latest Browse all 7190

Terminated due to signal 13 in swift iOS

$
0
0

My app got crashed with Terminated due to signal 13 error while i am running it.

App is getting crashed during this method execution.

@objc func handlePipeNotification(notification: Notification)
{
    inputPipe.fileHandleForReading.readInBackgroundAndNotify()
    if let data = notification.userInfo![NSFileHandleNotificationDataItem] as? Data,
        let str = String(data: data, encoding: String.Encoding.ascii) {
        outputPipe.fileHandleForWriting.write(data)
    }
}

Above method calls every time when something print on debug window.

If I remove this line than there is no issue.

outputPipe.fileHandleForWriting.write(data)

This line is writing back data to debug window.

Help me to solve this error.


Viewing all articles
Browse latest Browse all 7190

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>