ios - Storyboard无法加载

标签 ios storyboard

我将 Storyboard从一个项目复制到另一个项目,现在我在尝试加载它时遇到错误。

enter image description here

有什么想法吗?我没有错过任何 View Controller 。什么会阻止 Storyboard加载?

我真的希望我不必重建整个东西。这是一个相当大的。

8/20/14 11:03:07.032 AM Xcode[25482]: DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-5069/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/SpecificationTypes/BuiltInSpecifications/Compilers/XCGccMakefileDependencies.m:76 Details: Failed to load dependencies output contents from ``/Users/rsmith/Library/Developer/Xcode/DerivedData/Tatyana-cddwympaoafzixdpzoffsonzpsyb/Build/Intermediates/Tatyana.build/Debug-iphoneos/Tatyana.build/Objects-normal/armv7s/LoginViewController.d''. Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “LoginViewController.d” couldn’t be opened because there is no such file." UserInfo=0x7f92323dd8f0 {NSFilePath=/Users/rsmith/Library/Developer/Xcode/DerivedData/Tatyana-cddwympaoafzixdpzoffsonzpsyb/Build/Intermediates/Tatyana.build/Debug-iphoneos/Tatyana.build/Objects-normal/armv7s/LoginViewController.d, NSUnderlyingError=0x7f923074c2f0 "The operation couldn’t be completed. No such file or directory"}. User info: { NSFilePath = "/Users/rsmith/Library/Developer/Xcode/DerivedData/Tatyana-cddwympaoafzixdpzoffsonzpsyb/Build/Intermediates/Tatyana.build/Debug-iphoneos/Tatyana.build/Objects-normal/armv7s/LoginViewController.d"; NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"The operation couldn\U2019t be completed. No such file or directory\""; }. Function: void XCGccMakefileDependenciesParsePathsFromRuleFile(NSString *__strong, void (^__strong)(NSString *__strong)) Thread: {name = (null), num = 190} Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.

我注释掉了那个 View 的部分,现在我明白了

8/20/14 11:12:27.837 AM Xcode[25482]: Exception raised while unarchiving document objects - *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil

最佳答案

无需复制整个 Storyboard ,您只需在 Storyboard 中单击即可选择所有 View (在原始项目中打开 Storyboard ),按 cmd + c 并使用 cmd + v 粘贴 在新的里面。你的 segues 和所有的都应该被复制

关于ios - Storyboard无法加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25411309/

相关文章:

ios - RXSwift,一个作为变量的结构

ios - 标签栏按钮全灰

ios segue 消除部分 curl - 触摸 curl 以消除时称为什么?

objective-c - 将 UIImage 设置为背景 - 不平铺

iphone - iOS - 在 PDF 上搜索和替换

ios - 输入 NSDate 的格式

swift - 文本字段未显示在 Storyboard中?

iphone - Storyboard 不显示 Xcode iOS 选项卡

ios - Storyboard上的自动排列 View

iphone - 从 UIDatePicker iOS 检索日期和时间