I have created .xcframework and trying to use in another app by embedding the .xcframework in xcode project, but I am getting an error "error: the use of xcframeworks is not supported in the legacy build system". I am testing this in xcode 11.3
Firstly, open your project with Xcode and navigate to File > Workspace Settings. 2. Click on the drop-down labeled with Build System then select Legacy Build System from the menu. Finally, click on the Done button to apply your change.
What is XCFramework? Apple defines XCFrameworks as a distributable binary package created by Xcode that contains variants of a framework or library so that it can be used on multiple platforms (iOS, macOS, tvOS, and watchOS), including Simulator builds.
You can try turning off the legacy build system. Go to File -> Workplace Settings -> Build System -> Change to New Build System (Default).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With