Catalyst-AppKit
Catalyst-AppKit copied to clipboard
xcodebuild command line error
When we use xcodebuild
to archive the project for Catalyst, the App should build with Catalyst variant, but the plugin should be build with macOS platform (not Catalyst variant), and we will got some error like "NSAlert was unavailable on Catalyst", but if we use Xcode to archive, it just work fine. Anybody has any idea for this?
Just had the same issue with my project, even though a new-from-the-scratch one worked out just fine. So I went through both analyzing their settings and found the cause. Hopefully, this will save someone an hour.
The issue was that Supports Mac Catalyst
build setting was set to Yes
for the whole project:
Once I switched it to
No
at the project scale — while leaving Yes
for specific targets — the plugin compiled without any errors.