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

"Building universal frameworks with common architectures is not possible." #3349

Open
ShrikantCoder opened this issue Sep 7, 2023 · 0 comments

Comments

@ShrikantCoder
Copy link

I've added carthage support to my library, [https://github.com/ReactiveX/RxSwift] (https://github.com/ReactiveX/RxSwift,) but for some reason that has broken the pre-existing Carthage support.

This is what happens when I run carthage update --no-use-binaries --cache-builds --platform ios

A shell task (/usr/bin/xcrun lipo -create /Users/Library/Caches/org.carthage.CarthageKit/DerivedData/14.2_14C18/RxSwift/6.6.0/Build/Intermediates.noindex/ArchiveIntermediates/RxCocoa/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/RxCocoa.framework/RxCocoa /Users/Library/Caches/org.carthage.CarthageKit/DerivedData/14.2_14C18/RxSwift/6.6.0/Build/Products/Release-iphonesimulator/RxCocoa.framework/RxCocoa -output /Users/Carthage/Build/iOS/RxCocoa.framework/RxCocoa) failed with exit code 1:
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: /Users/Library/Caches/org.carthage.CarthageKit/DerivedData/14.2_14C18/RxSwift/6.6.0/Build/Intermediates.noindex/ArchiveIntermediates/RxCocoa/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/RxCocoa.framework/RxCocoa and /Users/Library/Caches/org.carthage.CarthageKit/DerivedData/14.2_14C18/RxSwift/6.6.0/Build/Products/Release-iphonesimulator/RxCocoa.framework/RxCocoa have the same architectures (arm64) and can't be in the same fat output file

Building universal frameworks with common architectures is not possible. The device and simulator slices for "RxCocoa" both build for: arm64
Rebuild with --use-xcframeworks to create an xcframework bundle instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant