本文介绍了Xcode 7 崩溃:[NSLocalizableString 长度] 30000的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

应用程序在 iOS7、8、9 上挂起,对 [NSLocalizableString 长度] 进行了 30000 次调用cpu 开最大了.

另请参阅

The app just hangs on iOS7,8,9, makes 30000 calls to [NSLocalizableString length]The cpu is on max.

see https://forums.developer.apple.com/thread/16001 also

(lldb) bt
* thread #1: tid = 0x2cb4df, 0x0349065c Foundation`-[NSLocalizableString length] + 6, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=2, address=0xbf728ffc)
  * frame #0: 0x0349065c Foundation`-[NSLocalizableString length] + 6
    frame #1: 0x03490680 Foundation`-[NSLocalizableString length] + 42
    frame #2: 0x03490680 Foundation`-[NSLocalizableString length] + 42
    frame #3: 0x03490680 Foundation`-[NSLocalizableString length] + 42
    frame #4: 0x03490680 Foundation`-[NSLocalizableString length] + 42
    frame #5: 0x03490680 Foundation`-[NSLocalizableString length] + 42
    frame #6: 0x03490680 Foundation`-[NSLocalizableString length] + 42
    frame #7: 0x03490680 Foundation`-[NSLocalizableString length] + 42
    frame #8: 0x03490680 Foundation`-[NSLocalizableString length] + 42
    frame #9: 0x03490680 Foundation`-[NSLocalizableString length] + 42
    frame #10: 0x03490680 Foundation`-[NSLocalizableString length] + 42
    frame #11: 0x03490680 Foundation`-[NSLocalizableString length] + 42
    frame #12: 0x03490680 Foundation`-[NSLocalizableString length] + 42
    frame #13: 0x03490680 Foundation`-[NSLocalizableString length] + 42
    frame #14: 0x03490680 Foundation`-[NSLocalizableString length] + 42
    frame #15: 0x03490680 Foundation`-[NSLocalizableString length] + 42
    frame #16: 0x03490680 Foundation`-[NSLocalizableString length] + 42
    frame #17: 0x03490680 Foundation`-[NSLocalizableString length] + 42
解决方案

I checked the English checkmark in addition to the Base, and it stopped having problems.

这篇关于Xcode 7 崩溃:[NSLocalizableString 长度] 30000的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-13 15:38