Building Cordova iOS project in CircleCI




I’m trying to make Cordova iOS project build with gym:

gym --scheme “SomeScheme”

Which fails with:
▸ Running script ‘Copy www directory’

The following build commands failed:
PhaseScriptExecution Copy\ www\ directory /Users/distiller/Library/Developer/Xcode/DerivedData/App-hedvcpqqxzhxsaacfpigxyttvdof/Build/Intermediates/ArchiveIntermediates/App/IntermediateBuildFilesPath/
(1 failure)
[23:47:20]: Exit status: 65

[!] Error building the application - see the log above

Copy www directory is a build phase command that is listed in XCode project. It is:
/bin/sh cordova/lib/

Apparently CircleCI setup doesn’t like this command for some reason and I would like to understand why it happens. Has anyone encountered such an issue before? If I try to build the app with xcodebuild directly, it will execute this command just fine.

Thank you!