Questions tagged «xcode»

Xcode是Apple的集成开发环境(IDE)。使用注意:此标签仅用于有关Xcode IDE本身的问题,而不用于一般的Mac或iOS编程主题。对于Mac编程问题,请使用[cocoa],对于iOS编程问题,请使用[cocoa-touch]或[iOS]或[Swift]。

1
[iOS 13]:致命异常:NSInvalidArgumentException无法将自身添加为子视图([NSCache init])
我在Stack Overflow上看到过类似的问题,但它们并没有帮助。 我使用Xcode 11和iOS 13 SDK构建了该应用程序。问题是,即使我的应用程序支持iOS 10+,并且只有约50%的iOS 12用户,我都只能在iOS 13+上获得所有这些崩溃。另外,我无法调试或复制它。 从此信息中我推断出该问题必须特定于iOS13。最近有人遇到过同一问题吗?可能的原因,解决方法? 这是Crashlytics的堆栈跟踪: Fatal Exception: NSInvalidArgumentException 0 CoreFoundation 0x1c25e1c30 __exceptionPreprocess 1 libobjc.A.dylib 0x1c22fc0c8 objc_exception_throw 2 CoreFoundation 0x1c24d13ac -[NSCache init] 3 UIKitCore 0x1c6b189a8 -[UIView(Internal) _addSubview:positioned:relativeTo:] 4 UIKitCore 0x1c6078bb4 __53-[_UINavigationParallaxTransition animateTransition:]_block_invoke_2 5 UIKitCore 0x1c6b11f60 +[UIView(Animation) performWithoutAnimation:] 6 UIKitCore 0x1c6078630 __53-[_UINavigationParallaxTransition animateTransition:]_block_invoke 7 UIKitCore 0x1c6b1784c …
9 ios  xcode  exception 

1
如何在Xcode中调试“前提条件失败”?
我在Xcode 11上构建了SwiftUI应用程序,但是当我切换到应用程序中的特定选项卡时,它立即终止。 问题是,它始终指向Application Delegate文件,我认为这并不是真正的问题。我还在控制台中收到此错误,仅此precondition failure: invalid input index: 2而已,没有更多有关此错误来自何文件,数组或函数的更多详细信息。 Xcode中是否可以隔离导致此问题的任何方法?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.