-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
iOS Notification Service Extension Deploy Fails #22586
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Open similar issues:
Closed similar issues:
|
Can repro this issue at iOS platform on the latest 17.11 Preview 1(8.0.40/8.0.21). |
Thanks for the issue report @borigas! This issue appears to be a problem with Visual Studio, so we ask that you use the VS feedback tool to report the issue. That way it will get to the routed to the team that owns this experience in VS. If you encounter a problem with Visual Studio, we want to know about it so that we can diagnose and fix it. By using the Report a Problem tool, you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks.
|
Thanks for the issue report @borigas! This issue appears to be a problem with Visual Studio (Code), so we ask that you use the VS feedback tool to report the issue. That way it will get to the routed to the team that owns this experience in VS (Code). If you encounter a problem with Visual Studio or the .NET MAUI VS Code Extension, we want to know about it so that we can diagnose and fix it. By using the Report a Problem tool, you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks.
|
I'm not convinced this is a problem with VS or VS Code. I can't deploy an iOS extension using VS, VS Code, |
This is more likely an issue with the iOS SDK or the mlaunch tooling. Probably not directly IDE issues, but the people that fix deployment issues are the best. And since this is also VS and Pair to Mac, I am thinking this is best on that side. I'm closing this one as you opened a new one in the developer community where IDE people live. |
It's been 3 weeks since I posted using the VS feedback tool but haven't seen any evidence that a human even read it. Are you sure the IDE folks are still there? I also want to clarify from your previous post that this is not VS or Pair to Mac specific. It does fail from VS with Pair to Mac, but also fails from VS Code on a Mac, from |
We are also having this issue. |
My workaround so far is to make my reference to the iOS extension project have a condition so I can skip it when deploying from VS. At least that allows the rest of my app to deploy. Then my build server sets a property to enable the extension project so it gets packaged in the IPA. It makes for a pretty terrible dev loop, but at least it's possible to deploy the rest of my app again. |
I created xamarin/xamarin-macios#20918 to see if they're able to offer insight. Visual Studio Developer Community doesn't seem to have anyone reading issues. |
Description
I'm trying to add an iOS Notification Service Extension to my app, but I can't get it to deploy from VS. I am connected to a Mac and have a device selected.
It looks like docs on how to use this haven't been done yet (dotnet/docs-maui#1434). Instead, I referenced and tested a handful of 3rd party examples, but I get the same behavior. Examples referenced:
Other things I've tried include:
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/17.2.8053/tools/bin/mlaunch --installdev ~/Library/Caches/Xamarin/mtbs/builds/MauiDebug/a30afb1d33bf5430897cbab9d42475927750458aadbcba47ce68f91a270a4fc6/bin/Release/net8.0-ios/iossimulator-arm64/MauiDebug.app --devname ocv6splus --wait-for-exit:false
error MT1006: Could not install the application '~/Library/Caches/Xamarin/mtbs/builds/MauiDebug/a30afb1d33bf5430897cbab9d42475927750458aadbcba47ce68f91a270a4fc6/bin/Release/net8.0-ios/iossimulator-arm64/MauiDebug.app' on the device 'ocv6splus': AMDeviceSecureInstallApplicationBundle returned: 0xe8008014
dotnet build
:dotnet build -t:Run -f net8.0-ios -p:RuntimeIdentifier=ios-arm64 -p:_DeviceName="ocv6splus"
Steps to Reproduce
Try to run/deploy/debug from https://github.com/borigas/NotificationServiceExtensionRepro or any of the other examples mentioned above.
Or create a fresh Maui app with an iOS extension. To modify the Xamarin iOS extension to .NET 8, use this csproj:
Link to public reproduction project repository
https://github.com/borigas/NotificationServiceExtensionRepro
Version with bug
8.0.21 SR4.1
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI, Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
No response
Did you find any workaround?
No, I have not been able to work around this problem. This is a blocker for me.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: