mhdhejazi / Catalyst-AppKit

Access AppKit API from a Mac Catalyst app using a macOS plugin written in pure Swift.
23 stars 0 forks source link

xcodebuild command line error #2

Open sleepEarlier opened 3 years ago

sleepEarlier commented 3 years ago

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?

keepassium commented 7 months ago

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: CleanShot 2024-02-26 at 20 55 25@2x Once I switched it to No at the project scale — while leaving Yes for specific targets — the plugin compiled without any errors.