Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache issues when a target supports macOS and Mac Catalyst #6227

Open
pepicrft opened this issue Apr 23, 2024 · 1 comment
Open

Cache issues when a target supports macOS and Mac Catalyst #6227

pepicrft opened this issue Apr 23, 2024 · 1 comment
Assignees
Labels
type:need/problem Report needs or problems you came across that are not bugs

Comments

@pepicrft
Copy link
Contributor

pepicrft commented Apr 23, 2024

What problem or need do you have?

As reported here by @NachoSoto, when there's a target in the graph that supports macOS and Mac Catalyst as destinations, the creation of the XCFramework fails because both frameworks have the same triple:

/usr/bin/xcrun xcodebuild -create-xcframework 
-archive /private/var/folders/60/737rrmcs6yqbfbl9fd4g0dcw0000gp/T/TemporaryDirectory.5gwC7A/Archives/iOS/simulator.xcarchive 
-framework _CollectionsUtilities.framework 
-archive /private/var/folders/60/737rrmcs6yqbfbl9fd4g0dcw0000gp/T/TemporaryDirectory.5gwC7A/Archives/iOS/mac-catalyst.xcarchive 
-archive /private/var/folders/60/737rrmcs6yqbfbl9fd4g0dcw0000gp/T/TemporaryDirectory.5gwC7A/Archives/iOS/device.xcarchive 
-framework _CollectionsUtilities.framework 
-archive /private/var/folders/60/737rrmcs6yqbfbl9fd4g0dcw0000gp/T/TemporaryDirectory.5gwC7A/Archives/macOS/device.xcarchive 
-framework _CollectionsUtilities.framework -output /var/folders/60/737rrmcs6yqbfbl9fd4g0dcw0000gp/T/TemporaryDirectory.5gwC7A/xcframeworks/_CollectionsUtilities.xcframework 
-allow-internal-distribution

-framework _CollectionsUtilities.framework 

Fails with:

A library with the identifier 'macos-arm64_x86_64' already exists.
@pepicrft pepicrft added the type:need/problem Report needs or problems you came across that are not bugs label Apr 23, 2024
@pepicrft pepicrft self-assigned this Apr 23, 2024
@pepicrft
Copy link
Contributor Author

@NachoSoto I started looking into this one. We have some logic in place that narrows down the destinations of external dependencies based on the destinations of your project targets. My hunch is that there might be some bug in that logic that leads to the wrong destinations, but I want to check with you first. Does your project have any target that has Mac Catalyst as a valid destination?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:need/problem Report needs or problems you came across that are not bugs
Projects
None yet
Development

No branches or pull requests

1 participant