This is a migrated thread and some comments may be shown as answers.

Running iOS app on device using CLI on MAC

3 Answers 83 Views
Command-Line Interface
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sandeep
Top achievements
Rank 1
Sandeep asked on 14 Dec 2015, 02:23 PM

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      

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 17 Dec 2015, 12:53 PM
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.

 
0
Sandeep
Top achievements
Rank 1
answered on 17 Dec 2015, 03:57 PM
@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? 
0
Dimitrina
Telerik team
answered on 18 Dec 2015, 07:43 AM
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.

 
Tags
Command-Line Interface
Asked by
Sandeep
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Sandeep
Top achievements
Rank 1
Share this question
or