Bringing iOS Frameworks through Carthage in Xcode 12.0

Now Carthage 0.37 finally is capabable of building XCFrameworks 🎉 This makes it compatible with Xcode 12 and the workaround can be deleted. Just perform the following steps:

# Delete carthage cache
rm -rf ~/Library/Caches/org.carthage.CarthageKit
# Delete carthage build folder
rm -rf Carthage/Build
# Delete DerivedData folder
rm -rf ~/Library/Developer/Xcode/DerivedData
# Build all dependencies as XCFrameworks
carthage bootstrap --use-ssh --use-xcframeworks --cache-builds

See the Github release 0.37.0 for detailled information and a migration guide from frameworks to XCFrameworks. The guide tells you how to integrate the xcframeworks and what you have to remove from your project.

I used the suggestion here:

Basically: To build XCFrameworks into your app, run Carthage with --use-xcframeworks and drag the produced XCFrameworks into your Xcode target’s Embedded binaries section...

This is the command I used: carthage bootstrap --platform iOS --use-xcframeworks

The answer is simple: Carthage 0.35.0 is incompatible with Xcode 12. They are working on a fix. Until then, there is a workaround.