support command line builds for iOS - fixes #177