Today I was creating a shared library in a project containing multiple targets where I first had only one (and no shared lib) when all of a sudden my project produced the following error when trying to run.
“The destination does not support the architecture for which the selected software is built. Switch to a destination that supports that architecture in order to run the selected software.”
After going through all the suggested steps here on Stackoverflow to no avail I found the answer to be a very simple one …
I forgot to include the main.m in the targets so an executable would not be built. Adding the appropriate main files to their targets solved my problem.