2013-05-08 47 views
1

我想使用模拟器来构建这个应用程序的学校,但每当我试图建立它,我得到这个错误:主要故事板不能打开

The document "MainStoryboard_iPhone.storyboard" could not be opened. Line 134: XML  
declaration allowed only at the start of the document 

我去到发布导航但那是它显示。代码中没有显示错误。

这里是哪里线134是在XML源代码的部分:

</view> 
        <tabBarItem key="tabBarItem" title="Item 1" id="JGk-R6-tUe"/> //This  
is line 134 
       </viewController> 
       <placeholder placeholderIdentifier="IBFirstResponder" id="2cL-Ur-7Xa" 
userLabel="First Responder" sceneMemberID="firstResponder"/> 
+0

你可以在Xcode中打开故事板吗?你有合并冲突在这个故事板? – JoePasq 2013-05-08 19:23:58

+0

我只能打开Ipad story = board,而不是Iphone one。 – user2355857 2013-05-08 19:25:14

回答

1

可以编辑的故事板文件,使Xcode中重新保存,或在文本编辑器打开它,看看线134需求被编辑或删除。这听起来像是有另一个标签说这是一个XML文件在线134.

+0

谢谢。事实证明,在第134行,整个代码块都被复制,所以删除它的工作。 – user2355857 2013-05-08 20:03:16

2

您可以右键单击故事板文件并将其视为XML源代码。

Open as Source Code

从那里,你可以去得罪线,读取XML并进行编辑,在你的最佳判断将修复它。