I am using Visual Studio 2022 v. 17.4.4 on Windows.
My Mac has XCode 14.1.
When I am working with a Xamarin Forms project, I have no problem.
When I am working with a MAUI project, connecting to the Mac fails.
To try again, I have to close Visual Studio and reopen it, because the "Connect" button gets disabled.
I have downloaded and installed xamarin.ios-16.1.1.27.pkg and xamarin.mac.9.0.0.27.pkg on the Mac, but I get the same results.
On a suggestion from a comment below, I installed VS 17.5 Preview (17.5 build 1728) on the Mac, but I get the same results.
Sometimes I get an error, and sometimes I don't. When I do get the error, it says:
"The Xcode version installed on the Mac (14.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 '0.0'."
One thing that jumps out to me is it is asking me to install XCode 0.0.
Here is the Xamarin log when I try to connect:
Checking host configuration for connecting to <mac's IP address>...
Checking SSH configuration...
Current SSH Key File: C:\Users\XXXXX\AppData\Local\Xamarin\MonoTouch\id_xma.pub
Initializing environment...
Checking available disk space...
Checking Mono installation...
Checking host configuration for connecting to '<mac's IP address>'...
Host '<mac's IP address>' is configured correctly
Starting connection to '<mac's IP address>'...
Checking Broker 17.4.0.312 installation...
Starting Broker 17.4.0.312 in port 59545...
Broker 17.4.0.312 started successfully
Starting connection to '<mac's IP address>'...
SSH connection to '<mac's IP address>' has been established...
Starting registered Agents: IDB 17.4.0.312...
Starting IDB 17.4.0.312...
Checking IDB 17.4.0.312 installation...
Starting IDB 17.4.0.312 in port 59545...
IDB 17.4.0.312 started successfully
IDB 17.4.0.312 started
Starting registered Agents: ...
The Agents have been started successfully
Performing server validations against '<mac's IP address>'...
dotnet validation completed
The dotnet SDK is already installed. Version: '7.0.102'
Sdk packs found:
dotnet validation completed
The dotnet ios workload is already installed. Version: '16.1.1477'
Initializing IDB environment...
Server Settings:
- mlaunch path:
- Xcode version: 14.1
- Xcode path: /Applications/Xcode.app
Starting disconnection from <mac's IP address>...
Validating Mac operating system version compatibility...
Starting disconnection from <mac's IP address>...
The connection to '<mac's IP address>' has been finished
I have searched online for countless hours, but found no solution.
Microsoft released Visual Studio 2022 17.5 Preview 6 which cured the problem, but MAUI still doesn't work.
Related
I have been trying for hours to get a simple program to be debug remotely.
On the remote macOS, I cannot build it as it is an older macOS that cannot have the latest Xcode to build without any errors.
My plan was to build on the development machine, then use LLDB to debug it remotely.
On the remote machine I have run debugserver "DEV_IP:1234"
On the dev machine:
lldb
platform select remote-macosx
platform connect connect://REMOTE_IP:1234
file a.out
run
I do have this log on the remote machine Got a connection, waiting for process information for launching or attaching.
However, it always fails with the following error:
error: invalid host:port specification: 'REMOTE_IP'
If anyone has an idea on how I could remotely debug without having to install the binary on the remote machine AND without getting started before attaching as the process early crashes.
When trying to run a command remotely on a Windows Server 2019 machine from a Ubuntu 16.04 machine using winexe:
winexe -U 'someusesr%thepas!#<sword' //34.86.123.123 "ipconfig"
the following error appears after some time of doing nothing:
ERROR: Failed to open connection - NT_STATUS_OBJECT_NAME_NOT_FOUND
TCP port 137 has already been opened (using Google Cloud Firewall) for the Windows Server 2019 system. What might be the problem here that is preventing this command from running remotely?
Using Winexe v1.1 on Ubuntu 16.04. Target system is a Windows Server 2019 running on Google Cloud
I recently wiped my Macbook Pro and I am trying to setup the "Pair to Mac" functionality in Visual Studio 2019 on my Windows machine. I also just updated Visual Studio 2019 on my Windows machine to 16.3.0. The Mac is running Visual Studio 8.3 (build 1805).
I receive an error when I try to Pair to Mac:
Couldn't connect to [ip address]. Please try again. XMA-Failed-dd7e7bf-Access to path '/Users/[user]/.config/Xamarin/Xamarin Messaging/1.1.6.217-d16-3+64904be' is denied.
I have Remote Login enabled, Firewall is off, Xcode 11 installed, xamarin-ios sdk installed.
It looks like a permissions issue but I'm not sure what else to check.
Edit
I'm also able to ssh into the Mac and run a successful 'ls' command.
I ran the following command and it fixed my issue:
sudo chown -R [username] .config
I have a Xamarin.IOs project which I code in Visual Studio 2017 for Windows and debug on a real device connecting to a Mac Build Host via the Pair to Mac tool of Visual Studio.
But I get this error when I try to run my Xamarin.IOs application,
An inconsistency between the local app and the remote build has been detected for <App Name>. Please rebuild the application and try again. Check the logs for more details
Neither of these solved the problem,
Rebuilding the application and running again
Clean the project, build it and running again
Clean the project, deleting the bin and obj folders, build it and running again
When this error occurs, you have to simply disconnect your Mac Build Host and then reconnect to that Mac Build Host. Then just try to run the application on the device, it would work!
Image Guide
A: Open Pair to Mac window to connect to a Mac Build Host
B: The connected Mac Build Host
C: Right click and Disconnect this Mac Build Host, then connect to it again
Now if you run the application it would deploy to the device without any issues.
Note: Connecting To Mac tutorial
https://learn.microsoft.com/en-us/xamarin/ios/get-started/installation/windows/connecting-to-mac/
Recently I upgraded my components (Cordova, node.js, Ionic, etc.) on my Windows 10 computer and on my Mac in order to be (more or less) up-to-date.
Using Visual Studio 2015 I am developing a hybrid mobile app, which can be built when it comes to Android.
However when I start remotebuild --secure false on my Mac and try deploying the files from my Windows PC it finally fails with the following errors:
Severity Code Description Project File Line Suppression State
Error /Users/joey/.cordova/lib/npm_cache/cordova-ios/4.5.3/package/bin/create Command failed with exit code 1 MY-NICE-APP V4 C:\_develop\MY-NICE-APP_V4\MDAVSCLI 1
Severity Code Description Project File Line Suppression State
Error Error: Remote build error from the build server Build failed with error /Users/joey/.cordova/lib/npm_cache/cordova-ios/4.5.3/package/bin/create: Command failed with exit code 1 - MY-NICE-APP V4 1
The following has to be mentioned as well:
Prior to the upgrade all went well.
The way I deploy in Visual Studio is either 'Release - iOS - Remote Device' or 'Release - iOS - Simulator iPhone 5'. The error is the same.
When deploying to Ripple locally all works well.
On Mac I can see the commands GET /cordova/build/tasks/21740 200 5.020 ms - 689 or similiar, which proves that the connection between Mac and PC works.
In the target folder '/Users/joey/.taco_home/remote_builds/21740/cordovaApp' I see all files/folders, which have to be there. However the most important folder '(...)/cordovaApp/platforms' is empty.
I suspect a problem on my Mac in regards to Cordova, but am helpless what in detail.
Here are some config details regarding my Mac:
node.js: 0.12.9
npm: 2.14.9
cordova: 6.5.0
ios-sim: 6.1.2
ionic: 2.2.1
Note that above Cordova shows something with 4.5.3, even I have a newer version running (6.5.0)...
Having spent hours of debugging I fixed the issue by updating node.js, npm and remotebuild on my Mac. However I ran into a different problem, which I will describe in another thread.