Question

I have a problem which is really boring.

When I use the command phonegap run ios on my Mac, I always need to unplug / plug again my device about 5s before the end of compilation, or it won't work.

When it doesn't work, I have this error :

** BUILD SUCCEEDED **

------ Install phase ------
[....] Waiting for iOS device to be connected
[  0%] Found device (8879a32aa84069dc4cb8a9fb1bacfb1961057db3), beginning install
Assertion failed: (AMDeviceStartService(device, CFSTR("com.apple.afc"), &afcFd, NULL) == 0), function handle_device, file ios-deploy.c, line 775.
/Users/tchazalet/Desktop/ma-cagnotte-mobile/platforms/ios/cordova/run: line 138: 81212 Abort trap: 6           ios-deploy -d -b "$DEVICE_APP_PATH"

Is there is a way to avoid this problem ?

Was it helpful?

Solution

I found a solution by random.

Simply needs to open Xcode and let it open. It will maintain the connection alive to the device.

OTHER TIPS

Be sure to click the "eject" button on iTunes if it's open and then close iTunes. Having iTunes open and the phone connected to iTunes will cause this issue.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top