-
Notifications
You must be signed in to change notification settings - Fork 520
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
Application with multiple architectures (ARMv7 and ARM64) successfully builds by using real Xcode, but it is failed by using symlink to real Xcode on macOS Catalina. #8005
Comments
What's the output of running the following two commands in a terminal? xcode-select -p
cat ~/Library/Preferences/Xamarin/Settings.plist |
Hey @rolfbjarne ,
I use Azure Devops Xamarin.iOS task for building, probably, it cause |
Can you get a diagnostic build log (pass |
Unfortunately that didn't help much :/
|
|
Nothing obvious reading the logs :( Maybe we (mtouch) depends on some stuff that VSfM would provide ? (environment variables) Unlikely since we build from command-line all the time. Maybe some other config on the bots are conflicting with our logic ? again I don't see how the workaround helps |
The fact that running lipo once before the build works around the problem makes me think this is something in macOS that's not quite working as expected. @vsafonkin would you be able to install custom debugging versions of Xamarin.iOS to figure this out? |
@rolfbjarne , yes, sure. |
@vsafonkin can you try this package to see if it still fails: xamarin.ios-13.19.0.136.pkg? |
Hey @rolfbjarne , sorry for my delay, I've tried this package and build was successful. |
That's great news @vsafonkin! I'll clean up that branch and try to get the fix in. |
…et#4634 and fixes dotnet#8005. (dotnet#8121) Partial fix for dotnet#4634. Fixes dotnet#8005.
…et#4634 and fixes dotnet#8005. (dotnet#8121) Partial fix for dotnet#4634. Fixes dotnet#8005.
Sorry if this is actually off topic, but I've just run into this same error on Azure Devops hosted mac agents. Targeting Xamarin SDK 6_6_0. Is this actually an issue in Xamarin SDK that needs to eventually make its way into the Azure VMs? Azure seems to be on 13.10.0.21 https://github.com/microsoft/azure-pipelines-image-generation/blob/master/images/macos/macos-10.15-Readme.md Should I roll back to 6_4_0 or something in Azure script to work around for now, or is this similar but actually unrelated? (I assume Azure does a Symlink under the hood...) EDIT - Tried targeting 6_4_0 but got the same issue with failed to locate 'lipo' EDIT - Setup a task in my job on azure to use boots to download+install the package linked above so it builds with 'Xamarin.iOS 13.19.0.136 (lipo-where-are-you)' and the build succeeded 👍 |
@rolfbjarne , I have the same issue and waiting for the fix to come through. If I understand correctly, the fix is in Xamarin.ios for the azure hosted macs. I am using macOS-10.15 hosted mac for the Azure dev ops pipeline. I still see the same issue. Am I supposed to use the latest pipeline task or something? |
@chandu612 the current plan is to release this fix as a stable release early next week, after that you might have to wait for the hosted macs to be updated, which might take a while longer. Alternatively you can manually install a package with the fix as the previous commenter did. |
@chandu612 If you don't have the ability to add boots to your pipeline, use this task (I'm executing it as the first task of the build job)
Only adding around 1 minute to the build. |
@rolfbjarne and @IainS1986 |
We just tried and it worked too. |
You need to contact your hosting provider and ask them, I believe the bits in question are already in our stable channel. Until then, you can install a package manually, as noted via boots above. |
Steps to Reproduce
ln -s "path/to/xcode" "/Applications/Xcode.app"
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer"
Expected Behavior
Successfully build.
Actual Behavior
Build is failed:
The command line tools is installed:
sudo xcode-select --install
Environment
Workarounds:
export SDKROOT=macosx
or
/usr/bin/lipo 2>null>
The text was updated successfully, but these errors were encountered: