-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ResolveNativeReferences FAILED when building iOS #130
Comments
Just checking the log and seems the error is
Not sure why the file is not downloading to your repo. |
I also received this error, are there any known work arounds at the moment? |
If you are using Windows to connect mac, you may try #124 to see if it can fix the issue. |
I've already tried that as I had the same issue. I've put my packages in a folder called 'N' at the start of my drive so I can't shorten the directory url any further. |
You could try to extract the zip the to folder path mentioned and see if it works or not. |
That didn't work. Tried it with the nuget package installed as well. |
@JimmyPun610 I already tried everything you wrote, but nothing helped me. |
@YeldarOralov I am having exactly the same issue - did you resolve it? |
Was anyone able to solve this issue? |
I can't add anything other than I have a Xamarin project linked to a Mac and running the barcode scanner perfectly. I have the translated Maui app on the same Windows machine linked to the same Mac and it is failing with the ResolveNativeReferences issue. It compiles, runs and packages fine on Android though. Also, on Visual Studio for Mac on a Mac, it does compile. It shows a black screen on the simulator without running but I think that is unrelated to this. |
Microsoft has resolved this issue with the latest version (17.4.0). Get the latest for both Windows and Mac. |
It still gets the ResolveNativeReferences error upon compiling while pointed toward an iOS simulator even with 17.4 |
This issues still occurs with 17.4.0. Reading a diagnostic dump, the offending issues seems to be: 1> Tool /usr/bin/unzip execution started with arguments: -u -o -d "obj\Debug\net7.0-ios\iossimulator-x64\MLKit.Core.resources.zip" "C:\Users\xx\.nuget\packages\xamarin.mlkit.ios.core.jimmypun610\5.0.0.1\lib\net6.0-ios15.4\MLKit.Core.resources.zip" So, something with missing file MLKit.Core.resources.zip missing from xamarin.mlkit.ios.core.jimmypun610??? |
You're likely experiencing this issue - which happens for any nuget package that contains an iOS native resources zip file, but only when using pair-to-mac on a Windows machine. |
It seems to me this should be tagged as a bug rather than a question. |
I'm encountering this issue with VS 17.4.3 too when compiling iOS using a remote mac. The issue only happen for MAUI, not Xamarin. |
I think mattjohnsonpint's reply from November 30 sums it up but it's doesn't help me solve anything. I ended up switching to the Zxing.Net.Maui library. However, I'm finding that library is not working for me either. At least it compiles but the hot reloader stops and it is stuck in a loop deploying. That is much better than the JimmyPun610 Maui library which can't compile at all neither in my project or this Github sample project. I have tried to compile from a PC linked to a Mac and using VS for Mac on a Mac which doesn't work though I admit Apple is an unknown and alien environment for me. It's a shame as the Xamarin version was absolutely perfect. We have stopped development on our device app. Xamarin isn't keeping up and Maui is not ready to handle a robust app that can use a device's camera to take pictures, read bar codes, etc. I should qualify that and say, Maui is pretty good at doing many things across multiple Android devices (our app works perfectly on Android) but not iOS. I can't fault Jimmy Pun but I sure do fault the Maui team for giving developers a tool that is supposed to be a develop in one place, deploy across multiple platform tool yet we have to dance around with a jury rigged setup of a prelease of Visual Studio, multiple XCode versions, SDK's versions, .net versions, etc and, if they do not work in concert with each other, a project that compiled and deployed yesterday may not do so today. |
Sorry for the late reply, just an update that below thread may help with this issue. Unfortunately I do not have a Windows + Mac to test it with Pair to Mac. |
Hello,
When debug (pair to Mac) get error
|
hi, is there any workaround for this? i have tried all the solutions above and still no luck... |
I got also that error, is there a solution for this problem? Severity Code Description Project File Line Suppression State |
Hello, I am trying to use the scanner on MAUI
I used your sources and copied them in full to our local nuget.
Android build and works succesfully. But on iOS there is an error.
I tried to build your sample for maui, but the same error occurs.
build_log.txt
May I know which versions of iOS SDK you are using?
The text was updated successfully, but these errors were encountered: