Skip to Content

SAP Cloud Platform SDK for iOS Re-generate proxy classes fails

I've got two errors from the mac console app, but they actually don't help.

Generating proxy classes failed. - Error Log: CompilerError: 1 error (File: ProxyClassGenerator.swift, Function: generateProxyClasses(for:_:), Line: 196)

Error occurred during existing project modification. - Error Log: The operation couldn’t be completed. (Generator.ProxyClassGenerationError error 3.) (File: ExistingProjectModificator.swift, Function: modifyProject, Line: 89)

Somebody can tell what the "Generator.ProxyClassGenerationError error 3" error is?

I haven't found error table in official docs.

Thanks,

Valery

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 24 at 10:22 AM

    Hi Valery,

    Such meaningless errors are not desired to reach the logs, but it seems that the proxy classes could not been generated in your case.

    You can try to manually generate the proxy classes with the verbose logging enabled to get more information what the problem could be.

    1. Select "Install Tools" from the Assistant's menu.
    2. Execute the following command using the installed tools: "sapcpsdk-proxygenerator -v -m 'path_to_your_metadata'"

    Thanks,

    Adam

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Adam!

      Thank you for your comment. Command tool will throw exactly the same error, so unfortunately this is not a workaround nor answering my original question about weird Error # 3. As I have already found the root cause of this error which was a specific naming for one of my classes and changed it, I've been looking for error's numbers insight for the future development.