From 6694666c176fa733510f0f6b1640454faf7d008d Mon Sep 17 00:00:00 2001 From: Toma Popov Date: Mon, 22 Aug 2016 12:50:29 +0300 Subject: [PATCH] [AppBuilder][iOS]Set 'SKIP_INSTALL' to YES. AppBuilder's build tooling currently uses the depricated method for exporting .xcarchive's to .ipa. When using the command below exports fail. 'xcrun xcodebuild -exportArchive -archivePath -exportPath -exportFormat ipa' Currently, the tooling can't be easily migrated to use the new -exportOptionsPlist, so after addtional investigation, it turned out that the issue occures for main target dependencies which have the setting SKIP_INSTALL = 'NO'. Once changed to 'YES', the export succeeds. --- src/ios/hooks/ab/watchkit-app.js | 2 +- src/ios/hooks/ab/watchkit-ext.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ios/hooks/ab/watchkit-app.js b/src/ios/hooks/ab/watchkit-app.js index 7f11e30..216fe81 100644 --- a/src/ios/hooks/ab/watchkit-app.js +++ b/src/ios/hooks/ab/watchkit-app.js @@ -32,7 +32,7 @@ function addWatchkitAppTarget(pbxProject, prop, bundleIdentifier) { PRODUCT_NAME: '"${TARGET_NAME}"', PROVISIONING_PROFILE: '"${PROVISION_WATCHKITAPP}"', SDKROOT: 'watchos', - SKIP_INSTALL: 'NO', + SKIP_INSTALL: 'YES', TARGETED_DEVICE_FAMILY: 4, WATCHOS_DEPLOYMENT_TARGET: '2.0', ENABLE_BITCODE: 'YES' diff --git a/src/ios/hooks/ab/watchkit-ext.js b/src/ios/hooks/ab/watchkit-ext.js index 5e88c18..4a758e9 100644 --- a/src/ios/hooks/ab/watchkit-ext.js +++ b/src/ios/hooks/ab/watchkit-ext.js @@ -28,7 +28,7 @@ function addWatchkitExtensionTarget(pbxProject, prop, bundleIdentifier) { PRODUCT_NAME: '"${TARGET_NAME}"', PROVISIONING_PROFILE: '"${PROVISION_WATCHKITEXTENSION}"', SDKROOT: 'watchos', - SKIP_INSTALL: 'NO', + SKIP_INSTALL: 'YES', TARGETED_DEVICE_FAMILY: 4, WATCHOS_DEPLOYMENT_TARGET: '2.0', CODE_SIGN_ENTITLEMENTS: '"${ENTITLEMENTS_WATCHKITEXTENSION}"', @@ -46,7 +46,7 @@ function addWatchkitExtensionTarget(pbxProject, prop, bundleIdentifier) { PRODUCT_NAME: '"${TARGET_NAME}"', PROVISIONING_PROFILE: '"${PROVISION_WATCHKITEXTENSION}"', SDKROOT: 'watchos', - SKIP_INSTALL: 'NO', + SKIP_INSTALL: 'YES', TARGETED_DEVICE_FAMILY: 4, WATCHOS_DEPLOYMENT_TARGET: '2.0', OTHER_LDFLAGS: ['-weak_framework', 'UIKit'],