multi-module macOS project won't link

I have a macOS project setup and within it is two modules (aka Package). There is a third "common" with utility functions that all parts of the project may need to use.

The program used to run, but now I'm not sure how I got to this point, other than trying to clear mysterious errors. So now I can import my third module in all others and the main project; but it won't link:

ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

There are several undefined symbols errors from the AppDelegate.o method which calls the code from a menu item command.

I don't know what's wrong and I've wasted hours googling to no avail and poking settings again to no avail.

What do these mean and how do I fix it?

Undefined symbols for architecture arm64:
  "_$s15MeasuringCupXml0aB3DAOCACycfC", referenced from:
      _$s10RecipeBook11AppDelegateC23convertFromMeasuringCupyySo10NSMenuItemCF in AppDelegate.o
  "_$s15MeasuringCupXml0aB3DAOCMa", referenced from:
      _$s10RecipeBook11AppDelegateC23convertFromMeasuringCupyySo10NSMenuItemCF in AppDelegate.o
  "_$s15MeasuringCupXml10RecipeFileCMn", referenced from:
      _symbolic _____Sg 15MeasuringCupXml10RecipeFileC in AppDelegate.o
  "_$s15MeasuringCupXml6RecipeCMa", referenced from:
      _$s10RecipeBook11AppDelegateC23convertFromMeasuringCupyySo10NSMenuItemCF in AppDelegate.o
      _$s15MeasuringCupXml6RecipeCSo8NSObjectCSH10ObjectiveCWl in AppDelegate.o
  "_$s15MeasuringCupXml6RecipeCMn", referenced from:
      _symbolic _____y______G Sh8IteratorV 15MeasuringCupXml6RecipeC in AppDelegate.o
  "_$s15MeasuringCupXml8CategoryCMa", referenced from:
      _$s10RecipeBook11AppDelegateC23convertFromMeasuringCupyySo10NSMenuItemCF in AppDelegate.o
      _$s15MeasuringCupXml8CategoryCSo8NSObjectCSH10ObjectiveCWl in AppDelegate.o
  "_$s15MeasuringCupXml8CategoryCMn", referenced from:
      _symbolic _____y______G Sh8IteratorV 15MeasuringCupXml8CategoryC in AppDelegate.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Oy. Going over the UI again... target | app-name | build phases | link binary with libraries - 2 of the 3 packages/modules were missing. After adding them I got a clean build and it runs again.

But now I remember how I got here in the first place: the Swift UI preview won't run. I'm signed into my Apple.com account so I have no idea what to do now.

== PREVIEW UPDATE ERROR:

PotentialCrashError: Update failed

RecipeBook may have crashed. Check ~/Library/Logs/DiagnosticReports for any crash logs from your application.

==================================

|  RemoteHumanReadableError
|  
|  LoadingError: failed to load library at path "/Users/acm/Library/Containers/com.logipath.home.recipebook.RecipeBook/Data/Document.1.preview-thunk.dylib": Optional(dlopen(/Users/acm/Library/Containers/com.logipath.home.recipebook.RecipeBook/Data/Document.1.preview-thunk.dylib, 0x0002): tried: '/Users/acm/Library/Developer/Xcode/DerivedData/RecipeBook-bbtjcxbeoiafanbqznopflogglmf/Build/Intermediates.noindex/Previews/RecipeBook/Products/Debug/Document.1.preview-thunk.dylib' (no such file), '/Users/acm/Library/Containers/com.logipath.home.recipebook.RecipeBook/Data/Document.1.preview-thunk.dylib' (code signature in <C5F11795-CBEE-3FE2-8ADD-5E56991FEEAC> '/Users/acm/Library/Containers/com.logipath.home.recipebook.RecipeBook/Data/Document.1.preview-thunk.dylib' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)), '/System/Volumes/Preboot/Cryptexes/OS/Users/acm/Library/Containers/com.logipath.home.recipebook.RecipeBook/Data/Document.1.preview-thunk.dylib' (no such file), '/Users/acm/Library/Containers/com.logipath.home.recipebook.RecipeBook/Data/Document.1.preview-thunk.dylib' (code signature in <C5F11795-CBEE-3FE2-8ADD-5E56991FEEAC> '/Users/acm/Library/Containers/com.logipath.home.recipebook.RecipeBook/Data/Document.1.preview-thunk.dylib' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)))
multi-module macOS project won't link
 
 
Q