Skip to content
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

[BUG] Deployed app is corrupted when iOS Action Extension projects are included as a project reference in the .CSPROJ file #852

Closed
austinbaccus opened this issue Jan 12, 2024 · 7 comments
Assignees
Labels
area-maui bug Something isn't working duplicate This issue or pull request already exists enhancement New feature or request mac MacOS triaged The issue has been triaged vs-sync Add this label to synchronize the issue to AzDo vs-syncd Linked to AzDO

Comments

@austinbaccus
Copy link

austinbaccus commented Jan 12, 2024

Describe the Issue

We have an iOS app for iPhone. We also have an iOS Action Extension project that goes along with it. The app is build using MAUI for VS Code (Mac).

When I try to build the main iOS app and deploy it to my iPhone for debugging, it builds and deploys to my iPhone. However, it seems like the app is corrupted and cannot be launched:

  1. The app name is not {app name}. Instead, it's a random string of letters (usually something like "bjhdfjvhdsjhfvhjgdf").
  2. The app icon is not our app icon. Instead, it's the default iOS app icon.
  3. The app cannot actually be launched ore debugged. An error is thrown when you try to launch the app on the phone.

The fix is to remove the Action Extension project reference within the main app's .CSPROJ file.

Steps To Reproduce

  1. Create iOS mobile project
  2. Create iOS Action Extension project
  3. Reference the Action Extension project within the mobile project's .CSPROJ file
  4. Deploy to device
  5. Observe weird app properties and inability to launch on device

Expected Behavior

Main app is deployed to device with the correct name, the correct icon, and is launchable even if the Action Extension project is referenced.

Environment Information

  • OS: macOS Sonoma 14.2
  • Chip: Apple M1
  • Xcode: 15.2
  • C# Dev Kit: 1.2.7
  • VS Code: 1.85.1
    | VS Bug 1999747
@austinbaccus austinbaccus added the bug Something isn't working label Jan 12, 2024
@microsoft-issue-labeler microsoft-issue-labeler bot added the area-project Project load, Solution Explorer label Jan 12, 2024
@webreidi webreidi added the mac MacOS label Jan 12, 2024
@tmeschter tmeschter added the needs-more-info Needing more information, waiting on OP label Jan 18, 2024
@tmeschter
Copy link
Member

@austinbaccus Is your iPhone app built using MAUI?

@austinbaccus
Copy link
Author

@tmeschter Yes.

@tmeschter tmeschter added area-maui and removed area-project Project load, Solution Explorer needs-more-info Needing more information, waiting on OP labels Jan 25, 2024
@tmeschter
Copy link
Member

Moving to "area-maui" as this seems specific to MAUI app deployment.

@mauroa mauroa added the vs-sync Add this label to synchronize the issue to AzDo label Mar 19, 2024
@AllenD-MSFT AllenD-MSFT added the vs-syncd Linked to AzDO label Mar 19, 2024
@mauroa mauroa self-assigned this Mar 19, 2024
@mauroa mauroa added the triaged The issue has been triaged label Mar 19, 2024
Copy link

github-actions bot commented Apr 3, 2024

This issue has been marked as stale after 14 days of inactivity. @[ @mauroa @], could you please take a look?

@mauroa mauroa added the needs-more-info Needing more information, waiting on OP label Apr 9, 2024
@mauroa
Copy link
Member

mauroa commented Apr 9, 2024

Hi @austinbaccus.
There's no default template for .NET iOS App Extensions, so I assume you adapted your .csproj to be SDK Style and also to target net8-ios, is that assumption, correct?

That said, are you getting a successful build if you build from command line? (dotnet build). If you can try that and share a binlog of the resulting build (passing -bl the command line build), I could see what is going on.

Finally, if by any chance you can share you solution, that would be helpful as well.
Thanks

@mauroa mauroa removed the needs-more-info Needing more information, waiting on OP label Apr 12, 2024
@mauroa
Copy link
Member

mauroa commented Apr 12, 2024

Just as an update after some investigation, iOS Extensions for VS Code is not fully supported, so we need to convert this into a feature request. We'll work on it and provide updates when the support is ready. Thanks for your help and patience.

@mauroa mauroa added enhancement New feature or request duplicate This issue or pull request already exists labels Apr 12, 2024
@mauroa
Copy link
Member

mauroa commented Apr 12, 2024

Closing as a duplicate of this other one: #548

You can follow up status and progress directly in that ticket

@mauroa mauroa closed this as completed Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-maui bug Something isn't working duplicate This issue or pull request already exists enhancement New feature or request mac MacOS triaged The issue has been triaged vs-sync Add this label to synchronize the issue to AzDo vs-syncd Linked to AzDO
Projects
None yet
Development

No branches or pull requests

5 participants