简体   繁体   English

iOS:应用程序卡在启动画面上

[英]iOS : App get stuck on Splash screen

I have tried everything regarding app clean up, project clean xcode quit and all related stuff but still same issue.我已经尝试了所有关于应用程序清理、项目清理 xcode 退出和所有相关的东西,但仍然是同样的问题。

I have check everything window also have rootViewController and everything is assigned.我检查了所有内容 window 也有 rootViewController 并且所有内容都已分配。

After updating to xcode 12, I faced this issue.更新到 xcode 12 后,我遇到了这个问题。 xcode hangs while attaching debugger to ios process.将调试器附加到 ios 进程时,xcode 挂起。 Deleting the contents of ~/Library/Developer/Xcode/iOS DeviceSupport worked for me.删除~/Library/Developer/Xcode/iOS DeviceSupport的内容对我有用。 ( https://developer.apple.com/forums/thread/123068?answerId=420683022#420683022 ) https://developer.apple.com/forums/thread/123068?answerId=420683022#420683022

Check your root view controller design in storyboard, I also got this issue, In my loginview controller by mistake I have pests/ duplicate UIView into stack view with constraints.在情节提要中检查您的根视图控制器设计,我也遇到了这个问题,在我的登录视图控制器中错误地我有害虫/将 UIView 复制到带有约束的堆栈视图中。 So removed duplicate UIView.所以删除了重复的 UIView。

Try to restart your Mac!尝试重新启动您的 Mac! 😉 😉

As Uma Madhavi said , your Mac may have installed some automatic updates. 正如 Uma Madhavi 所说,您的 Mac 可能已经安装了一些自动更新。 Restarting it fixed the problem for me重新启动它为我解决了问题

In Swift 4.2, xCode 11.5 and simulator version 13.5在 Swift 4.2、xCode 11.5 和模拟器版本 13.5

Restart or Erase All Content and Settings on the simulator you are using, then try running again.重新启动或擦除您正在使用的模拟器上的所有内容和设置,然后再次尝试运行。 This works for me这对我有用

Hope you can help :)希望你能帮忙:)

Old topic but I just got it and have been searching for two days trying everything without success so far.老话题,但我刚刚得到它,并且已经搜索了两天,到目前为止尝试一切都没有成功。

What finally worked for me:最终对我有用的是:

  • close Xcode关闭 Xcode
  • going into the finder进入取景器
  • go to the list of applications转到应用程序列表
  • select XCode and do Cmd + i选择 XCode 并执行 Cmd + i
  • uncheck the box "Open with rosetta".取消选中“使用 Rosetta 打开”框。
  • open Xcode and do a clean (cmd + shift + k)打开 Xcode 并进行清理(cmd + shift + k)

And finally the application has passed the stage of the infinite launch screen最终应用程序通过了无限启动屏幕的阶段

I removed Device Support folder and re-open Xcode.我删除了设备支持文件夹并重新打开 Xcode。

rm -r ~/Library/Developer/Xcode/iOS\ DeviceSupport

In my case, because Reveal load breakpoint, following Reveal document steps, it works for me.就我而言,因为 Reveal 加载断点,遵循 Reveal 文档步骤,它对我有用。 ps: my Reveal version still 26, not upgrade to 38 ps:我的Reveal版本还是26,没有升级到38

Reveal document: https://support.revealapp.com/hc/en-us/articles/4403215920793-My-app-is-hanging-on-launch-under-Xcode-13-and-iOS-tvOS-15揭示文件: https://support.revealapp.com/hc/en-us/articles/4403215920793-My-app-is-hanging-on-launch-under-Xcode-13-and-iOS-tvOS-15

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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