为什么Xcode显示“此时无法安装此应用".弹出窗口? [英] Why Xcode shows "This app could not be installed at this time." pop-up?

查看:211
本文介绍了为什么Xcode显示“此时无法安装此应用".弹出窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行项目并首次在模拟器中添加应用程序时,一切正常.但是,当我再次运行它时,Xcode会在编译结束时以弹出窗口的形式提示此消息:

When I run the project and add the app in simulator for the first time, everything is okay. But when I run it again, Xcode prompts this message as a pop-up window at the end of compilation:

目前无法安装此应用.

This app could not be installed at this time.

我已经检查了相关问题,并尝试了所有建议的方法来解决此问题;检查提到的日志,清理项目,重新启动模拟器,对其进行更改,擦除其中的所有内容和设置.什么都行不通.我必须清除该应用程序,并在每次打开该应用程序时重新对其进行编译.您之前收到过相同的消息吗?有什么方法可以发现问题并解决问题?顺便说一句,我在High Sierra使用Xcode 9.2.

I already checked the relevant question, and tried all the advised ways to solve this issue; checking mentioned logs, cleaning project, restarting simulator, changing it, erasing all content and settings in it. Nothing works. I must erase the app and recompile it every time to open the app. Did you get the same message before? Is there any way to detect problem and resolve it? Btw, I use Xcode 9.2 at High Sierra.

推荐答案

由于不同的原因,可能会出现此错误弹出窗口.目前没有特定原因可以看到它.就我而言,我添加到Bundle中以提供模拟数据的JSON文件触发了此问题.该文件的其中一个键中包含土耳其字母.修复后,弹出窗口消失了.有趣的是,如果JSON文件包含土耳其字母,但9.2仿真器不能接受,则早期的仿真器(< = 9.1)可以正常工作.

This error pop-up may come up for different reasons. There is no specific reason to see it for now. In my case, a JSON file that I added to Bundle in order to provide mock data triggered this issue. This file was containing a Turkish letter in one of the keys. After I fix it, the pop-up is gone. Interestingly, earlier simulators (<=9.1) work properly if JSON file contains Turkish letter but 9.2 simulators cannot tolerate it.

这篇关于为什么Xcode显示“此时无法安装此应用".弹出窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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