cocoapods迎来新版本1.10.0,许多库从这个版本pod以后,再从旧版本pod是跑不起来的,会报错,pod update 也没用,不知道是不是realm这个库使用xcframework的原因,暂时不详细探究,我们了解下xcframework就可以。
官方描述:
An XCFramework makes it possible to bundle a binary framework or library for multiple platforms —including iOS devices, iOS simulators, and Mac Catalyst — into a single distributable
.xcframework
bundle that your developers can use within their own applications. An.xcframework
bundle can be added to an Xcode target’s Link Libraries phase and Xcode uses the right platform’s version of the included framework or library at build time. Creation of frameworks is supported from the command line usingxcodebuild -create-xcframework
. Frameworks or libraries bundled in an XCFramework should be built with the Build Libraries for Distribution build setting set toYES
.XCFramework使将多个平台(包括iOS设备,iOS模拟器