Error HE0046. Rider fails to install iOS app - ios

When trying to debug an iOS application in Rider (macOS) I get this error message in the run window.
error HE0046: Failed to install the app 'com.company.name' on the device 'iOS 13.5 (17F61) - iPhone 8': Failed to install the requested application
If I switch to Visual Studio it works fine. I am unable to find any more information regarding this error or why it is occuring. Anyone know why this might be happening?

One of possible ways to understand what is going on during deploy - read msbuild logs.
Go to Rider Preferences: Preferences | Build, Execution, Deployment | Toolset and Build and enable this logs there:
Then deploy the app and go to this folder and read msbuild logs. Probably there is a specific error there.
Also you can compare these logs to visual studio log. Anyway anytime you can fire an issue in Rider issue tracker:
https://youtrack.jetbrains.com/newIssue?project=Rider

I fixed my issue by re cloning my repo.

Related

Visual Studio Mac 2019 - Xamarin.Forms wont connexct to the debugger

I have a project that wont connect to the debugger on iOS 13.3.1 and 13.4.
Specs:
Visual Studio 8.5.3 (build 16)
Xamarin.iOS 13.16
iOS (physical device): 13.4
My project builds, deploys, installs and then appears on my physical device (does not open).
Meanwhile Visual Studio is showing "Waiting to connect to debugger...." and eventually times out with "Could not connect to debugger" message.
Here is the error message from the stack trace:
error HE0032: Could not mount developer tools on 'iOS Automation': Value cannot be null.
Parameter name: array
Error message seems straight forward, but I am not sure how to handle it.
Can anyone please let me know?
Thanks.
EDIT:
Also, I have tried multiple times to Clean the solution
Close it
delete the bin and obj directories from each project
Reopen the solution.
Build each project individually - NOT rebuild solution
After all the projects are built... Then Rebuild Solution

Building iOS app with Xamarin and Visual Studio 2019 - Error Wrong Version of Xcode installed when it isnt

I am trying out Xamarin on the Mac. I have an oldish Mac that DID have Xcode 10.1 on it.
I tried to build the iOS app and got the following error:
Severity Code Description Project File Line Suppression State
Error The Xcode version installed on the Mac (10.1) is not compatible with this version of Visual Studio. This may cause unexpected warnings or errors when building and deploying iOS projects. Please install Xcode '11.3' or visit the documentation to learn more. 0
I upgraded the Mac to Caitlin and upgraded Xcode to 11.3.
I can connect to the Mac and actually can run the iPhone simulator with the app, however, if I run the build, I STILL get the same error, like its not figured out how to update itself?
I have done the 'forget this Mac' and even renamed it on the network in case there was some legacy in a file somewhere.
I have dumped the solution and created a new one from the templates and still get the same error ... hair being torn out...
It might be one of those things that just goes away after a while I don't know. Any ideas?
Thanks.
EDIT * I realised that I wasnt clear. I am running VS2019 on a PC connecting to my Mac.

Unexpected Error with Every Build

I'm using VS 2017 Enterprise edition windows version. and it seems that for all my Xamarin.iOS projects out of nowhere every time I make a change on the code I receive this error without error code
Unexpected error - Please file a bug report at http://bugzilla.xamarin.com
If I cleaned the solution it get fixed but it's time consuming to clean and build with every tiny change
I'm made sure I all my Xamarin both Mac and Windows VS mac and windows and xCode all on the latest version. and tried uninstalling them and installing them again.
I run out of things to try here and I'm not sure what else to try
UPDATE
I found out this error in the output panel
System.IO.IOException: Sharing violation on path /Users/user/Library/Caches/Xamarin/mtbs/builds/B2C.iPhone/2c6cfc4a248b6131cfeb02b9ab72ef81/obj/iPhoneSimulator/Debug/mtouch-cache/64/PreBuild/Accessibility.dll

Issue with building iOS on AppseleratorStudio [ERROR]: Invalid "--device-id" value ""

