简体   繁体   English

本地化的应用程序仅在非基本语言上崩溃,并且仅在不与Xcode一起运行时崩溃

[英]Localized app crashes only on non-base language and only when not running with Xcode

Our iOS (Swift) app has English as the base language, and is localized to have Spanish as well. 我们的iOS(Swift)应用程序以英语为基本语言,并且已本地化为西班牙语。 English works like a charm, but in Spanish devices, the app crashes within seconds of opening when it is not running along Xcode. 英语的工作原理很吸引人,但是在西班牙语设备中,如果该应用未沿Xcode运行,则该应用会在打开后的几秒钟内崩溃。 Given this only happens when Xcode isn't running it's been hard to debug - any idea what could be causing this? 鉴于这种情况仅在Xcode不运行时发生,因此很难调试-知道是什么原因导致的吗?

I can't say for sure that I had the same problem as you, but I was getting a similar crash for non-base and non-localized languages. 我不能肯定地说我和您有同样的问题,但是对于非基础语言和非本地化语言,我也遇到了类似的崩溃。 Originally I had the localized languages as 本来我有本地化的语言

  • English 英语
  • Chinese (Simplified) 简体中文)
  • Chinese (Traditional) 中国传统的)

Then I added Base and deleted English (moved it to base first) to give 然后我添加了Base并删除了英语(首先将其移至base)以给出

  • Base 基础
  • Chinese (Simplified) 简体中文)
  • Chinese (Traditional) 中国传统的)

After that it wasn't crashing anymore when I switched to another language. 之后,当我切换到另一种语言时,它不再崩溃。

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

相关问题 仅当连接到XCode时,应用程序才会崩溃 - App crashes ONLY when connected to XCode NSDateFormatter:仅在应用程序针对该语言进行本地化时才显示本地化日期 - NSDateFormatter: Only show localized dates if app is localized for the language Alamofire仅在运行存档的应用程序时崩溃 - Alamofire crashes only when running archived app 应用程序仅在xcode乐器中崩溃 - App crashes only in xcode instruments 如何使用非基本化本地化在Xcode中预览Storyboard - How to preview Storyboard in Xcode using Non-Base localisation 使用Xcode 7构建并提交时,iOS Testflighted App在仅运行iOS8的iPhone 4s上的启动屏幕上崩溃 - iOS Testflighted App crashes at the launch screen, on iPhone 4s running iOS8 only, when built+submitted with Xcode 7 UIViewControllerHierarchyInconsistency仅在iOS 8和Xcode 6中崩溃应用程序 - UIViewControllerHierarchyInconsistency crashes app only in iOS 8 and Xcode 6 iOS-仅在直接在模拟器上运行,但在调试或通过Xcode运行时,应用程序才能正常运行 - iOS - Application crashes only when running directly on simulator but working fine while debugging or running through Xcode OpenGL:glGetUniformLocation上的应用程序崩溃(但仅当未通过XCode安装时) - OpenGL: App crashes on glGetUniformLocation (but only if not installed through XCode) Xcode - 仅在设备上运行时出现位码错误 - Xcode - Bitcode error only when running on device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM