简体   繁体   中英

Storyboard won't load

I copied a storyboard from one project to another and now I am getting an error when I try to load it.

在此处输入图片说明

Any ideas? I am not missing any view controllers. What would prevent a storyboard from being able to load?

I really hope I don't have to rebuild the whole thing. It's quite a large one.

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.

I commented out the section for that view and I now get this

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

Instead of copying the whole storyboard you could simply select all views (open the storyboard inside the original project) by clicking inside the storyboard, press cmd + c and paste with cmd + v inside the new one. your segues and all should be copied as well

嗯,我最终解决问题的方法是打开情节提要作为源,然后将所有“场景”元素从原始内容复制到空的情节提要中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM