2

I created a Widget & a LiveActivity extension in my app. My app still supports iOS 10 and it's a pure objective-c project.

So how I can use the LiveActivity API in my app.

I tried to import LiveActiveWidget.swift in my objective-c project. When I create a swift file in my project and import the Widget file to it, it says:

Compiling for iOS 10.0, but module 'xx' has a minimum deployment target of iOS 16.1

Then I import the "Widget-Swift.h" to an existing objective-c file, it says no such file, may be they are at a different target.

Timmy
  • 4,098
  • 2
  • 14
  • 34
Mars
  • 181
  • 1
  • 9

0 Answers0