Xcode: Use correct Object Library paths for cross-SDK builds
When calculating Object Library paths take a look at the XCODE_EMIT_EFFECTIVE_PLATFORM_NAME property to enable builds with different SDKs. Otherwise a hardcoded architecture could be chosen.
Issue: #16040 (closed)