I have a Xamarin 2 solution that's been working fine - but it suddenly won't build using Xamarin Studio for Mac. (It builds fine using Visual Studio)
This is the build error:
/Source/trunk/c1/.nuget/NuGet.targets: Error: Command 'mono
--runtime=v4.0.30319 Source/trunk/c1/.nuget/NuGet.exe install "" -source "" -RequireConsent -solutionDir "/Source/trunk/c1/"' exited with code: 1. (c1.Models)
I'm using this Add-in to restore Nuget packages within Xamarin Studio for Mac. All of the Nuget packages are downloaded and restored.
https://github.com/mrward/monodevelop-nuget-addin
This article mentions a similar problem, but I've removed the space as it suggests and it hasn't made a difference. http://nuget.codeplex.com/workitem/3332
I would greatly appreciate any tips - thank you!
You hit just one of the typical NuGet/xbuild compatibility issues, including the one I reported a while ago,
http://nuget.codeplex.com/workitem/list/basic?field=CreationDate&direction=Descending&issuesToDisplay=All&keywords=xbuild&emailSubscribedItemsOnly=false
http://nuget.codeplex.com/workitem/4051
The workaround you find like using the latest NuGet.targets can help, but ultimately Microsoft guys have implemented a brand new restore approach (which has been deployed already to all Microsoft platforms), now it is time to wait for Xamarin to catch up.
(Updated: Now you should use
mono --runtime=v4.0.30319 .nuget/NuGet.exe update /self
mono --runtime=v4.0.30319 .nuget/NuGet.exe restore my.sln
to restore packages.
More information can be found at NuGet site)
I think I've solved this problem. I replaced the NuGet.targets file with the following:
https://raw.github.com/xamarin/Xamarin.Mobile/master/.nuget/NuGet.targets
That file seems like a more modern file that fixes some of the -RequireConsent and $(SolutionDir) spacing issues. I lost many hours on this - hope it helps someone else.
Related
I am unable to debug a Xamarin.iOS application out of JetBrains Rider 2022.2.2. This is the error that gets thrown when trying to deploy to the simulator:
error HE0004: Could not load the framework 'DVTITunesSoftwareServiceFoundation' (path: /Applications/Xcode.app/Contents/SharedFrameworks/DVTITunesSoftwareServiceFoundation.framework/DVTITunesSoftwareServiceFoundation):
dlopen(/Applications/Xcode.app/Contents/SharedFrameworks/DVTITunesSoftwareServiceFoundation.framework/DVTITunesSoftwareServiceFoundation, 0x0001): Library not loaded: '#rpath/ContentDelivery.framework/Versions/A/ContentDelivery'
Referenced from: '/Applications/Xcode.app/Contents/SharedFrameworks/DVTITunesSoftwareServiceFoundation.framework/Versions/A/DVTITunesSoftwareServiceFoundation'
Reason: tried: '/usr/lib/swift/ContentDelivery.framework/Versions/A/ContentDelivery' (no such file), '/Library/Frameworks/Xamarin.iOS.framework/Versions/15.12.0.2/lib/mlaunch/mlaunch.app/Contents/MacOS/../Frameworks/ContentDelivery.framework/Versions/A/ContentDelivery' (no such file), '/Applications/Xcode.app/Contents/SharedFrameworks/DVTITunesSoftwareServiceFoundation.framework/Versions/A/Frameworks/ContentDelivery.framework/Versions/A/ContentDelivery' (no such file), '/usr/lib/swift/ContentDelivery.framework/Versions/A/ContentDelivery' (no such file), '/Library/Frameworks/Xamarin.iOS.framework/Versions/15.12.0.2/lib/mlaunch/mlaunch.app/Contents/MacOS/../Frameworks/ContentDelivery.framework/Versions/A/ContentDelivery' (no such file), '/Applications/Xcode.app/Contents/SharedFrameworks/DVTITunesSoftwareServiceFoundation.framework/Versions/A/Frameworks/ContentDelivery.framework/Versions/A/ContentDelivery' (no such file), '/System/Library/Frameworks/ContentDelivery.framework/Versions/A/ContentDelivery' (no such file)
I had the same problem.
Let me guess... You just upgraded to XCode14 and the corresponding Command Line Tools?
Downgrading XCode and Command Line Tools to 13.4.1 helped me.
What worked for me
Go To https://developer.apple.com/download/all/?q=command%20line%20tools
Download XCode and Command Line Tools for Xcode 13.4. Unpack Xcode (13.4.1) and rename it (for example Xcode 13) and place it parallel to Xcode (14) in the programfolder.
.
Then install the Command Line Tool.
Now in Xcode (still 14) > Preferences > Location > Command Line Tools, select version 13.4.1 instead of 14. You can see the Path for it is "Application/Xcode 13".
For safety restart tools, and it worked again...
Update: With the last update of Visual Studio, the downgrade was no longer necessary for me. Since then I can build the apps with XCode 14 and the corresponding command line tools without any problems. So I suggest upgrading Visual Studio to the latest version first.
Here is how I made it work:
Download the former version here (note: you need a developer account)
Double-click on the downloaded .xip file to install XCode 13.4.1
Rename the newly installed XCode application into Xcode.13.4.1.app and move it into your Applications folder
Open the usual XCode application and go to the preferences
In the locations tab you will be able to select XCode 13.4.1 for Command Line Tools
Redownload Visual Studio?
It turns out Microsoft released a brand new Visual Studio at some point.
We haven't been in our Xamarin project for a while and even though it said there were no updates, no Simulators were showing up.
Our Visual Studio said the version was 8.10.25 yet when I was reading the release notes, they referred to version 17.3.7.
Our team had to download Visual Studio again and then we saw the version updated to 17.3.7.
So check your version of Visual Studio and redownload the newest one. That's what fixed this issue for us.
Latest update fixed the issue for me.
I had the same issue, while searching for answer I found this thread,
writing this to confirm that I took the latest update on 9th nov(NET 7 SDK). Issue seems resolved with latest update.
There is a more elegant solution to this problem. You need to upgrade Xamarin.iOS manually. The releases are on GitHub 16.0.0.72 did the trick for me.
I am totally new to Apache Cordova tools with VS 2015. I just tried to create basic initial project, added nothing more and trying to build it, but it fails everytime.
For the specific error I get, I performed all the steps mentioned at:
Configuring Apache Cordova with VS2015.
I am not able to get rid of this error and run the most basic project.
Here is my sample code: https://1drv.ms/f/s!ApUTYQW5TdbIgzrPGeUkxWVmmy0Z
I ran into this problem and was able to solve it using the solution here: https://stackoverflow.com/a/31688018/4045156
The solution is for a slightly different problem, but in my case it did resolve it. :)
EDIT: here's the solution from that post:
Close all VS instances
cd %appdata%\"..\Local\Microsoft\Phone Tools"
rename CoreCon folder to something else
Launch VS again.
As mentioned in the official link - configure VS tools for Apache Cordova which you are following,
If you see unexpected errors when trying to build the Blank App template after installing Visual Studio Tools for Apache Cordova, you can try clearing your cache and reinstalling the Cordova CLI pre-processor, vs-tac, on your PC.Typically, this is only necessary if you try to build a Cordova app and see the error Cannot find module [modulename].
For other errors, you may have to look at workarounds link.
According to me, clearing cache should resolve the issue or this issue would have got introduced in latest version of Visual Studio once again.
I also suggest you to look at the following SO posts which should help you out in this issue.
VS dont work with TACO
Error with cordova using VS
Hope this helps. Cheers.
Visual Studio 2012 becomes corrupt when I tried to install WiX 3.8. This is what happens...
Following a successful WiX install I try to run VS2012 and get the splash screen followed by this error "Exception has been thrown by the target of an invocation". Clicking on ok simply places me on the desktop. The only solution is to re-install VS2012. I tried un-installing everything and starting over several times but no luck. I cannot find any information on this exact topic anywhere online including WiX forums. Does anyone have ideas on what I should try next?
Rudy
I just had the same problem after installing WiX 3.8. Basically even more problems as Explorer and other system application could not be started anymore.
The root cause was a change in the PATH environment variable which ended up to be more than 2048 chars and therefore the %windir% var was not accessible anymore.
Try to remove some unnecessary paths in PATH environment variable as described here:
https://superuser.com/questions/355594/windows-7s-path-and-environment-variables-are-corrupted
At least for me, it worked afterwards again.
Cheers and good luck
I was debugging a project when my computer crashed with a blue screen. After the crash I had to recover my files from a backup. My computer was restored to its original settings. Then I started to get the following errors when compiling
NuGet package restore started.
All packages are already installed and there is nothing to restore.
NuGet package restore finished.
HRESULT: 0x80070057 (E_INVALIDARG)
So I googled for the error and according to instructions deleted files from Temp and ASPWEBADMIN folders. This solved the HRESULT error and my project is running normally except that when I compile and debug any project I still get the NUGET package restore. I googled for solution and landed on this Link. But I am not sure how to use this link. I want to know
1) Is this Build Output a problem? (If it aint broke dont fix it)
2) If it is a problem do u know any solution.
Solved it by going to Tools and updating NUGET PACKAGES also performed a Visual Studio manual Update.
After installing VS2012 CTP1, the C# interactive throws an error like below:
Value cannot be null.
Parameter name pSrcNativeVariant
I tried uninstall and reinstall Roslyn CTP but with no success. Any idea?
It seems that I have to answer my own question, once again:). I today found out that actually it's that Mono for Android plugin for VS2012 is the culprit. After uninstalling it, Roslyn is back to normal.