Skip to content

Commit 73d7b0b

Browse files
committed
enabled debugging swift in Debug configuration
1 parent e66ee8b commit 73d7b0b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/add-swift-support.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,13 @@ module.exports = function (context) {
146146
console.log('Update SWIFT version to 3.0', buildConfig.name);
147147
}
148148
}
149+
150+
if (buildConfig.name === 'Debug') {
151+
if (xcodeProject.getBuildProperty('SWIFT_OPTIMIZATION_LEVEL', buildConfig.name) !== '"-Onone"') {
152+
xcodeProject.updateBuildProperty('SWIFT_OPTIMIZATION_LEVEL', '"-Onone"', buildConfig.name);
153+
console.log('Update IOS build setting SWIFT_OPTIMIZATION_LEVEL to: -Onone', 'for build configuration', buildConfig.name);
154+
}
155+
}
149156
}
150157
}
151158

0 commit comments

Comments
 (0)