Search code examples
javascriptiossvelteenvironmentsvelte-native

"Your environment is not configured properly" with Svelte-native


I try to build a little application with svelte-native. When I installed NativeScript I created an application and I wanted to run it with

ns run ios

and I have this problem with the environment:

error

I updated pip and Xcode, but this error persists. I have MacBook Air with macOS Monterey version 12.


Solution

  • I found a solution to my problem here

    In my terminal this command:

    sudo ln -s $(which python3) /usr/local/bin/python
    

    next step is to install pip six

     python3 -m pip install six
    

    Now I install ios platform:

    tns platform add ios
    

    Now all works very well:

    ns doctor ios
    

    I have this answer:

    all without errors

    And I can run ios

    ns run ios
    

    working app