swift package module on M1

We have in project swift package module and when I try to build the project on M1 getting this error:
Code Block
Could not find module 'CommonUI' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator

So basically when I comment out:
Code Block
platforms: [.iOS(.v11)]

then it is able to compile but since we are using some API from v11 we need to introduce available...

This is compiled and generated with: // swift-tools-version:5.2 and I am using Xcode 12.3.

Any hints how to resolve this? Thx

swift package module on M1
 
 
Q