如何改变语言/地区后,prevent需要重建的应用 [英] How to prevent need for rebuilding app after changing Language/Region

查看:200
本文介绍了如何改变语言/地区后,prevent需要重建的应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题发生在X code>生成和运行,结果
在工具>泄漏'不运行时它。
因此,似乎在X code的一个问题。结果
如果是这样的话,我不介意做一个额外的重建。

The issue happens at XCode>'Build and run',
not when running it in 'Instruments > Leaks'. So it seems an issue with Xcode.
If that is the case, I don't mind doing an extra rebuild.

不过,如果问题也将应用程序后,发生的是张贴在iTunes的应用程序商店,结果
和客户安装的应用程序在她的装置,结果
她会每天她改变语言/区域的时间来重新安装应用程序。结果
(针来说,这是不能接受的)。

However, if issue will also happen after app is posted in iTunes app store,
and customer installs the app in her device,
she would have to reinstall the app every time she changes language/region.
(needles to say, that would not be acceptable).

这是问题:结果
    一)刚刚在X code(不是在应用程序商店)?结果
    b)不得由其他开发商经历过,所以很有可能是在应用程序中的错误?或结果
    C)有可能即使在应用程序是由应用程序商店下载安装到地面?

Is this issue:
a) just in Xcode (not in app store)?
b) not experienced by other developers, so likely is a bug in the app ? or
c) likely to surface even when app is installed by downloading from app store?

如果'b'或'C',任何想法如何解决呢?

If 'b' or 'c', any ideas how to fix it?

----------------步骤来重现问题-----------------结果
在开发过程中:结果
  1)做一个X code>生成和运行,验证应用程序工作正常(在任何模拟器或设备);结果
  2)更改语言和地区(在iPhone的设置>通用​​>国际)结果
  3)验证:结果
     -console显示无信息的错误:结果
                    程序接收到的信号:SIGKILL结果
     -app崩溃的背景下,结果
     -Clicking应用程序的图标图标不再启动应用程序结果
          (应用默认屏幕显示一秒钟,然后崩溃)结果
  4)做一套构建并运行结果
  5)现在验证应用程序启动和行之有效的结果
    (在新的语言和区域预期。因此,应用程序的本地化字符串等工作确定)。

----------------Steps to reproduce issue-----------------
During development:
1) Do a Xcode>'Build and run', verify app works as expected (in either simulator or device);
2) Change Language and Region (in the iPhone's 'Settings>General>International')
3) Verify:
-Console shows the non-informative error:
Program received signal: "SIGKILL".
-App crashes in the background,
-Clicking app's icon icon no longer launches the app
(apps' default screen displays for a second, then crashes)
4) Do another 'Build and run'
5) verify now app launches and works well
(in the new language and region as expected. So app's localization strings etc work ok).

6)做一个与性能工具运行>泄漏'结果
  7)更改语言和地区(在iPhone的设置)结果
  8)确认没有问题。结果
那就是:搜索
     仪器跟踪中断(在应用程序或工具没有崩溃),和结果
     用户可以重新启动在iPhone像往常一样(步骤3和4被淘汰​​)的应用程序。

6) Do a 'Run with Performance Tool > Leaks'
7) Change Language and Region (in the iPhone's 'Settings')
8) verify no issue.
That is:
Instruments tracking interrupts (no crashes in app or in tool), and
user can relaunch the app in iPhone as usual (steps 3 and 4 are eliminated).

推荐答案

我已经看到了类似的行为。一步三到五年之间,你可能会想尝试在X code进行停止调试,并跳过重建。

I have seen a similar behavior. Between step three and five you might want to try a "stop debugging" in Xcode and skip the rebuild.

我可以改变设备上的语言,然后使用具有新选择的语言应用程序而不做一个新的版本,但我必须先preSS在X code中的停止按钮。

I can change the language on the device and then use the app with the newly chosen language without doing a new build, but I must press the stop button in Xcode first.

这篇关于如何改变语言/地区后,prevent需要重建的应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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