It appears that on an Apple Silicon Macs, we cannot do unit tests for Swift Packages using Mac Catalyst.
Steps to produce:
0. Get an Apple Silicon Mac.
I did not get this issue on my Intel Mac. On Apple Silicon Macs, set the destination to an iOS simulator or a “pure” Mac destination also works.
How to bypass this issue, or is this a bug from Xcode? I am running the latest Xcode 12.3.
Steps to produce:
0. Get an Apple Silicon Mac.
Go to an empty folder, create a new Swift Package using swift package init.
Open the created Package.swift, select the running destination to be My Mac (Mac Catalyst).
Run the tests.
Code Block code signature in [generated test path] not valid for use in process using Library Validation: Trying to load an unsigned library.
I did not get this issue on my Intel Mac. On Apple Silicon Macs, set the destination to an iOS simulator or a “pure” Mac destination also works.
How to bypass this issue, or is this a bug from Xcode? I am running the latest Xcode 12.3.