Skip to content

Commit

Permalink
Merge pull request #21 from viskin/master
Browse files Browse the repository at this point in the history
enabled debugging swift in Debug configuration
  • Loading branch information
akofman authored Oct 16, 2016
2 parents e66ee8b + 73d7b0b commit 62a86e7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/add-swift-support.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,13 @@ module.exports = function (context) {
console.log('Update SWIFT version to 3.0', buildConfig.name);
}
}

if (buildConfig.name === 'Debug') {
if (xcodeProject.getBuildProperty('SWIFT_OPTIMIZATION_LEVEL', buildConfig.name) !== '"-Onone"') {
xcodeProject.updateBuildProperty('SWIFT_OPTIMIZATION_LEVEL', '"-Onone"', buildConfig.name);
console.log('Update IOS build setting SWIFT_OPTIMIZATION_LEVEL to: -Onone', 'for build configuration', buildConfig.name);
}
}
}
}

Expand Down

0 comments on commit 62a86e7

Please sign in to comment.