28

I have an ionic app and I'm trying to run this:

ionic cordova build ios

Compilation succeeds, but I see these errors just before it succeeds:

RegisterExecutionPolicyException /Users/moblizeit/Library/Developer/Xcode/DerivedData/Scan_Buddy-bgqkrrwvotqcxbgakwtfvdcnmkvx/Build/Intermediates.noindex/ArchiveIntermediates/Scan\ Buddy/InstallationBuildProductsLocation/Applications/Scan\ Buddy.app (in target 'Scan Buddy' from project 'Scan Buddy')
    cd /Users/moblizeit/code-repo/apps/business-card-scanner/businesscardscanner/platforms/ios
    builtin-RegisterExecutionPolicyException /Users/moblizeit/Library/Developer/Xcode/DerivedData/Scan_Buddy-bgqkrrwvotqcxbgakwtfvdcnmkvx/Build/Intermediates.noindex/ArchiveIntermediates/Scan\ Buddy/InstallationBuildProductsLocation/Applications/Scan\ Buddy.app
note: Execution policy exception registration failed and was skipped: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" (in target 'Scan Buddy' from project 'Scan Buddy')

Any idea about what is failing and how to fix it?

Hemang
  • 26,840
  • 19
  • 119
  • 186
Moblize IT
  • 1,140
  • 2
  • 18
  • 44
  • 1
    Seems to be a Catalina problem - https://forums.developer.apple.com/thread/124529. Maybe safe to ignore? – Paul Beusterien Nov 08 '19 at 17:55
  • @Moblize I have the same problem, is there a chance you manage to solve it? – sharon Apr 19 '20 at 16:46
  • I have open an issue [here](https://github.com/apache/cordova-ios/issues/832) to see if this can be a problem from the cordova-ios. – Hemang May 07 '20 at 07:21
  • If you pass `UseModernBuildSystem=NO` to xcodebuild or change this setting in your xcode project from `File` -> `Project Settings...` -> `Build System` drop down to `Legacy Build System` will remove the error. I don't think this is the "correct" solution though. – Bruno Bieri Jun 15 '20 at 07:18
  • I get the same thing and I'm NOT running ionic (straight Cordova) so it's not isolated to the ionic CLI. @Hermang's issue on apache/cordova-cli was fairly specific to passing parameters to ionic, but I'm not doing that so my experience is every so slightly different. We'll see if Apple barks during approval though, that should hint if it's important or not. – Tawpie Jul 23 '20 at 00:05
  • It could very well be the name of your app - even in the file structure itself, try renaming it to ScanBuddy perhaps? I believe the space is causing the issue. – Grant Dec 13 '21 at 13:45
  • Just a wild suggestion and ignore me if I am stupid but what happens if you change your project folder name to not include a white-space, so something like `Scan_Buddy` – Lars Vonk Mar 14 '23 at 14:37

0 Answers0