Skip to content

Commit

Permalink
fix(ios): remove Frameworks directory prior to copying
Browse files Browse the repository at this point in the history
If any framework underneath changes (say the appc-cli is injecting the appc-verify pieces) then it
will cause the Frameworks to be copied again and as there are symlinks the copy will get funky
and try to place symlinks underneath each other. Removing the directory before copying just
prevents this error from happening
  • Loading branch information
ewanharris authored and sgtcoolguy committed Sep 15, 2020
1 parent 7bcc806 commit 405e179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iphone/cli/commands/_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -4708,7 +4708,7 @@ iOSBuilder.prototype.copyTitaniumiOSFiles = function copyTitaniumiOSFiles() {
// The content of Frameworks directory only change if we change SDK version. So it is safe to copy whole directory.
// Copy whole 'Frameworks' directory from SDK to build directory, to preserve symlink available in Titaniumkit.xcframework.
// TODO: Is there any better way to do this?

fs.emptyDirSync(path.join(this.buildDir, dir));
fs.copySync(path.join(this.platformPath, dir), path.join(this.buildDir, dir));
copyFrameworks = false;
}
Expand Down

0 comments on commit 405e179

Please sign in to comment.