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)