gpt4 book ai didi

ios - Xcode 7 Beta 4 - 每次运行该项目时都找不到 Storyboard

转载 作者:可可西里 更新时间:2023-11-01 02:59:36 27 4
gpt4 key购买 nike

这可能是 Xcode 中的 beta-prerelease-bug,但其他人是否遇到过同样的事情?

我清理项目 - 运行它 - 一切正常。

然后我停止项目 - 再次运行它 - 只是一个黑屏和这个日志:

2015-08-03 23:22:30.743 XXXXXXX[12221:2892479] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'MainStoryboard' in bundle NSBundle </private/var/mobile/Containers/Bundle/Application/920917A0-44DF-4B5F-91A8-BB669DDF5F0D/XXXXXXXX.app> (loaded)'
*** First throw call stack:
(0x1822542d8 0x193f200e4 0x18728e810 0x186f59edc 0x186f59074 0x186f5770c 0x18aa893c8 0x18220c27c 0x18220b384 0x1822099a8 0x1821352d4 0x186d383d0 0x186d32f40 0x1001ac504 0x1945caa08)
libc++abi.dylib: terminating with uncaught exception of type NSException

然后我可以清理它并在所有地方做同样的事情......

是的, Storyboard已正确添加。它也已正确添加到 info.plist 中,我也尝试将其删除并再次添加。结果相同。

更新一

在最新的 Xcode Beta 5 中也发生了同样的事情。

更新二

这是我第二次在模拟器中运行的日志。

2015-08-10 12:09:19.552 XXXXX[32346:418981] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'MainStoryboard' in bundle NSBundle </Users/johndoe/Library/Developer/CoreSimulator/Devices/9685DA45-378D-48AC-BF8C-0DD2EF24C9B3/data/Containers/Bundle/Application/17882AD9-E024-41A1-9E9B-9DC2C2845EA5/XXXXX.app> (loaded)'
*** First throw call stack:
(
0 CoreFoundation 0x00000001116e69b5 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000112927deb objc_exception_throw + 48
2 UIKit 0x000000010f4564f7 -[UIStoryboard name] + 0
3 UIKit 0x000000010ed9b310 -[UIApplication _loadMainStoryboardFileNamed:bundle:] + 58
4 UIKit 0x000000010ed9b664 -[UIApplication _loadMainInterfaceFile] + 260
5 UIKit 0x000000010ed99fc9 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1383
6 UIKit 0x000000010ed97390 -[UIApplication workspaceDidEndTransaction:] + 188
7 FrontBoardServices 0x000000011347b7ac -[FBSSerialQueue _performNext] + 192
8 FrontBoardServices 0x000000011347bb1a -[FBSSerialQueue _performNextFromRunLoopSource] + 45
9 CoreFoundation 0x0000000111612b21 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
10 CoreFoundation 0x0000000111608a4c __CFRunLoopDoSources0 + 556
11 CoreFoundation 0x0000000111607f03 __CFRunLoopRun + 867
12 CoreFoundation 0x0000000111607918 CFRunLoopRunSpecific + 488
13 UIKit 0x000000010ed96d2d -[UIApplication _run] + 402
14 UIKit 0x000000010ed9b99e UIApplicationMain + 171
15 Teazr 0x000000010e78912f main + 111
16 libdyld.dylib 0x0000000112ecc92d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)

会不会是新 SDK 中的某种 Facebook 错误?

最佳答案

将 Xcode 更新到稳定版本。

关于ios - Xcode 7 Beta 4 - 每次运行该项目时都找不到 Storyboard ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31797121/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com