On Xcode 12 or later, if you integrate the iOS SDK 3.3.0 or later through CocoaPods and run the pod lib lint
command, you may receive the following error message:
[iOS] xcodebuild: warning: [CP] Unable to find matching .xcframework slice in ' true ios-armv7_arm64/AgoraRtcKit.framework ios-x86_64-simulator/AgoraRtcKit.framework' for the current build architectures (arm64 x86_64).
CocoaPods is not compatible with Xcode 12 or later versions, so the .xcframework
frameworks cannot be linked in your project.
To solve the problem, do the following:
Install a version earlier than Xcode 12 (for example, Xcode 11).
In Terminal, run the following command to switch the Xcode version.
// Replaces <xcode_path> with the path of Xcode 11.
sudo xcode-select -s <xcode_path>
Run the pod lib lint
command to check whether the .xcframework
framework is successfully linked.