I get this error when doing ionic run ios: Copying /Users/.../platforms/ios/build/tcsetpgrp failed: Operation not supported on socket
But if I click run in xcode after a ionic build ios it works just fine. Any ideas? I’ve tried to delete my ios platform and rebuild it.
Also, if I do ionic run ios does that do both the build and run command?
cordova run ios does alot of things, then stops here. Nothing happens on the iPad. I could send you the project if you wanna check it out. Its no hurry
[100%] Installed package /Users/.../secret.app
------ Debug phase ------
[ 0%] Looking up developer disk image
[ 90%] Mounting developer disk image
[ 95%] Developer disk image already mounted
[100%] Connecting to remote debug server
-------------------------
(lldb) ^C^CTraceback (most recent call last):
File "/private/tmp/fruitstrap_.py", line 16, in connect_command
event = lldb.SBEvent()
File "/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/Resources/Python/lldb/__init__.py", line 3389, in __init__
def __init__(self, *args):
KeyboardInterrupt
error: the platform is not currently connected
Executing commands in '/tmp/fruitstrap-lldb-prep-cmds-'.
(lldb) platform select remote-ios --sysroot '/Users/Tobbe/Library/Developer/Xcode/iOS DeviceSupport/7.0.3 (11B511)/Symbols'
Platform: remote-ios
Connected: no
SDK Path: "/Users/Tobbe/Library/Developer/Xcode/iOS DeviceSupport/7.0.3 (11B511)/Symbols"
(lldb) target create "/Users/.../secret.app"
Current executable set to '/Users/.../secret.app' (armv7).
(lldb) script fruitstrap_device_app="/private/var/mobile/Applications/52FDC205-392F-4521-91FE-3AD5E5BB229D/secret.app"
(lldb) script fruitstrap_connect_url="connect://127.0.0.1:12345"
(lldb) command script import "/tmp/fruitstrap_.py"
(lldb) command script add -f fruitstrap_.connect_command connect
(lldb) command script add -s asynchronous -f fruitstrap_.run_command run
(lldb) connect
(lldb) run
The first time I ran “ionic run ios”, it was fine. Logging statements were output to the terminal window. However, upon running again, it keeps failing about 70% complete with this error:
tcsetpgrp failed: Operation not supported on socket
However, I get the new version of the app on the device. Very strange. I am deploying to an iPhone 5s.
Here is a snippet of the log:
[ 49%] Copying /Users/keithdmoore/dev/ehms_mobile/main/platforms/ios/build/device/MyAwesomeApp.app/www/views/uploadPhoto.html to device
[ 52%] CreatingStagingDirectory
[ 57%] ExtractingPackage
[ 60%] InspectingPackage
[ 60%] TakingInstallLock
[ 65%] PreflightingApplication
[ 65%] InstallingEmbeddedProfile
[ 70%] Ve
tcsetpgrp failed: Operation not supported on socket
(lldb)
It works better. It installs the app. However, it disconnects from the debugger.
------ Debug phase ------
[ 0%] Looking up developer disk image
[ 90%] Mounting developer disk image
[ 95%] Developer disk image already mounted
[100%] Connecting to remote debug server
Hey @keithdmoore and @mpj , totally forget to respond here after looking at @tobbe’s code. So I got tested it on my computer and was able to emulate, run, and deploy to my actual device.
I uninstalled the ionic CLI, cordova, ios-sim, and ios-deploy from my system then reinstalled for a fresh start and was running node v0.10.26
This should get you the latest and greatest stuff. The run command will try to launch the app on an actual device, so make sure its all set up with certs and provisioning profiles.
Didnt work for me. Same experience for both “ionic run ios” and “cordova run ios”. No worries. Just a nice to have really. Thanks for looking into it though.
@mhartington I’m assuming that you meant running those npm with a -g flag. Either way, I uninstalled and reinstalled but the problem still remains. node v0.10.26.
I’m not running with a proper provisioning profile, but using the one that Xcode sets up automatically along with the “use this device for development”. Might be related.