Skip to content

Commit

Permalink
fix(ios): check for thirdparty framework path (#12148)
Browse files Browse the repository at this point in the history
Fixes TIMOB-28156
  • Loading branch information
build committed Oct 1, 2020
1 parent bc32947 commit c4d90fe
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions iphone/cli/commands/_buildModule.js
Expand Up @@ -518,11 +518,13 @@ iOSModuleBuilder.prototype.buildModule = function buildModule(next) {
const frameworksPath = path.join(this.projectDir, 'platform');
const legacyFrameworks = new Set();

fs.readdirSync(frameworksPath).forEach(filename => {
if (filename.endsWith('.framework')) {
legacyFrameworks.add(filename);
}
});
if (fs.existsSync(frameworksPath)) {
fs.readdirSync(frameworksPath).forEach(filename => {
if (filename.endsWith('.framework')) {
legacyFrameworks.add(filename);
}
});
}
if (legacyFrameworks.size > 0) {
const pbxFilePath = path.join(this.projectDir, `${this.moduleName}.xcodeproj`, 'project.pbxproj');
const proj = xcode.project(pbxFilePath).parseSync();
Expand Down

0 comments on commit c4d90fe

Please sign in to comment.