Fixes architectures settings in Foundation project

Provides better support for projects with non-standard build configurations when archived from xcodebuild