Project: titanium
Issue TIMOB-19270: Building iOS 9 app with a WatchKit 2 app needs to specify -destination
By default, xcodebuild performs a iphoneos (device/dist) build. In order for it to build for the simulator, we need to specify the -sdk, but then the watch apps would fail to build because they don't support the iphonesimulator SDK. So, we can fix this by specifying a -destination and Xcode will pick the appropriate simulator SDK for each target. The param will look like: {code} "-destination', "platform='iOS Simulator',OS=" + appc.version.format(iosVersion, 2, 2) + ",name='iPhone 6'" {code} The device name will need to match whatever the selected simulator is. Also, we'll need to have a scheme. The default Titanium project doesn't have one, so we'll need to add one and make sure it's "shared".
Story points: 13