Why Swift Package copy framework to Watch extensions dir

Now I have a project. have two targets

  1. App A
  2. Watch App B

Then I import a swift package Mapbox and add dependency in App A. App A now will Embed Mapbox in section "Framework, Libraries and Embed Content" and Embed Watch App B in "Build Phrase/Embed Watch Content" which is a PBXCopyFilesBuildPhase.

It is wired when I build in local, on the Mapbox. framework only copy to under dir AppA/frameworks when executing prhase "Embed Watch Content". But when I compile it on Microsoft App Center. it will copy the Mapbox.framework to WatchAppB/.

any idea how to define where the Mapbox.framework to be copied to?

Why Swift Package copy framework to Watch extensions dir
 
 
Q