SAP Cloud Platform SDK for iOS – Did you know that…
With this small post, I would like to share a few tips and tricks when you start exploring the SAP Cloud Platform SDK for iOS.
Some of you may have figured these out already, others might benefit from it. And if you have a tip or trick yourself, please share in the comments or in a separate blog post (make sure you tag it with ‘SAP Cloud Platform SDK for iOS’).
So, did you know that…
…you can re-generate OData proxy classes from the SAP Cloud Platform SDK for iOS Assistant directly?
Simply right-click a previously generated project, and select ‘Re-generate Proxy Classes’ from the context menu:
…you can also generate OData proxy classes from the command line?
Open a terminal and navigate to
<SDK_LOCATION>/Tools/ProxyGenerator
Run
./sapcpsdk-proxygenerator -v
to see the available options
To generate OData proxy classes, run:
./sapcpsdk-proxygenerator -m <PATH_TO_METADATA.XML> -p ./sapcpsdk-resources -d <DESTINATION_FOLDER>
…you must update the SDK framework location if you upgrade from Xcode 8.2 to 8.3?
If you upgrade to Xcode 8.3, you should also use the correct SDK (there are two downloads available, one for each Xcode version). However, if you use the newer SDK, make sure you update the SDK Assistant’s settings to point to the new SDK Framework folder.It took me a while to figure this out, but I noticed when generating a project with the newer SDK, it was still using the old Framework files (I didn’t remove the old SDK).
If you removed the old SDK, then no worries as you will get a message the Framework location no longer exists. But if you’re like me and like to keep things “for reference” (ahem), then you should update the settings in the SDK Assistant.
If you have any tips, please share with the community! ?
this is a good information . thanks for sharing .
When I tied with ES4 metdata from https://sapes4.sapdevcenter.com/sap/opu/odata/iwbep/GWSAMPLE_BASIC/ I got two complie erros with type code - Further I could not find how to send user/pass with the command ODataV4ServiceProxy(provider: provider)
Ramesh
Hi Ramesh,
Apologies, but I’m not sure I fully understand your question… if you have a question related to the SAP Cloud Platform SDK for iOS, better ask it in the appropriate Questions & Answers space: https://answers.sap.com/tags/73554900100800000743