lipo command doesn't work with .xcframeworks

In the past I've used lipo to remove unwanted architectures from fat frameworks, using lipo -remove. However when attempting to do similarly with a .xcframework I keep getting errors, its not just the -remove command.

If for example I run lipo -info someFramework.xcframework then the error is: can't map input file: someFramework.xcframework (Invalid argument)

if I cd into the xcframework and run

lipo -remove ios-arm64_x86_64-simulator

then the error is

unknown architecture specification flag: ios-arm64_x86_64-simulator in specifying remove operation: -remove ios-arm64_x86_64-simulator

lipo command doesn't work with .xcframeworks
 
 
Q