Can't open Storyboard after migrating from Xamarin.iOS to .NET for iOS

Marcus Nerger 0 Reputation points
2024-09-19T12:45:01.2133333+00:00

I recently migrated my Xamarin.iOS project to .NET for iOS. Everything went fine so far. Now I'm realizing that I'm not able to work with storyboards anymore. Before the migration I was working with Visual Studio for Mac. To modify storyboards I could just double click the file in VS4M and the storyboard opened up in Xcode with the corresponding temporary project (.h and .m files). After the migration to .NET for iOS I had to switch to the regular Visual Studio for Windows 'cause .NET for iOS is not supported on VS4M. Now when I try to open the storyboard in Xcode from VS (with my paired Mac) - Xcode opens up and I can see the storyboard but the corresponding .h and .m files are not created. So there is now way to modify or create IB outlets.

I tried to create a new plain project but even there it's not working. Xcode opens up but the storyboard is not connected - so no .h and .m files. I still can open these .NET for iOS projects in VS4M and tried to open the storyboard from there - but also no luck. When I reset my code to the point before I migrated the project everything works as expected again. Any ideas on how to solve this issue?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,513 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 65,316 Reputation points
    2024-09-19T16:52:38.39+00:00

    follow this thread:

    https://github.com/microsoft/vscode-dotnettools/issues/571

    note: I switched to Swift/SwiftUI so this is no longer an issue for me.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.