SeanR
SeanR

Reputation: 7979

Xcode: Command LinkStoryboards failed with a nonzero exit code

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.

Upvotes: 11

Views: 14863

Answers (6)

Ashu
Ashu

Reputation: 3523

Check Your Storyboard, Set initial view Controller.

Storyboard Issue fix by set initial view controller

Upvotes: 0

Mr.Schtelbe
Mr.Schtelbe

Reputation: 145

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.

Upvotes: 1

Benoit Canonne
Benoit Canonne

Reputation: 455

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

Upvotes: 11

Muhammed Ali SOYLU
Muhammed Ali SOYLU

Reputation: 33

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.

Upvotes: 1

In your second Storyboard set your initial view

enter image description here

Upvotes: 17

SeanR
SeanR

Reputation: 7979

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.

Upvotes: 9

Related Questions