I am on a PC Visual Studio CE 2022 attempting to archive and deploy for iOS. I am using the following command:
dotnet publish PopUpShop.Mobile.Maui -f net7.0-ios -c Release /p:ServerAddress=192.168.1.XXX /p:ServerUser='username' /p:TcpPort=58181 /p:ArchiveOnBuild=true
The process builds and connects to my Macbook but then throws this error:
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\16.1.1477\tools\msbuild\iOS\Xamarin.Shared.targets(1738,3): error : Could not find Microsoft.iOS in /usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.1.1477/
I am not quite sure where it is looking for /usr/local/share.... I assume that is on the Macbook.
Do I have to install that version of the SDK on the Macbook? If so how do I do that? (Not a mac user). I tried in Terminal
dotnet add package Microsoft.iOS.Sdk --version 16.1.1477
but it wants to add that to a specific project.
Xcode 14.2 is still working on and it's not supported yet by Visual Studio c. You could check the release note here Visual Studio 2022 version 17.4 Release Notes.
As an alternative, you could now try downgrading back to Xcode 14.1 and build the project. If you still have questions, feel free to ask.
Hope it works for you.
The problem was I was missing the /p:_DotNetRootRemoteDirectory='/Users/{mac_os_username}/Library/Caches/Xamarin/XMA/SDKs/dotnet/' parameter. For some reason it was not part of the cli string I copied. The error message doesn't help either, sends you down a rabbit hole.
Related
I am trying to build a MAUI app on Mac OS using Visual Studio and I got an error that says to run dotnet workload install wasm-tools so I try running it in the Mac terminal in the app project folder and I get the following error.
Workload installation failed: One or more errors occured. (The given key 'Microsoft.iOS.Sdk' was not present in the dictionary.)
It runs on Visual Studio on Windows for the Android version. I've ensured that everything is updated, including the Mac itself and Visual Studio.
Please be noted that it is a known issue that is being tracked in dotnet workload fails with KeyNotFoundException after updating SDKs, you can try to run dotnet workload uninstall ios, after which you can try to run dotnet workload restore which finally should work.
I'm developing a solution and I'm using Visual Studio 2022 for the Mac on a Mac Mini M1.
The VS build is 6509 (latest i think).
I can debug my web-site w/o issue
I can RUN unit tests w/o issue
But if I try to DEBUG my unit tests (I'm using xunit) I get the following:
Unable to attach to CoreCLR. Unknown Error: 0x80131c3c
Any ideas?
I eventually fixed this by basically deleting VS and .net and then reinstalling. The only thing I can figure is that I had the old x86 stuff already installed and when the new M1 stuff went it some of the configuration files got messed up.
I am aiming to deploy a mobile application to the iOS platform using codes developed in Visual Studio for an Android phone. I am unable to open the Visual Studio file on my Macbook (macOS High Sierra ver.10.13.6) as Visual Studio here does not seem to support .jsproj files. As such, I have attempted following the instructions in the link below to run a remotebuild on my mac while debugging codes and seeing an iOS simulator on my Windows computer.
https://learn.microsoft.com/en-us/visualstudio/cross-platform/tools-for-cordova/first-steps/ios-guide?view=toolsforcordova-2017#run-on-simulator
I was able to get the remotebuild running, however, I came across the error where it required my projects to use cordova-ios 4.3.0 or greater with Xcode 8.3. As my windows computer does not have Xcode, I turned to my macbook and tried updating and adding the Cordova iOS platform through the terminal, where it said "Current working directory is not a Cordova-based project." I have searched the error up and it said that it required my Visual Studio project to be open, which I am unable to do so as my file is not supported in the Mac version of Visual Studio.
The iOS version in my Windows Visual Studio is currently 4.2.0 and I am unsure how to get about updating it. I have seen the link below but in only applies to Macbook, where I cannot open the Visual Studio project file.
Install specific version of Cordova CLI in Visual Studio 2017
I have installed node.js as well as Git, also attempting to include/update the Cordova iOS platform through the command prompt (Once again unsure if that was the method, but I tried), however, the command prompt did not recognise the update to cordova. Under the toolset in Visual Studio, I have tried ticking on the checkbox under Cordova platforms to take the latest patch, where ~4.2.0 appears, but still does not update.
I am still new to coding and things seem very foreign to me, if I have missed out anything vital or am doing something fatally wrong, please do enlighten me.
I'm using Visual Studio Mac to build a .NET Core MVC web application that I want to run in a Docker container.
The solution compile and run correctly, but when I try to add the Docker support,
from the solutions menu, the choice "Add Docker support" is missing!
The Visual studio is the Community Edition 7.1 (build 1297)
The docker for mac is the 17.06.1-ce-mac24
The .Net Core is 2.0
Anyone can help me?
Thanks
Ivan
Docker support was removed in Visual Studio for Mac 7.1.0.1297.
Docker support was available in early Visual Studio Mac 7.1 preview versions but was not stable at the time VS Mac 7.1 was released so it was removed.
Visual Studio for Mac 7.2, currently available on the alpha channel, does include Docker support.
I don't find the add docker support worth it to be honest, as long as you have Dockerfile in the root of the project. And your compose files up a level with the solution. You can achieve pretty much the same thing.
It'd just be a pain to debug/attach straight into it. I've never found a reason to yet, but that's just me.
I've been using Appcelerator Studio a lot, never seen this problem before. I recently did a fresh installation of OS X, then installing Xcode (7.3.1) and Command Line Tools for Xcode 7.3.1.
When installing Appcelerator Studio (build: 4.5.0.201602170821) everything is going great, the CLI gets installed. When starting up Appcelerator Studio, I have to configure SDKs, hence I am only interested in iOS at the moment, I uncheck Android in the Platform Configuration. The following is that Configuring SDK encountered a problem:
An internal error occurred during: "Configuring SDK". java.lang.NullPointerException
I continuing, and go to Preferences>Studio>Platforms>iOS, where the iOS SDK home says Not specified, I click refresh - nothing happens.
I run xcode-select -p and the correct path to Xcode Developer folder is printed.
Anyone having a clue of solving this?
I've check all the version statuses, also tried to reinstall and deleting all information that can impact to this.
Share the directory hierarchy where you have stored Android SDK and Platform screen folder. Also try to follow the guidelines of Titanium to integrate iOS, but remember to clean the hidden folders in root directory of your OS X system.
I believe the problem might be with your Xcode. Are you having multiple Xcode's installed?
Use sudo xcode-select -switch <xcode_folder_path> switch between Xcode's.
Then,run appc ti info -t ios and check whether CLI is able to identify the selected Xcode. If your Xcode is listed here, then studio should be able to identify it.