Ios 找不到名为的情节提要
我尝试在iOS模拟器中启动应用程序时遇到问题, 我需要有人来解决这个请,我已经尝试了一切,但我仍然有同样的问题 我得到了这个错误:Ios 找不到名为的情节提要,ios,storyboard,Ios,Storyboard,我尝试在iOS模拟器中启动应用程序时遇到问题, 我需要有人来解决这个请,我已经尝试了一切,但我仍然有同样的问题 我得到了这个错误: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'MainStoryboard_iPhone.storyboard' in bundle NSBundle </Users/iYou
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'MainStoryboard_iPhone.storyboard' in bundle NSBundle </Users/iYousef911/Library/Application Support/iPhone Simulator/7.1/Applications/F00ED8C4-145B-43C0-ACDA-C41EDC01D824/Azkar.app> (loaded)'
*** First throw call stack:
(
0 CoreFoundation 0x029c21e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x027418e5 objc_exception_throw + 44
2 UIKit 0x01965400 -[UIStoryboard name] + 0
3 UIKit 0x01401692 -[UIApplication _loadMainStoryboardFileNamed:bundle:] + 53
4 UIKit 0x01401949 -[UIApplication _loadMainInterfaceFile] + 245
5 UIKit 0x0140054e -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 543
6 UIKit 0x01414f92 -[UIApplication handleEvent:withNewEvent:] + 3517
7 UIKit 0x01415555 -[UIApplication sendEvent:] + 85
8 UIKit 0x01402250 _UIApplicationHandleEvent + 683
9 GraphicsServices 0x03d21f02 _PurpleEventCallback + 776
10 GraphicsServices 0x03d21a0d PurpleEventCallback + 46
11 CoreFoundation 0x0293dca5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
12 CoreFoundation 0x0293d9db __CFRunLoopDoSource1 + 523
13 CoreFoundation 0x0296868c __CFRunLoopRun + 2156
14 CoreFoundation 0x029679d3 CFRunLoopRunSpecific + 467
15 CoreFoundation 0x029677eb CFRunLoopRunInMode + 123
16 UIKit 0x013ffd9c -[UIApplication _run] + 840
17 UIKit 0x01401f9b UIApplicationMain + 1225
18 Azkar 0x00002a4d main + 141
19 libdyld.dylib 0x0325f701 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:“在捆绑包NSBundle(已加载)中找不到名为“MainstryBoard_iPhone.storyboard”的情节提要”
***第一次抛出调用堆栈:
(
0 CoreFoundation 0x029c21e4例外预处理+180
1 libobjc.A.dylib 0x027418e5 objc_异常_抛出+44
2 UIKit 0x01965400-[UIStoryboard名称]+0
3 UIKit 0x01401692-[UIApplication\u LoadMainstryBoardFileName:bundle:][53
4 UIKit 0x01401949-[UIApplication\u LoadMain InterfaceFile]+245
5 UIKit 0x0140054e-[UIApplication\u运行时URL:payload:launchOrientation:statusBarStyle:statusBarHidden:+543
6 UIKit 0x01414f92-[UIApplication handleEvent:withNewEvent:][3517
7 UIKit 0x0141555-[UIApplication sendEvent:+85
8 UIKit 0x01402250 _UIApplicationHandleEvent+683
9图形服务0x03d21f02 _PurpleEventCallback+776
10个图形服务0x03d21a0d PurpleEventCallback+46
11 CoreFoundation 0x0293dca5\uuuu CFRUNLOOP\u正在调用\uu OUT\u以执行\uu函数\uuuu+53
12 CoreFoundation 0x0293d9db\uuu CFRunLoopDoSource1+523
13 CoreFoundation 0x0296868c\uuu CFRunLoopRun+2156
14 CoreFoundation 0x029679d3 CFRunLoopRunSpecific+467
15 CoreFoundation 0x029677eb CFRUNLOOPSRUNINMODE+123
16 UIKit 0x013ffd9c-[UIU应用程序运行]+840
17 UIKit 0x01401f9b UIApplicationMain+1225
18 Azkar 0x00002a4d干管+141
19 libdyld.dylib 0x0325f701开始+1
)
libc++abi.dylib:以NSException类型的未捕获异常终止
(lldb)
这可能是由于不同的原因造成的。检查以下各项:
我知道这是一个老帖子,但只是为了防止有人在这里徘徊与类似的问题。我的问题是我们有十几个目标,而我在创建SB时并没有选择它们
在左侧列的“文件检查器”下,确保检查文件应属于的成员身份 在我的例子中,我意外地在info.plist中键入了故事板的名称……请检查UISCenestryboardFile和UIMainstryboardFile属性的值是否正确
<key>UISceneStoryboardFile</key>
<string>[MY_PROJECT_NAME]</string>
UISceneStoryboardFile
[我的项目名称]
及
UIMainStoryboardFile
[我的项目名称]
缓存把所有东西都搞乱了…在终端上运行此命令,确保里面的所有东西都被清理干净
sudo rm -rf $HOME/Library/Developer/Xcode/DerivedData/
我有这个问题,但我已经解决了。故事板名称有问题。我在Main.storyboard中有我的所有视图控制器,因此名称为“Main”,然后写故事板标识符。你检查了捆绑包中的故事板文件吗?@iphone dev是的,但我仍然有相同的文件problem@YousefAbuSallamah在硬清理后尝试从模拟器(或iPhone)构建并删除应用程序。要清理,请选择alt+Product->clean Build文件夹。请检查以下答案#import#import“AppDelegate.h”int main(int argc,char*argv[]){@autoreleasepool{return UIApplicationMain(argc,argv,nil,NSStringFromClass([AppDelegate class]);}我复制了一个故事板,由于某种原因它没有自动添加到脚本中“复制捆绑资源”。感谢提示重命名情节提要是唯一对我有效的方法。这似乎“欺骗”了Xcode,使其认为路径已更新,从而使其意识到文件一直在那里。:)
sudo rm -rf $HOME/Library/Developer/Xcode/DerivedData/