Fixes TC-4823

We check for `cli.sdk.platforms.iphone` before checking for `.path`