-
Notifications
You must be signed in to change notification settings - Fork 252
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
clang
error compiling for iOS
#2617
Comments
Thanks for raising this @MartinZikmund I notice in you csproj you have <TrimMode Condition="'$(Configuration)' == 'Release'">full</TrimMode> Any chance you can confirm if the issue still occurs in release mode as well? |
@andrueastman Sorry for the delay, had other unrelated iOS build issues. I can confirm that in Release mode the app builds without errors. Still, the Debug mode fails with the error above. Can you please reopen the issue to keep it tracked? |
To confirm here, is there a reason not to enable the trim mode in debug as well?
The alternative would be to use partial trimming and opt in the graph lib. https://learn.microsoft.com/en-us/dotnet/core/deploying/trimming/trimming-options?pivots=dotnet-8-0#trimming-granularity Due to the large surface of API and SDK enabling trimming will give a smaller binary for your scenario focussing on the paths you are calling/using. |
There is no reason in particular, just that by default the iOS app/MAUI app csproj will not have it enabled for Debug, which means when user installs MS Graph library they will need to know to make this additional step. We offer MS Graph as part of our addons in Uno Platform and this would mean we need to provide additional documentation for users, as they will otherwise hit this error and will most likely assume the problem is caused by our framework rather by this. In this manner it would be more user friendly if there was no error out of the box |
Describe the bug
Trying to build an iOS app using Microsoft.Graph library fails with the following:
Expected behavior
Should not error out.
How to reproduce
Can be easily reproduced on a blank iOS app that references and uses Microsoft Graph - see this repro:
iOSTabbedApp3.zip
SDK Version
5.56.0
Latest version known to work for scenario above?
N/A
Known Workarounds
None
Debug output
Click to expand log
```The text was updated successfully, but these errors were encountered: