{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/remotebuild/issues/14","repository_url":"https://api.github.com/repos/Microsoft/remotebuild","labels_url":"https://api.github.com/repos/Microsoft/remotebuild/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/remotebuild/issues/14/comments","events_url":"https://api.github.com/repos/Microsoft/remotebuild/issues/14/events","html_url":"https://github.com/Microsoft/remotebuild/issues/14","id":193866929,"number":14,"title":"Build to Remote Device fails with error code 14 \"No applicable devices found\"","user":{"login":"joneill87","id":3017896,"avatar_url":"https://avatars.githubusercontent.com/u/3017896?v=3","gravatar_id":"","url":"https://api.github.com/users/joneill87","html_url":"https://github.com/joneill87","followers_url":"https://api.github.com/users/joneill87/followers","following_url":"https://api.github.com/users/joneill87/following{/other_user}","gists_url":"https://api.github.com/users/joneill87/gists{/gist_id}","starred_url":"https://api.github.com/users/joneill87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joneill87/subscriptions","organizations_url":"https://api.github.com/users/joneill87/orgs","repos_url":"https://api.github.com/users/joneill87/repos","events_url":"https://api.github.com/users/joneill87/events{/privacy}","received_events_url":"https://api.github.com/users/joneill87/received_events","type":"User","site_admin":false},"labels":[{"id":399975311,"url":"https://api.github.com/repos/Microsoft/remotebuild/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-12-06T19:47:38Z","updated_at":"2016-12-08T18:40:18Z","closed_at":null,"body":"Hi, I'm having trouble getting remoteBuild to work when deploying to a remote device. When trying to build to a device connected to my mac I get an error giving Error Code 70. Drilling down in the error message gives Error Domain=IDEDistributionErrorDomain Code=14 \"No applicable devices found.\" UserInfo={NSLocalizedDescription=No applicable devices found.}\r\n\r\nBelow is the tail of the build.log generated by remoteBuild\r\n\r\nTouch build/device/Toco\\ Connect.app.dSYM\r\n    cd /Users/jack/.taco_home/remote-builds/taco-remote/builds/34198/cordovaApp/platforms/ios\r\n    export PATH=\"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/jack/.taco_home/node_modules/taco-remote-lib/2.2.1/node_modules/ios-sim/bin:/Users/jack/.rvm/gems/ruby-2.2.3/bin:/Users/jack/.rvm/gems/ruby-2.2.3@global/bin:/Users/jack/.rvm/rubies/ruby-2.2.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin:/Users/jack/.rvm/bin:/Users/jack/bin:/Users/jack/.rvm/bin:/Users/jack/.rvm/bin:/Users/jack/Library/Android/sdk/tools\"\r\n    /usr/bin/touch -c /Users/jack/.taco_home/remote-builds/taco-remote/builds/34198/cordovaApp/platforms/ios/build/device/Toco\\ Connect.app.dSYM\r\n\r\n** ARCHIVE SUCCEEDED **\r\n\r\nNon-system Ruby in use. This may cause packaging to fail.\r\nIf you use RVM, please run `rvm use system`.\r\nIf you use chruby, please run `chruby system`.\r\n2016-12-06 14:22:45.193 xcodebuild[77107:447088] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/sb/775jkvp13lnfgrn_vz425xqw0000gn/T/Toco Connect_2016-12-06_14-22-45.191.xcdistributionlogs'.\r\n1.2.840.113635.100.1.61\r\n2016-12-06 14:22:48.145 xcodebuild[77107:447088] [MT] IDEDistribution: Step failed: <IDEDistributionThinningStep: 0x7fa0861f09c0>: Error Domain=IDEDistributionErrorDomain Code=14 \"No applicable devices found.\" UserInfo={NSLocalizedDescription=No applicable devices found.}\r\nerror: exportArchive: No applicable devices found.\r\n\r\nError Domain=IDEDistributionErrorDomain Code=14 \"No applicable devices found.\" UserInfo={NSLocalizedDescription=No applicable devices found.}\r\n\r\n** EXPORT FAILED **\r\n\r\nFailed to build app for buildNumber 34198: Error code 70 for command: xcodebuild with args: -exportArchive,-archivePath,Toco Connect.xcarchive,-exportOptionsPlist,/Users/jack/.taco_home/remote-builds/taco-remote/builds/34198/cordovaApp/platforms/ios/exportOptions.plist,-exportPath,/Users/jack/.taco_home/remote-builds/taco-remote/builds/34198/cordovaApp/platforms/ios/build/device\r\n\r\nI looked at the logs, navigated to the directory where remoteBuild had created the .xcarchive, ran the command manually and it appeared to work. The following is the output from running the xcodebuild command manually with the arguments used by remote build\r\n\r\nRAN THIS COMMAND MANUALLY\r\nxcodebuild -exportArchive -archivePath Toco\\ Connect.xcarchive -exportOptionsPlist /Users/jack/.taco_home/remote-builds/taco-remote/builds/34198/cordovaApp/platforms/ios/exportOptions.plist -exportPath /Users/jack/.taco_home/remote-builds/taco-remote/builds/34198/cordovaApp/platforms/ios/build/device\r\n\r\nGot this response\r\n2016-12-06 14:56:45.657 xcodebuild[84648:499343] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/sb/775jkvp13lnfgrn_vz425xqw0000gn/T/Toco Connect_2016-12-06_14-56-45.656.xcdistributionlogs'.\r\n1.2.840.113635.100.1.61\r\nExported Toco Connect.xcarchive to: /Users/jack/.taco_home/remote-builds/taco-remote/builds/34198/cordovaApp/platforms/ios/build/device\r\n** EXPORT SUCCEEDED **\r\n\r\nThis command generated an .ipa in the ios/build/device directory.\r\n\r\nI've confirmed that i'm able to deploy to the device using the provisioning profile selected when I use Xcode, but can't seem to get it working with xcodebuild. I'm hoping someone can point me in the right direction, please let me know if you need any further debug info."},"comment":{"url":"https://api.github.com/repos/Microsoft/remotebuild/issues/comments/265818798","html_url":"https://github.com/Microsoft/remotebuild/issues/14#issuecomment-265818798","issue_url":"https://api.github.com/repos/Microsoft/remotebuild/issues/14","id":265818798,"user":{"login":"MSLaguana","id":14098340,"avatar_url":"https://avatars.githubusercontent.com/u/14098340?v=3","gravatar_id":"","url":"https://api.github.com/users/MSLaguana","html_url":"https://github.com/MSLaguana","followers_url":"https://api.github.com/users/MSLaguana/followers","following_url":"https://api.github.com/users/MSLaguana/following{/other_user}","gists_url":"https://api.github.com/users/MSLaguana/gists{/gist_id}","starred_url":"https://api.github.com/users/MSLaguana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSLaguana/subscriptions","organizations_url":"https://api.github.com/users/MSLaguana/orgs","repos_url":"https://api.github.com/users/MSLaguana/repos","events_url":"https://api.github.com/users/MSLaguana/events{/privacy}","received_events_url":"https://api.github.com/users/MSLaguana/received_events","type":"User","site_admin":false},"created_at":"2016-12-08T18:40:18Z","updated_at":"2016-12-08T18:40:18Z","body":"That could explain the lack of auto-updating, yes. Your version of `remotebuild` is up-to-date, but there are several components in the system and the one that auto-updates is `taco-remote-lib` (and `taco-remote-multiplexer`) and it seems that something has gone wrong there. You should be able to delete `~/.taco_home/node_modules/taco-remote-multiplexer` and restart remotebuild, and hopefully it will repair itself. Note that if you do this, we'll download the latest `taco-remote-lib` package and you may need to reapply the temporary fix above."}}
{"actor":{"display_login":"MSLaguana"}}