[cblite 2.8.4] install couchbase lite Swift with CocoaPods on Apple M1

Hi,
Today, on my apple M1, I use couchbase lite 2.8.4 with xcframeworks file.
I want to migrate to CocoaPods.

Here the Podfile

# Uncomment the next line to define a global platform for your project
platform :ios, '10.0'

target 'Playlister' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for Playlister
  pod 'CouchbaseLite-Swift', '~> 2.8.4'
end

I follow instruction from Install Couchbase Lite on Swift | Couchbase Docs

But compilation is failed

CompileSwift normal arm64 /Users/giallon/Desktop/MobileIOS/labs/lab01/Playlister/AppDelegate.swift (in target 'Playlister' from project 'Playlister')
    cd /Users/giallon/Desktop/MobileIOS/labs/lab01
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -c /Users/giallon/Desktop/MobileIOS/labs/lab01/Playlister/ViewController.swift -primary-file /Users/giallon/Desktop/MobileIOS/labs/lab01/Playlister/AppDelegate.swift /Users/giallon/Desktop/MobileIOS/labs/lab01/Playlister/DatabaseManager.swift -emit-module-path /Users/giallon/Library/Developer/Xcode/DerivedData/Playlister-bxnqmiijjmdrwmellumalbqbfprd/Build/Intermediates.noindex/Playlister.build/Debug-iphonesimulator/Playlister.build/Objects-normal/arm64/AppDelegate\~partial.swiftmodule -emit-module-doc-path /Users/giallon/Library/Developer/Xcode/DerivedData/Playlister-bxnqmiijjmdrwmellumalbqbfprd/Build/Intermediates.noindex/Playlister.build/Debug-iphonesimulator/Playlister.build/Objects-normal/arm64/AppDelegate\~partial.swiftdoc -emit-module-source-info-path /Users/giallon/Library/Developer/Xcode/DerivedData/Playlister-bxnqmiijjmdrwmellumalbqbfprd/Build/Intermediates.noindex/Playlister.build/Debug-iphonesimulator/Playlister.build/Objects-normal/arm64/AppDelegate\~partial.swiftsourceinfo -emit-dependencies-path /Users/giallon/Library/Developer/Xcode/DerivedData/Playlister-bxnqmiijjmdrwmellumalbqbfprd/Build/Intermediates.noindex/Playlister.build/Debug-iphonesimulator/Playlister.build/Objects-normal/arm64/AppDelegate.d -emit-reference-dependencies-path /Users/giallon/Library/Developer/Xcode/DerivedData/Playlister-bxnqmiijjmdrwmellumalbqbfprd/Build/Intermediates.noindex/Playlister.build/Debug-iphonesimulator/Playlister.build/Objects-normal/arm64/AppDelegate.swiftdeps -serialize-diagnostics-path /Users/giallon/Library/Developer/Xcode/DerivedData/Playlister-bxnqmiijjmdrwmellumalbqbfprd/Build/Intermediates.noindex/Playlister.build/Debug-iphonesimulator/Playlister.build/Objects-normal/arm64/AppDelegate.dia -target arm64-apple-ios14.5-simulator -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk -I /Users/giallon/Library/Developer/Xcode/DerivedData/Playlister-bxnqmiijjmdrwmellumalbqbfprd/Build/Products/Debug-iphonesimulator -F /Users/giallon/Library/Developer/Xcode/DerivedData/Playlister-bxnqmiijjmdrwmellumalbqbfprd/Build/Products/Debug-iphonesimulator -F /Users/giallon/Desktop/MobileIOS/labs/lab01/Pods/CouchbaseLite-Swift/iOS -F /Users/giallon/Desktop/MobileIOS/labs/lab01/Frameworks -enable-testing -g -module-cache-path /Users/giallon/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -swift-version 5 -enforce-exclusivity\=checked -Onone -D DEBUG -new-driver-path /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-driver -serialize-debugging-options -Xcc -working-directory -Xcc /Users/giallon/Desktop/MobileIOS/labs/lab01 -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -Xcc -I/Users/giallon/Library/Developer/Xcode/DerivedData/Playlister-bxnqmiijjmdrwmellumalbqbfprd/Build/Intermediates.noindex/Playlister.build/Debug-iphonesimulator/Playlister.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/giallon/Library/Developer/Xcode/DerivedData/Playlister-bxnqmiijjmdrwmellumalbqbfprd/Build/Intermediates.noindex/Playlister.build/Debug-iphonesimulator/Playlister.build/Playlister-generated-files.hmap -Xcc -I/Users/giallon/Library/Developer/Xcode/DerivedData/Playlister-bxnqmiijjmdrwmellumalbqbfprd/Build/Intermediates.noindex/Playlister.build/Debug-iphonesimulator/Playlister.build/Playlister-own-target-headers.hmap -Xcc -I/Users/giallon/Library/Developer/Xcode/DerivedData/Playlister-bxnqmiijjmdrwmellumalbqbfprd/Build/Intermediates.noindex/Playlister.build/Debug-iphonesimulator/Playlister.build/Playlister-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/giallon/Library/Developer/Xcode/DerivedData/Playlister-bxnqmiijjmdrwmellumalbqbfprd/Build/Intermediates.noindex/Playlister.build/Debug-iphonesimulator/Playlister.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/giallon/Library/Developer/Xcode/DerivedData/Playlister-bxnqmiijjmdrwmellumalbqbfprd/Build/Intermediates.noindex/Playlister.build/Debug-iphonesimulator/Playlister.build/Playlister-project-headers.hmap -Xcc -I/Users/giallon/Library/Developer/Xcode/DerivedData/Playlister-bxnqmiijjmdrwmellumalbqbfprd/Build/Products/Debug-iphonesimulator/include -Xcc -I/Users/giallon/Library/Developer/Xcode/DerivedData/Playlister-bxnqmiijjmdrwmellumalbqbfprd/Build/Intermediates.noindex/Playlister.build/Debug-iphonesimulator/Playlister.build/DerivedSources-normal/arm64 -Xcc -I/Users/giallon/Library/Developer/Xcode/DerivedData/Playlister-bxnqmiijjmdrwmellumalbqbfprd/Build/Intermediates.noindex/Playlister.build/Debug-iphonesimulator/Playlister.build/DerivedSources/arm64 -Xcc -I/Users/giallon/Library/Developer/Xcode/DerivedData/Playlister-bxnqmiijjmdrwmellumalbqbfprd/Build/Intermediates.noindex/Playlister.build/Debug-iphonesimulator/Playlister.build/DerivedSources -Xcc -DDEBUG\=1 -Xcc -DCOCOAPODS\=1 -module-name Playlister -target-sdk-version 15.0.0 -o /Users/giallon/Library/Developer/Xcode/DerivedData/Playlister-bxnqmiijjmdrwmellumalbqbfprd/Build/Intermediates.noindex/Playlister.build/Debug-iphonesimulator/Playlister.build/Objects-normal/arm64/AppDelegate.o -index-store-path /Users/giallon/Library/Developer/Xcode/DerivedData/Playlister-bxnqmiijjmdrwmellumalbqbfprd/Index/DataStore -index-system-modules

<unknown>:0: error: unable to load standard library for target 'arm64-apple-ios9.0'
<unknown>:0: error: unable to load standard library for target 'arm64-apple-ios9.0'
/Users/giallon/Desktop/MobileIOS/labs/lab01/Playlister/DatabaseManager.swift:10:8: error: module compiled with Swift 5.3.2 cannot be imported by the Swift 5.5 compiler: /Users/giallon/Desktop/MobileIOS/labs/lab01/Pods/CouchbaseLite-Swift/iOS/CouchbaseLiteSwift.framework/Modules/CouchbaseLiteSwift.swiftmodule/arm64.swiftmodule
import CouchbaseLiteSwift

Best regards

Cocoapods 2.8.x is using .framework, and it is not including the apple M1 slice. You might have to wait for 3.x release coming up to consume XCFramework through Cocoapods/Carthage.

Hi
Thanks for answer, I try it with 3.0.0-beta01 and it’s works.
Best regards