Skip to content

Commit f40dbc1

Browse files
committed
Quote dynamic framework path
It may contain spaces which fails when passed to the `otool`. Addresses #1455
1 parent 9280aa9 commit f40dbc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/ios-project-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
268268
let project = this.createPbxProj();
269269
let frameworkName = path.basename(frameworkPath, path.extname(frameworkPath));
270270
let frameworkBinaryPath = path.join(frameworkPath, frameworkName);
271-
let isDynamic = _.contains(this.$childProcess.exec(`otool -Vh ${frameworkBinaryPath}`).wait(), " DYLIB ");
271+
let isDynamic = _.contains(this.$childProcess.exec(`otool -Vh "${frameworkBinaryPath}"`).wait(), " DYLIB ");
272272

273273
let frameworkAddOptions: xcode.Options = { customFramework: true };
274274

0 commit comments

Comments
 (0)