Xcode: Command LinkStoryboards failed with a nonzero exit code
Asked Answered
S

6

10

There is another question about generic command failures in Xcode, but I want to specifically ask about the "LinkStoryboards" command. This build error occurred after deleting a storyboard from my project and no amount of cleaning or restarting Xcode would help.

Septuplicate answered 1/3, 2019 at 5:47 Comment(0)
S
9

A LinkStoryboards failure means that the compiler could not find a storyboard used in a Storyboard Reference.

To fix my particular issue, I had to locate any Storyboard References to my deleted storyboard and delete those references.

Septuplicate answered 1/3, 2019 at 5:50 Comment(1)
To find storyboard references, you can look for something similar in the error log: Did not find view controller with identifier "SomeVC" in Main.storyboard, referenced from SomeStoryboard.storyboardRhodarhodamine
T
17

In your second Storyboard set your initial view

enter image description here

Teetotaler answered 9/5, 2020 at 21:20 Comment(0)
I
11

In my case, I have missed to add an entry point in my Storyboard.

Imponderable answered 22/11, 2019 at 14:49 Comment(0)
S
9

A LinkStoryboards failure means that the compiler could not find a storyboard used in a Storyboard Reference.

To fix my particular issue, I had to locate any Storyboard References to my deleted storyboard and delete those references.

Septuplicate answered 1/3, 2019 at 5:50 Comment(1)
To find storyboard references, you can look for something similar in the error log: Did not find view controller with identifier "SomeVC" in Main.storyboard, referenced from SomeStoryboard.storyboardRhodarhodamine
J
1

When I looked under the show a report navigator menu, I realized that I had written the storyboardId wrong, when I corrected the file I saw there, the problem was solved for me.

Jamey answered 22/6, 2023 at 21:22 Comment(0)
S
1

In my case, I was copy-pasting several views and supporting files. When I copy-pasted everything in one folder I received this error.

So I copy-pasted views and supporting files one by one, cleaned the building folder and then everything started to work.

Solar answered 6/1, 2024 at 16:43 Comment(0)
S
0

Check Your Storyboard, Set initial view Controller.

Storyboard Issue fix by set initial view controller

Shalandashale answered 26/8, 2024 at 12:20 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.