Description
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.