Skip to content

Commit 8a28eaf

Browse files
committed
Update embed Swift standard libraries setting
1 parent 3ad027b commit 8a28eaf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/add-swift-support.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* - It puts the ios deployment target to 7.0 in case your project would have a
1111
* lesser one.
1212
*
13-
* - It updates the EMBEDDED_CONTENT_CONTAINS_SWIFT build setting to YES.
13+
* - It updates the ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES build setting to YES.
1414
*/
1515

1616
var fs = require('fs');
@@ -122,9 +122,9 @@ module.exports = function(context) {
122122
console.log('Update IOS project deployment target to:', IOS_MIN_DEPLOYMENT_TARGET, 'for build configuration', buildConfig.name);
123123
}
124124

125-
if(xcodeProject.getBuildProperty('EMBEDDED_CONTENT_CONTAINS_SWIFT', buildConfig.name) !== 'YES') {
126-
xcodeProject.updateBuildProperty('EMBEDDED_CONTENT_CONTAINS_SWIFT', 'YES', buildConfig.name);
127-
console.log('Update IOS build setting EMBEDDED_CONTENT_CONTAINS_SWIFT to: YES', 'for build configuration', buildConfig.name);
125+
if (xcodeProject.getBuildProperty('ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES', buildConfig.name) !== 'YES') {
126+
xcodeProject.updateBuildProperty('ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES', 'YES', buildConfig.name);
127+
console.log('Update IOS build setting ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES to: YES', 'for build configuration', buildConfig.name);
128128
}
129129

130130
if(xcodeProject.getBuildProperty('LD_RUNPATH_SEARCH_PATHS', buildConfig.name) !== '"@executable_path/Frameworks"') {

0 commit comments

Comments
 (0)