質問

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 ?

役に立ちましたか?

解決

I found a solution by random.

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

他のヒント

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top