Live Activities can't find the code

This is my test project code.

All the code is Xcode automatically generatd, but I couldn't find the activity code when I used it. help~~~

Answered by darkpaw in 735672022

Select bbbbbLiveActivity.swift in the project view, and view its Target Membership in the right-hand panel. If it's not a member of the aaaaaaaaa target it won't be found by code inside the aaaaaaaaa target.

(Also, why the weird names?)

Accepted Answer

Select bbbbbLiveActivity.swift in the project view, and view its Target Membership in the right-hand panel. If it's not a member of the aaaaaaaaa target it won't be found by code inside the aaaaaaaaa target.

(Also, why the weird names?)

Thanks,The perfect solution.

Live Activities can't find the code
 
 
Q