Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bin/templates/scripts/cordova/lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ function getXcodeBuildArgs (projectName, projectPath, configuration, isDevice, b
];
buildActions = [ 'archive' ];
settings = [
customArgs.configuration_build_dir || 'CONFIGURATION_BUILD_DIR=' + path.join(projectPath, 'build', 'device'),
customArgs.configuration_build_dir || '',
customArgs.shared_precomps_dir || 'SHARED_PRECOMPS_DIR=' + path.join(projectPath, 'build', 'sharedpch')
];
// Add other matched flags to otherFlags to let xcodebuild present an appropriate error.
Expand All @@ -370,7 +370,7 @@ function getXcodeBuildArgs (projectName, projectPath, configuration, isDevice, b
];
buildActions = [ 'build' ];
settings = [
customArgs.configuration_build_dir || 'CONFIGURATION_BUILD_DIR=' + path.join(projectPath, 'build', 'emulator'),
customArgs.configuration_build_dir || '',
customArgs.shared_precomps_dir || 'SHARED_PRECOMPS_DIR=' + path.join(projectPath, 'build', 'sharedpch')
];
// Add other matched flags to otherFlags to let xcodebuild present an appropriate error.
Expand Down
12 changes: 6 additions & 6 deletions tests/spec/unit/build.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe('build', function () {
'-archivePath',
'TestProjectName.xcarchive',
'archive',
'CONFIGURATION_BUILD_DIR=' + path.join(testProjectPath, 'build', 'device'),
'',
'SHARED_PRECOMPS_DIR=' + path.join(testProjectPath, 'build', 'sharedpch')
]);
expect(args.length).toEqual(13);
Expand Down Expand Up @@ -109,7 +109,7 @@ describe('build', function () {
'-archivePath',
'TestProjectName.xcarchive',
'archive',
'CONFIGURATION_BUILD_DIR=' + path.join(testProjectPath, 'build', 'device'),
'',
'SHARED_PRECOMPS_DIR=' + path.join(testProjectPath, 'build', 'sharedpch')
]);
expect(args.length).toEqual(13);
Expand All @@ -131,7 +131,7 @@ describe('build', function () {
'-destination',
'platform=iOS Simulator,name=iPhone 5s',
'build',
'CONFIGURATION_BUILD_DIR=' + path.join(testProjectPath, 'build', 'emulator'),
'',
'SHARED_PRECOMPS_DIR=' + path.join(testProjectPath, 'build', 'sharedpch')
]);
expect(args.length).toEqual(13);
Expand All @@ -155,7 +155,7 @@ describe('build', function () {
'-archivePath',
'TestProjectName.xcarchive',
'archive',
'CONFIGURATION_BUILD_DIR=' + path.join(testProjectPath, 'build', 'device'),
'',
'SHARED_PRECOMPS_DIR=' + path.join(testProjectPath, 'build', 'sharedpch'),
'-sdk',
'TestSdkFlag'
Expand All @@ -181,7 +181,7 @@ describe('build', function () {
'-destination',
'platform=iOS Simulator,name=iPhone 5s',
'build',
'CONFIGURATION_BUILD_DIR=' + path.join(testProjectPath, 'build', 'emulator'),
'',
'SHARED_PRECOMPS_DIR=' + path.join(testProjectPath, 'build', 'sharedpch'),
'-archivePath',
'TestArchivePathFlag'
Expand All @@ -206,7 +206,7 @@ describe('build', function () {
'TestProjectName.xcarchive',
'-allowProvisioningUpdates',
'archive',
'CONFIGURATION_BUILD_DIR=' + path.join(testProjectPath, 'build', 'device'),
'',
'SHARED_PRECOMPS_DIR=' + path.join(testProjectPath, 'build', 'sharedpch')
]);
expect(args.length).toEqual(14);
Expand Down