Tool terminated by signal 'Segmentation fault: 11'

// swift-tools-version:5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
    name: "RealityKitContent",
    // platforms check needed
    platforms: [
        .custom("xros", versionString: "1.0")
    ],
    products: [
        // Products define the executables and libraries a package produces, and make them visible to other packages.
        .library(
            name: "RealityKitContent",
            targets: ["RealityKitContent"]),
    ],
    dependencies: [
        // Dependencies declare other packages that this package depends on.
        // .package(url: /* package url */, from: "1.0.0"),
    ],
    targets: [
        // Targets are the basic building blocks of a package. A target can define a module or a test suite.
        // Targets can depend on other targets in this package, and on products in packages this package depends on.
        .target(
            name: "RealityKitContent",
            dependencies: []),
    ]
)

and here is the path

/Users/momo/b2db2d.github.io/B2D/Packages/RealityKitContent

Every time I build, every time it keep showing 'build failed' and there is always same issue. ^^Segmentation fault: 11^^!!!!!!!

I'm so annoying about this. I updated to latest package version, deleted cache, resolve package version, clean build folder etc. But IDK why.

Please fix this issue or tell me what to do!!

I'm having the same issue, did you find a workaround?

I have the same issue Still couldn't find solution

This happened to me, too. I tried so many ways. Last thing that solved the problem was moving newly downloaded Xcode which I expanded in Downloads folder to "Applications" Folder and it just worked (after the Xcode restarted).

Just for the inspiration to solve the problem in your case.

I managed to scope down to the root cause of my problem which come from one .usda file in my RealityKitContent Package. Inside that there's a quite ShaderGraphMaterial that has some internal part references back to another .usda file that I didn't copy to the new RC Pro project. Also has modules from older version of RC Pro. I guess the compiler fail to compile this and cause the error (for my case).

As long as my RealityKitContent doesn't use this file it's going on well. (the moving Xcode to another folder, clear DerivedData folder, restart Xcode & Computer, etc. sometimes solve the problem but it reappears. Only this way effectively persists)

Tool terminated by signal 'Segmentation fault: 11'
 
 
Q