cancel
Showing results for 
Search instead for 
Did you mean: 

Custom MDK Client build fails

istvanherman
Explorer
0 Kudos

Hello,

I try to create a custom MDK client as it is described in Build Your Mobile Development Kit Client Using MDK SDK | SAP Tutorials

Environment setup theoretically okay - even if dependency installer says it is not exactly. However I always get error message "Error: Failed to add iOS platform to project" when I run the create-client command but I couldn't figure out what could be the problem.

MDK version 24.4
Screenshots:

istvanherman_0-1715241150571.png

istvanherman_1-1715241155990.pngistvanherman_2-1715241160530.png

@Jitendra_Kansal: Could you support? I didn't find similar post in community.

Thank you for any support!

Accepted Solutions (1)

Accepted Solutions (1)

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert

@istvanherman 

  • Check installed python version via python --version. If you see the result, execute link command and add python path to PATH env variable (click on the i icon for Python in the MDK dependency installer)
  • I would also suggest updating the required NS version to make sure all the needed dependencies are fulfilled before creating client.
  • Noticed that you are using sudo command for create-client. Do not use sudo command, just use ./create-client.command.
bill_froelich
Product and Topic Expert
Product and Topic Expert
I would also say that we do not currently support NativeScript 8.7.0. For Nativescript especially you should use the version specified in the Dependency Installer. In this case downgrade to 8.6.5
istvanherman
Explorer
0 Kudos
Hello,
istvanherman
Explorer
0 Kudos

Hi,

I could finally build. The key was that I have moved the downloaded MDK client to my Documents directory and therefore for some reason it was not a wise move. When I moved it back to my Downloads directory, now it's working fine.
I think it is quite interesting.

BTW: I had to downgrade also NativeScript to the proper version.

Thank you for the support!

Answers (0)