AppseleratorStudio (Titanium), build: 4.6.0.201605201934
MacBook Pro
iPad mini, OS 8.1.
Seen similar questions being asked, but not many answers were given and most of the questions were Android related. Willing to provide more info needed if necessary.
2016-08-22T08:48:24.385Z | DEBUG | getTiDefaultPath /Users/at/Library/Application Support/Titanium
2016-08-22T08:48:24.386Z | DEBUG | active sdk install path /Users/at/Library/Application Support/Titanium
2016-08-22T08:48:26.476Z | DEBUG | to download {"modules":[{"oses":["linux","win32","osx"],"platforms":["iphone","android"],"required":true,"partner_id":"A0B129A418829127EC551EB8ADB0D1CC","partner_name":"Appcelerator","name":"Hyperloop","description":"Gain complete access to native APIs in your Titanium mobile applications.","id":"hyperloop","guid":"99a136cd-4e51-40da-bcdb-d514f5895fb5","version":"1.2.6","url":"http://appcelerator-modules.s3.amazonaws.com/hyperloop-1.2.6.zip","min_mobilesdk_version":"5.4.0"}],"components":[]}
[ERROR] : Invalid "--device-id" value ""
Available iOS Devices:
814afcb29c793aea10b182b53f3f629b73ed1a39 iPad mini
itunes iTunes Sync
For help, run: titanium.js help build
Upd1. Added device id in build command, here is the result:
[INFO] Invoking xcodebuild
[ERROR] BUILD FAILED
[ERROR] The following build commands failed:
[ERROR] CodeSign build/Products/Debug-iphoneos/Anna-inzicht.app
[ERROR] (1 failure)
Also tried to clean project - no help.
Upd2. It works ok on emulator, fail is with real device only.
The simplest fix is to go to "Debug Configurations..." and delete the config for your project. Studio will automatically rebuild it or maybe ask you for which Provisioning Profile you want to use.
While Goltsev Eugene works it's a bit much, as creating a new project makes you loose all history, analytics, push, etc. on appcelerator platform.
Try adding --device-id 814afcb29c793aea10b182b53f3f629b73ed1a39 to your titanium build command.
Finally, the solution was easy - created new project, moved all files from app folder.Build works now.
For those still having this issue in 2019.
If you aren't able to locate your device in the device list, follow these simple steps.
Update NodeJS at https://nodejs.org/#download. Then rebuilding modules with by typing into the command-line: appc ti info -t ios.
You should see the following:
"You are attempting to run appc 7.1.0 which was compiled for node 8.9.1 but you are now running node v10.16.3
Rebuilding package modules ...
Package modules rebuilt!"
After that, my device popped up on my device list.
This took a while to figure out and I could not find this straight-forward solution anywhere.

Visual Studio Cordova, building iOS package via remote agent issues

We've been building a mobile application in Visual Studid Community 2015 using the Cordova platform with the aim to publish to Android and iOS.
Android we have no issues with but want to submit the app to Apple. The problem is that we tried setting up a remote agent the last couple of days but have ran into a brick wall.
On our Macbook Pro we've installed node latest version as we are running Cordova CLI 5.4.1. Also we've installed xCode latest version. Signed up for Apple's developer program, created a distribution profile, got our certificate etc. In other words we've ticked all the boxes.
Now the issue is once we try running the remote agent and trying to connect remotely via Visual Studio to our Mac to submit to the Apple store. If we use remote agent we get the follwoing 404 error in Mac's terminal:
GET /certs/{pin number} 200 12ms - 3.49kb
GET /modules/taco-remote 404 3ms
And in Visual Studio the following pop up:
Unable to connect to remote iOS build server. Underlying exception:
The remote server returned an error: (404) not found.
If we try to use remotebuild we get an error "error parsing JSON remotebuild.config".
We've tried finding documentation or information on either of these but everything just points back to: http://taco.visualstudio.com/en-us/docs/ios-guide/ for remote build or Visual Studio's pages on how to install and run remote agent.
We've followed those steps 10 times but just keep on getting the same error. If we try from another computer's Visual Studio we get an error "Could not resolve host" though the host name is definitely correct.
We are using Visual Studio Community 2015.
Any ideas?

Resources