Skip to content

swift XCFramework creation fails on case-sensitive filesystem #77

@sziegler

Description

@sziegler

I believe this is a new failure with 0.9.0.

cargo swift package -n RfeSwift -y

generates

✔ Generating Swift bindings...                                                                                                                                          x Creating XCFramework...                                                                                                                                               

Failed due to the following error: 
Failed to create XCFramework due to the following error: 
 Failed to patch the XCFramework: Failed to patch "RfeSwift/RustFramework.xcframework/macos-arm64_x86_64": Failed to remove unpatched directory "RfeSwift/RustFramework.xcframework/macos-arm64_x86_64/headers": No such file or directory (os error 2)

on a case-sensitive filesystem. When I look inside that directory, I see Headers, not headers. The same command works on a case-insensitive filesystem (which is the default on macos). In xcframework.rs I see the string "headers" in multiple places, such as headers.push("headers");. I suspect this is the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions