To resolve the same error I had to wrap all Live Activity related code with
#if !targetEnvironment(macCatalyst)
...
#endif
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags: