Skip to content

Commit 6289981

Browse files
authored
Merge pull request #14 from Instabug/fix/zScriptError
🐛 fix zStripScript error when run because it needs a write permission.
2 parents d5a87c5 + 547a6df commit 6289981

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/zStripScript.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ module.exports = function(context) {
6060
var options = {shellPath: '/bin/sh', shellScript: 'bash "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/Instabug.framework/strip-frameworks.sh"', runOnlyForDeploymentPostprocessing: 0};
6161
var buildPhase = myProj.addBuildPhase([], 'PBXShellScriptBuildPhase', 'StripFrameworkScript', myProj.getFirstTarget().uuid, options).buildPhase;
6262

63+
fs.chmod(projectPath, '0755', function(exc) {
64+
fs.writeFileSync(projectPath, myProj.writeSync());
65+
});
66+
6367
fs.writeFileSync(projectPath, myProj.writeSync());
6468
console.log('Added Arch Trim run script build phase');
6569
};

0 commit comments

Comments
 (0)