Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

archive error: "xxx-master.dia:1:1: Could not read serialized diagnostics file: Cannot Load File: Failed to open diagnostics file"

I upgraded my xcode to 11.4 yesterday, now I can not archive my SwiftUI code to submit appstore, because error: "error: Segmentation fault: 11", "xxx-master.dia:1:1: Could not read serialized diagnostics file: Cannot Load File: Failed to open diagnostics file".

Any advices?

like image 605
foolbear Avatar asked Mar 26 '20 04:03

foolbear


People also ask

What is this archiver error PRD - archival error?

Archiver continuing ORACLE Instance PRD - Archival Error. Archiver continuing. The archivelogs shipping is working fine, just checked if they are automatically applied on standby --- and no issues. It is definitely not an archiving file system full. If it was the case then you would see archiver stuck messages in the alert log.

Where are my archivelogs being written to?

This command will show you where your archivelogs are being written to: If the ‘log_archive_dest’ parameter is empty then you are most likely using a ‘db_recovery_file_dest’ to store your archivelogs. You can run the below command to see that location.

What are some common errors when extracting RAR files?

These include “not a RAR file,” “RAR archive could not be decompressed entirely,” and other errors that appear while extracting RAR files. Yodot is compatible with Windows 2003, Server 2008, XP, and Vista, 7, 8, 8.1, and 10 OS.

Why am I getting a disk space error when trying to archive?

The error is basically trying to tell us that we have run out of logical or physical space on our ASM diskgroup, mount, local disk, or db_recovery_file_dest location where our archivelogs are being stored.


1 Answers

I root caused my occurrence of this error to usage of 'Self' in a class func for a XIB UIView. The error happened for me in XCode 11.5 and only the release build of the project. So, looks like the issue is in -O compilation. (It looks like the academic project named Swift has rediscovered the useful concept of Self)

THE EXAMPLE BELOW CAUSES segfault 11, FIXED BY REPLACING THE THREE "Self" WITH CLASS NAME "StyleHSView":

class StyleHSView: UIStackView, UITextFieldDelegate {

  @IBOutlet weak var styleNameTF: UITextField!

  @IBOutlet weak var urlTF: UITextField!

  // THIS FUNC CAUSES segfault 11, fix by changing Self to class name StyleHSView.
  class func Instantiate() -> Self {
    let nib = UINib.init(nibName: "StyleHSView", bundle: nil)
    if let view = nib.instantiate(withOwner: nil, options: nil).first(where: { return $0 is Self }) as? Self
    {
        return view
    } else {
        fatalError("No StyleHSView")
    }
  }
}
like image 145
dlalpine Avatar answered Sep 21 '22 14:09

dlalpine