[
https://issues.apache.org/jira/browse/CB-7135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14061377#comment-14061377
]
Shazron Abdullah commented on CB-7135:
--------------------------------------
My hypothesis is since it didn't specify to run in the emulator, it tries to
run on the device first, which uses ios-deploy to detect connected devices.
See:
https://github.com/apache/cordova-ios/blob/ee5a9a8ae406a092a604ea0b5db35621cbca9908/bin/templates/scripts/cordova/run#L128
"ios-deploy -c" is what causes the assertion.
Personally, I couldn't repro the problem using the exact same environment.
> Assertion when running "cordova run ios"
> ----------------------------------------
>
> Key: CB-7135
> URL: https://issues.apache.org/jira/browse/CB-7135
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI
> Affects Versions: 3.5.0
> Environment: cordova 3.5.0-0.2.6
> ios-sim 1.9.0
> ios-deploy 1.8.0
> Xcode 5.1.1 5B1008
> Reporter: Shazron Abdullah
>
> Reported by Michael Brooks.
> {code}
> $> cordova run ios
> [....]
> ** BUILD SUCCEEDED **
> [....] Waiting for iOS device to be connected
> ------ Install phase ------
> [ 0%] Found device (75b70bc09a1017f247f453255abdf1c817045929), beginning
> install
> Assertion failed: (AMDeviceStartService(device, CFSTR("com.apple.afc"),
> &afcFd, NULL) == 0), function handle_device, file ios-deploy.c, line 913.
> /Users/mwbrooks/Development/lib/phonegap-app-enterprise/platforms/ios/cordova/run:
> line 138: 2830 Abort trap: 6 ios-deploy -d -b "$DEVICE_APP_PATH"
> {code}
> No device was attached.
--
This message was sent by Atlassian JIRA
(v6.2#6252)