This app was unable to be installed.

简介: 今天升级XCode 9.1 beta,编译项目正常,模拟器运行出现以下错误弹框:error.pngAPP无法安装到模拟器上,也看不见任何提示,由于mac中存在多个XCode 版本,尝试下面命令:sudo xcode-select -s /Applications/Xcode-beta.app并不好使。

今天升级XCode 9.1 beta,编译项目正常,模拟器运行出现以下错误弹框:

img_d5719a167a4ef4d42c88a0fa83d11dce.png
error.png

APP无法安装到模拟器上,也看不见任何提示,由于mac中存在多个XCode 版本,尝试下面命令:

sudo xcode-select -s /Applications/Xcode-beta.app

并不好使。

这种问题看不见任何其他的问题提示,有点无从查起的赶脚。

stackoverflow上找到下面的方法:

xcrun simctl spawn booted log show

//或者可以标出这个错误提示相关的,很容易看到相关的错误提示
xcrun simctl spawn booted log show | grep "This app was unable to be installed.

然后,基本就能定位问题了,我这里出现的问题是:


img_67284949bf8b8859b3cddad57dd1a3f1.png
error.png

Info.plist文件中缺少CFBundleExecutable,加上即可。

目录
相关文章
|
6月前
|
iOS开发
解决App Installation failed, No code signature found.
解决App Installation failed, No code signature found.
131 0
|
Ubuntu Unix Linux
成功解决ERROR: Unable to find the development tool `cc` in your path; please make sure that you have the
成功解决ERROR: Unable to find the development tool `cc` in your path; please make sure that you have the
成功解决ERROR: Unable to find the development tool `cc` in your path; please make sure that you have the
|
Android开发 开发工具 IDE
Android gradle问题解决: This app has been built with an incorrect configuration. Please configure your build for VectorDrawableCompat
1. 问题描述: Android Studio在运行模拟器某些机型或者真机某些机型的时候发生闪退。 错误如下: Java.lang.RuntimeException: Unable to start activity ComponentInfo{com.
2273 0
|
11月前
|
Android开发
The application could not be installed: INSTALL_FAILED_TEST_ONLY. Android App包安装失败(Bug记录)
The application could not be installed: INSTALL_FAILED_TEST_ONLY. Android App包安装失败(Bug记录)
|
数据安全/隐私保护
导入 Walle 时报:ERROR: A problem occurred configuring project ':app'.
导入 Walle 时报:ERROR: A problem occurred configuring project ':app'.
导入 Walle 时报:ERROR: A problem occurred configuring project ':app'.
|
Shell
Detected problems with app native libraries (please consult log for detail): lib.so: text relocation
Detected problems with app native libraries (please consult log for detail): lib.so: text relocation
116 0
安装APK时弹窗提示“Detected problems with app native libraries”
安装APK时弹窗提示“Detected problems with app native libraries”
98 0
|
JavaScript 开发工具 Android开发
初学者做APP所需工具安装及ionic-app-scripts has unexpectedly closed问题
初学者做APP所需工具安装及ionic-app-scripts has unexpectedly closed问题
105 0
初学者做APP所需工具安装及ionic-app-scripts has unexpectedly closed问题
|
开发工具
Resolved versions for app (26.1.0) and test app (27.1.1) differ.
Resolved versions for app (26.1.0) and test app (27.1.1) differ.
Resolved versions for app (26.1.0) and test app (27.1.1) differ.
|
Linux
Error: automake: Failed to download resource “m4“
Error: automake: Failed to download resource “m4“
213 0