8000 GitHub · Where software is built
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Break output by platform (iOS, macOS etc) #43
Open
@jfro

Description

@jfro

This was mentioned in #14 but probably can be it's own ticket. I've run into issues due to my rust library being used by both macOS & iOS but sharing the same output path. Or when trying to build iOS & iOS Simulator libraries. I ended up in an example I shared with someone doing cargo clean before cargo lipo --xcode-integrity to ensure it doesn't accidentally link the wrong platform library.

This same change could also do a bonus and check that you're not trying to build iOS & macOS into the same library. Apple seems to say this is not supported. They point at their XCFramework if you want 1 thing across platforms.

The output path could be something like what rust already does except just trim everything but the platform:
target/universal-macos/debug/<lib>
target/universal-iossimulator/debug/<lib>
target/universal-ios/debug/<lib>
Etc.

I possibly can try to PR something up even if I find some time.

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

      0