Encountering the message "Error mounting to image" and "No devices found to debug" when attempting a Remote Build to a Mac using Xcode with Cordova

I'm encountering an issue while trying to debug my cordova project on an iPhone using a remote build on my Mac. The build is successful, but I receive the following two error messages during deployment:

Failed to launch iOS remote for build
C:\Flex\Trunk\Flex.Net\Flex.Net.MobileHybrid\bld\ios\Release\buildInfo.json` to : Http 404: Error mounting developer disk image

In an attempt to resolve this error, I've already attempted the following without success:

  • Restarting all devices
  • Ensuring the presence of a disk image for each iOS by checking the folder Finder > Xcode > Show Package Contents > Developer > Platforms > DeviceSupport.
  • Downloading the latest XCode, Cordova, and iOS (10.0.2) on my phone.
  • Utilizing a phone with a lower version of iOS (9.3).

Failed to Debug iOS remote for build C:\Flex\Trunk\Flex.Net\Flex.Net.MobileHybrid\bld\ios\Release\buildInfo.json to : Http 500: No devices found to debug. Please ensure that a device is connected and awake and retry.

Regarding the second error message, here are the steps I have taken in an effort to address it:

  • Verifying that all different kinds of Apple developer certificates are set up properly. I have also successfully debugged the device on XCode on my Mac.
  • Restarting all devices involved, updating everything (Xcode, Visual Studio, iOS, Cordova, plugins, etc.), and attempting to register a different iPhone as well.

If anyone has any insights into what might be triggering these errors, please share your thoughts. I feel like I have exhausted almost every troubleshooting step.

Answer №1

After attempting Zelina's fix, I encountered the following error message

Error: libimobiledevice HEAD-45fda81 already installed
and faced continuous failure (Http 404 and 500).

To resolve this issue on my MAC terminal, I took the following steps:

  • uninstalled ideviceinstaller using brew
  • forcefully uninstalled libimobiledevice while ignoring its dependencies with brew
  • updated brew and then reinstalled libimobiledevice with --HEAD option, followed by installing ideviceinstaller and ios-webkit-debug-proxy
  • performed an upgrade on ios-webkit-debug-proxy via brew

If the installation process goes smoothly without any errors, try debugging with VS2015 once more - it should now function correctly.

I sincerely hope that this solution proves helpful to someone out there, as I personally struggled for a considerable amount of time before discovering this workaround.

Answer №2

Following the recommendation, I decided to update the library responsible for deploying on devices from my mac by using the command

brew upgrade libimobiledevice --HEAD
. As a result, I have been able to successfully deploy using Visual Studio.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Getting access to the useState values within the getServerSideProps function in NextJS

How can I access the useState variable searchQuery inside the getServerSideProps function when one function takes user input and another performs a search for that input data? function SearchDemo() { const [searchQuery, setSearchQuery] = useState(&a ...

Disable the default controls on the Open Layers Bing Map

I am currently working on an App that utilizes Geolocation with Open Layers to load a Bing Map Layer. My goal is to enable touch-based zooming and remove the default zoom buttons. Additionally, I would like to relocate the 'i' button to prevent a ...

Tips for adding color to the <td> element in an ejs file using nodeJS

I am looking to incorporate a color into my .ejs file. Here is the code snippet I am working with: <% resultList.forEach(function(item, index){ %> <tr> <td><%= item.function %></td> <td><%= item.value %>< ...

Default outlined style set for all v-text-fields in Vuetify

Is there an easy method to modify the default value of the "outlined" props for all instances of "v-text-field" within a given project? Find more information here https://i.sstatic.net/ZAJWS.png ...

when the window is scrolled a certain amount, use jQuery to scroll back in the opposite direction

Using jQuery for Background Image Position: $(window).scroll(function() { var scroll = $(window).scrollTop(); if (scroll >= 50) { $(".class").addClass("bgposi"); // $(".top").addClass("fixd"); // $(".logo").addClass ...

Having trouble configuring Angular-UI Router to work properly with Apache server

My web app is running on my PC through an Apache server, but I'm having issues with the routing provided by ui.route. It seems that the simple state I defined is never being reached. To troubleshoot, I added a wildcard to catch all paths and found th ...

Avoid adding any empty entries to the list using jQuery

I have implemented a code to prevent any blank entries from being added to my list, and it seems to be working fine. However, I can't shake the feeling that there might be a better way to achieve this. Even though it functions correctly, it doesn&apos ...

How can I make sure my rows are properly aligned using the Grid

Looking at the image below, I am attempting to align "Ticket Number" and "Email" using a Grid: View My Result Image <Grid container direction="row" justifyContent="flex-start" alignItems="stretch" style={{ pad ...

View 360-degree panoramas on an iPad using the krpano HTML

I am currently experimenting with the KRPano HTML5 panorama viewer for a specific page on tablets/iPads. The flash viewer works seamlessly on desktops: embedpano({ swf: "/Files/Flash/krpano.swf", xml: "/Files/Flash/view.xml", target: "panview", id: "krpan ...

Rails 4 not properly executing success function after rendering JSON response

Currently, I am utilizing the jQuery method $.get to retrieve a JSON response from the server. $.get(SITE_EDIT_HOME_URL,{key: key},function(r){ r = JSON.parse(r); console.log(r); }); This is how I handle the request and send back a response: def g ...

Utilizing the onchange event handler to dynamically alter the webpage upon input

I am attempting to dynamically change my HTML page based on certain input. However, I have encountered issues with JavaScript event handlers not functioning as expected in achieving this. Below is the code snippet I used: var nam = document.getElementById( ...

How can Request.UrlReferrer be configured using client-side JavaScript? If it can be done, what is the process?

In my application, I heavily rely on Request.UrlReferrer to handle link clicks and maintain a page history for users. Due to new requirements, I now need to navigate to a specific location using <input type="button" /> instead of <a href="mypage. ...

Unable to retrieve JSON data for the JavaScript object

I have been working on creating a JS object in the following manner var eleDetailsTop = new Array(); var j = 0; var id = "ele"+j; eleDetailsTop[id] = {id: id, size : "40%", sizeLabel : 12, type : "image", title : "Image& ...

What is the best way to utilize an accordion feature to display collections of documents?

My request: 1. Retrieve data from a MongoDB collection and display it in an accordion format on a webpage. 2. Ensure that the active ID of the selected HTML accordion tag matches the document ID from the collection. 3. Implement a dropdown transition ...

Synchronize information between mongoDB and firebase bidirectionally

My current situation: Having developed an application using React, NodeJS, and Electron, most of my users utilize the app offline. Next plans: With intentions to cater to mobile users as well, I am considering creating a mobile application using React-N ...

The file reading code in my Node.js application suddenly stopped working

I have a basic web application that I am currently developing using Node.js and Express. This is a breakdown of my package structure: https://i.stack.imgur.com/D7hJx.png The entries in my questions.json file are outlined below: [ { "question": "Wh ...

What is the best way to dismiss the modal window in React upon clicking the "Add product" button?

Hello all, I'm having trouble figuring out how to close the modal window in React. I want it so that when the user clicks on the "Add" button, a modal window opens for data input, and then upon clicking the "Add product" button, the window closes imme ...

Sequelize - Leveraging Associations in Where Clauses

Within sequelize, my setup includes boards and users with a many-to-many association structured like this: User.hasMany(Board, {through: BoardUsers}); Board.hasMany(User, {through:BoardUsers}); I'm trying to figure out if there's a way to use a ...

Live updating time and date functionality using JavaScript

Is it possible to dynamically display the time elapsed from now without refreshing the page? I'm considering using the date-fns package for this functionality. Can I use a Watcher in Vue JS to monitor changes in real-time? Any assistance on this matte ...

Issue with communication between AngularJS and Spring MVC causing response data not to be received correctly through ngResource

I have configured my application with Spring MVC for backend and AngularJS for frontend. I am encountering an issue with ngresource while making http calls. The response data is not being retrieved properly. test.js angular.module('app').factor ...