-
Notifications
You must be signed in to change notification settings - Fork 515
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
[net6] Infer Xcode without VSMac being installed #11172
Comments
A tricky part is that dotnet msbuild files are re-using / sharing code with legacy ones. We do not want (and must take care) to change the existing behaviour. Also We should be using That override also means VSfM could use its Xcode location to set that variable - and nothing more should be needed. For legacy: msbuild needs to check For dotnet: use [1] there are still (even if many were fixed) msbuild tasks that call tools directly with their own logic. [2] some tools (like |
One point to have in mind here is that to change |
Just for reference, this is how we find Xcode:
This happens in this file: https://github.com/xamarin/Xamarin.MacDev/blob/14d53612d4624459a7ae617141c45e940ada6df5/Xamarin.MacDev/AppleSdkSettings.cs |
One idea for improving this is to deprecate |
When/how does ~/Library/Preferences/Xamarin/Settings.plist get created? just in VSM when you set the path? |
Correct, VSM creates this file (maybe VS Windows too, not entirely sure about that). |
* Enable nullability and fix the resulting issues. * Convert to XamarinTask (instead of XaxmarinToolTask): this allows us to run multiple 'scntool' invocations in parallel. * Use 'xcrun' to call 'scntool' instead of computing the path [1]. * Fix bug in the Cancel method: it shouldn't call base.Execute. * Change the targets logic to match the pattern of other resource-related targets. * This makes it easier to understand the code, since understanding one resource-related target works for the other ones too. * Not using the CollectBundleResources task means computing LogicalName in the ScnTool task directly. [1]: #11172 (comment)
VS Windows runs This means we might consider removing support for this file altogether, and just honor |
Originally posted in dotnet/maui-samples#126
I have multiple Xcode versions installed:
dotnet build HelloiOS
producesbecause in VS for Mac I had the Apple SDK setting pointing to
/Applications/Xcode_12.3.app
(which I deleted).the CLI builds should use the result of
xcode-select -p
for the SDK, not the VS for Mac setting.The text was updated successfully, but these errors were encountered: