iOS模拟器上缺少语言 [英] Missing languages on iOS simulator

查看:166
本文介绍了iOS模拟器上缺少语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行应用程序时,我的iPhone/iPad模拟器仅给我6种语言选择(英语,德语,日语,意大利语,西班牙语和匈牙利语).用Google搜索后,似乎应该至少有18种语言可供选择.

When I run my application, my iPhone/iPad simulator only gives me 6 language choices (English, German, Japanese, Italian, Spanish, and Hungarian). After having Googled this it seems like there should be at least 18 language choices available.

我重新安装了Xcode 4.3.1,并安装了iOS 5.1模拟器,它具有相同的问题,相同的语言.

I've reinstalled Xcode 4.3.1, and installed the iOS 5.1 simulator, and it has the same issues, same languages.

有人知道这些语言在哪里定义,为什么模拟器没有所有可用选项? Google和Apple Dev论坛无济于事.

Does anyone know where these languages are defined, and why a simulator wouldn't have all available options? Google and the Apple Dev forums are of no help.

以下是屏幕截图:

更新:我决定安装稍旧的5.0模拟器(而不是5.1),并且每当我使用5.0模拟器时,它就会显示所有的语言.如果我切换回5.1模拟器,我仍然只有上面的屏幕截图中显示的6种语言.

Update: I decided to install the slightly older 5.0 simulator (instead of 5.1), and whenever I'm using the 5.0 simulator it appears I have all of the languages. If I switch back to the 5.1 simulator I still only have the 6 languages shown in the above screenshot.

推荐答案

基于答案中发布的信息,位于同一个问题中的名为idz的用户,我能够弄清楚如何解决此问题.

Based on information in the answer posted the user named idz, located in this same question, I was able to figure out how to fix this.

我使用的是5.1,必须安装以前版本的模拟器(5.0),然后从5.0查找语言目录,并将其复制到5.1的正确位置,然后重新启动iPhone模拟器.以下是一些详细步骤:

I was using 5.1, I had to install the previous version of my simulator (5.0), then locate the language directories from 5.0 and copy them into the proper location for 5.1, and then restart the iPhone Simulator. Here are some detailed steps:

  1. 找到5.0模拟器的语言.lproj导演. /Applications/Xcode-4.3.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/PrivateFrameworks/Preferences.framework/
  2. 在此文件夹中,您会看到许多扩展名为.lproj的文件夹,例如English.lproj.复制您在此处找到的所有.lproj文件夹.
  3. 找到带有5.1模拟器的.lproj目录的文件夹. /Applications/Xcode-4.3.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/PrivateFrameworks/Preferences.framework/
  4. 将复制的文件夹粘贴到此目录中.执行此操作时,我选择不覆盖任何现有文件夹.
  5. 重新启动iPhone模拟器.
  6. 确保将iPhone Simulator设置为5.1.选择"iPhone模拟器"后,转到Hardware -> Version -> 5.1.现在,当您选择模拟器的语言时,您应该拥有从5.0文件夹复制过来的所有可用语言.
  1. Locate the language .lproj directores for the 5.0 simulator. /Applications/Xcode-4.3.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/PrivateFrameworks/Preferences.framework/
  2. Within this folder you will see many folders with the .lproj extension, e.g. English.lproj. Copy all of the .lproj folders that you find here.
  3. Locate the folder with the .lproj directories for the 5.1 simulator. /Applications/Xcode-4.3.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/PrivateFrameworks/Preferences.framework/
  4. Paste the folders you copied into this directory. I chose not to overwrite any existing folders when I did this.
  5. Restart your iPhone Simulator.
  6. Make sure your iPhone Simulator is set to 5.1. While the iPhone Simulator is selected, go to Hardware -> Version -> 5.1. Now when you go to choose the language for the simulator you should have all of the languages available that you copied over from the 5.0 folder.

或者,有些人说您可以通过简单地卸载Xcode SDK并重新安装它来解决此问题,但是我发现这种方法要快得多.

Alternatively some have said that you might be able to fix this by simply uninstalling the Xcode SDK and reinstalling it, but I've found this way to be much faster.

我为此向Apple提交了一个错误报告,一个星期后没有任何响应.我已将他们定向到此页面以解决此问题,但我仍然不确定这是如何发生的.

I submitted a bug report to Apple for this, and after a week had no response. I've directed them to this page for the fix to the problem, but I'm still not sure how this happened in the first place.

这篇关于iOS模拟器上缺少语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