Running iOS app on device using CLI on MAC

4 posts, 0 answers
  1. Sandeep
    Sandeep avatar
    2 posts
    Member since:
    Dec 2015

    Posted 14 Dec 2015 Link to this post

    Hi,

     I am new to Telerik Appbuilder. Since i have a MAC environment for building the app, i am using AppBuilder CLI for development. I want to run the app on an iOS device and tried this command "appbuilder livesync ios --device <device-is> --companion --watch", i am getting this message.

     Command xcrun with arguments simctl get_app_container E729E66B-4D40-48D5-AFF5-7C83C0762A65 com.telerik.testApp1 failed with exit code 2. Error output:
     An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
    The operation couldn’t be completed. No such file or directory
    No such file or directory

     

    Could someone guide me, how to get this running.?

    Thank you      

  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 17 Dec 2015 Link to this post

    Hello Sandeep,
     
    Testing the command locally worked fine and the changes live synced with the version currently deployed on the companion app. It is most probably a temporary issue appearing due to the status of the specific device. Would you please try restarting it and then connect it again? 

    Please note that in case there is just 1 device connected, then you can also directly execute the following command:
    appbuilder livesync ios  --companion --watch

    Let me know if restarting the device resolves the error.

    Regards,
    Dimitrina
    Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
  3. Sandeep
    Sandeep avatar
    2 posts
    Member since:
    Dec 2015

    Posted 17 Dec 2015 in reply to Dimitrina Link to this post

    @Dimitrina Restarting the device solved the issue. I works now. But with a "--watch", the view should update as i make the changes in my code right? 
  4. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 18 Dec 2015 Link to this post

    Hello,

    Yes, as specified in the help:
    • --watch - If set, when you save changes to the project, changes are automatically synchronized to the connected device.
    Please note the device should be connected to the machine and it should be recognized if you run the command $ appbuilder device.

    Regards,
    Dimitrina
    Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
Back to Top