該應用只是掛在iOS7,8,9,使30000調用[NSLocalizableString長度] 該CPU處於最大。Xcode 7崩潰:[NSLocalizableString長度] 30000
看到https://forums.developer.apple.com/thread/16001也
(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
這種解決方案的問題,但是,如果你添加一個新的TextView到故事板,例如,你要刪除的定位,並重新添加它。否則,您可能會遇到與以前相同的問題。 – Zsolt
非常感謝。幫助在故事板中重新創建可本地化的字符串文件。 – Massmaker
賓果,就是這樣。 – sabiland