question

SethIsaacks-4659 avatar image
0 Votes"
SethIsaacks-4659 asked lazarokcf commented

How to open a storyboard in IOS Visual Studio and XCode 13

I am trying to create a new story board on IOS MAC. I am running the latest IOS Visual Studio for MAC and XCode 13
https://docs.microsoft.com/en-us/xamarin/ios/app-fundamentals/images-icons/launch-screens?tabs=macos
However when I double click on the storyboard I get an error from visual studio starting that it cannot communicate with xcode
Then the rainbow death spinner pops up and I cant do anything but power off the MACbook.
Does anyone know what is going on????

dotnet-ios
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Make sure your Xcode is opened , then you could try to right click your .storyboard file, click Open With ->Xcode Interface Builder. In addition, would you mind sharing detail error message?

0 Votes 0 ·

@WenyanZhang-MSFT I guess I was not clear in my issue, I did EXACTLY what you stated to do and I get the error visual studio cannot communicate with XCode

I have the latest Xamarin IOS Visual Studio on the MAC and XCode 13 on the MAC

When you click Open With -> Xcode Interface Builder then I get the error that visual sutdio cannot communicate with XCode make sure you close Xcode and save all

This is the warning I am getting: Visual Studio could not communicate with XCode. If XCode is still running, please ensure that all changes have been saved and Xcode has been exited before continuing, otherwise any new changes may be lost. When you click OK you get the rainbow spinner of death and you have to force quite XCode.

Visual Studio 8.10.11
XCode 13
macOS Big Sur Version 11.6


0 Votes 0 ·

I have not heard from you for a couple of days. Please let me know if there is anything that I can help here.

0 Votes 0 ·
WenyanZhang-MSFT avatar image
0 Votes"
WenyanZhang-MSFT answered WenyanZhang-MSFT edited

Hello,
Welcome to our Microsoft Q&A platform!

According to the prompt,try to force quite XCode (Click the Apple menu and choose Force Quit or press Command-Option-Escape)

Then, you could try to create a .storyboard file not named "LaunchScreen" to check if the issue still exist, refer to the following steps
Right click the iOS project -> Add -> New File->iOS(Storyboard)-> Name EmptyStoryboard(or other name)

Then you could try to open this new .storyboard file.
I find a similar thread, it may caused by the XML format. You could also try to create a new project and check if this issue exists in all new projects.

Best Regards,
Wenyan Zhang


If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

IsaacErazo-3882 avatar image
0 Votes"
IsaacErazo-3882 answered lazarokcf commented

I am having the same issue trying to open the storyboard from vs for Mac with Xcode. Well I created a blank storyboard to see if Xcode would start and it did. Then, I compared both story files and found that the toolsVersion on both files were different (toolsVersion="17150"). I changed the vs one with the Xcode version saved and it worked. now we know...

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Greetings to the community. The solution proposed by @IsaacErazo-3882 worked for me.

0 Votes 0 ·