欢迎来到游易

Troubleshoot iOS App Installation Failures

发布时间:2019-12-26

Foreword

During the installation of iOS internal testing applications, many people have encountered installation failures. There are many reasons for installation failures. Below we summarize some common reasons below for easy troubleshooting by developers.

"Untrusted Enterprise Developer" prompt when launching an app in iOS 9

This problem is because in iOS 9 and later versions, Apple has imposed stricter restrictions on enterprise-signed applications. For specific solutions, please see: Running Enterprise Edition Apps in iOS 9

After clicking the "Install" button in iOS 9, there is no prompt "Install?"

This issue is caused by a bug in iOS 9. The prerequisite for this problem is generally that the user has already installed the same application from the official Apple App Store. The solution is: first delete the previously installed applications in the device, and then install online from Youyi.

Why in iOS 9 after clicking the "Install" button, nothing happens and the application icon does not appear on the desktop, but the network icon on the status bar is turning?

This is due to a bug in iOS 9. Although it seems to be unresponsive, the application has started to download and install in the background. The network icon on the status bar is a testament to this. At this time, just wait a little longer, and the application will be displayed on the desktop after the installation is complete.

This issue is caused by a bug in iOS 9. The prerequisite for this problem is generally that the user has already installed the same application from the official Apple App Store. The solution is: first delete the previously installed applications in the device, and then install online from Youyi.

When installing a previously installed app in iOS 8 or iOS 9, the installation failed.

This is caused by a bug in iOS 8 and later versions. Developers can try to turn on the "iOS 8 Installation Repair" feature in the app settings and then reinstall the app.

"I can't connect to qiniu.wkzx.wang" when installing the iOS app

This problem is generally caused by the user's network or mobile phone cache error, you can try the following two methods to solve:

1. Restart the phone and try to install again.

2. Change to a different network environment, such as a Wi-Fi hotspot, or change from Wi-Fi to 3G / 4G, and then reinstall.

Other reasons that may prevent apps from installing:

Cause one: The App-Store method was selected when exporting the installation package file (.ipa file of the iOS App).

When exporting .ipa files for iOS, some developers chose the App-Store method. The .ipa files exported in this way are only suitable for uploading to the Apple App Store, and cannot be installed online through Youyi. If the .ipa file exported in this way is transferred to Youyi Online, Youyi Online will display the "App-Store version". This version cannot be installed online through Youyi.

Cause two: When exporting the installation package file (.ipa file) of the iOS App, the Ad-hoc method was selected, but the device UDID was not added.

When exporting the iOS installation package file, if the Ad-hoc method is selected (usually used by Apple personal developer account), then if a device can be installed, the UDID of this device must be added to the export installation The certificate file (.mobileprovision file) used in the package can be installed on this device.

After uploading the installation package file exported by Ad-hoc to Youyi Online, Youyi Online will be displayed as "Internal Beta", and at the same time, in the application management, the list of UDIDs included in the certificate of the installation package will be displayed. Developers can check whether the UDID of a device is added to the certificate of the installation package according to the displayed UDID list.

Cause three: When exporting the installation package file (.ipa file) of the iOS App, the In-house method was selected, but the certificate has expired.

When exporting the iOS installation package file, if the In-house method is selected (usually used for Apple enterprise developer accounts), at this time, if it fails to install, the developer can check whether his enterprise developer certificate Expired. Because Apple has strict management of enterprise developer certificates, improper use by developers may result in the enterprise certificate being sealed, and the installation package exported by the sealed enterprise certificate cannot be installed correctly.

Cause four: When generating the app installation package, the developer did not set the correct Architecture in Xcode.

The architecture of the iOS app determines which device models the iOS app can be installed on. For example, if an application only adds an architecture of arm64 to Xcode, after the final packaged installation package file is uploaded to Youyi Online, it cannot be installed for the following devices such as iPad mini, iPhone5 (because of these The devices are not arm64 architecture). In other words, if it needs to be installed on a device, the app must support the architecture of that device.

Therefore, the correct solution is to make the App support as much architecture as possible when generating the app installation package.

The specific operation method is: In Xcode-Build Settings-Architecture, add armv7, armv7s, arm64 so that all devices can be installed. Then, set "Build active architecture only" to NO. Architecture types supported for individual iOS devices.

Cause five: The iOS system version supported by the app is inconsistent with the current device system version.

If the iOS version supported by the app is too low or too high, the app cannot be installed successfully. For example, if an app is set up to support only iOS 7.0 and above, then if it is installed on an iOS 6.1 system, it cannot be installed successfully.

Therefore, the solution is also very simple, and we should try to make the app support a wider system version as much as possible.

The specific operation method is: In Xcode-General-Deployment Info-Deployment Target, set the app to a minimum version, such as iOS 5.0.

Cause six: The app is already installed on the device, and the installed app and the app to be installed are packaged with different certificates.

In this case, App installation fails. The solution is very simple, the developer only needs to delete the app already installed on the device, and then reinstall the new app.

Cause seven: LSRequiresIPhoneOS in the Info.plist file is not set, or NO is set.

For iOS apps, if the LSRequiresIPhoneOS in the Info.plist file is not set or is set to NO, the installation package (.ipa package) exported by Xcode will not contain the Payload folder, but will be called an Applications Folder instead. When such an installation package is installed, it will be determined by iOS as an invalid installation package, so it cannot be installed correctly.

The solution is also very simple, just set LSRequiresIPhoneOS in the Info.plist file to YES, and then repackage it. The specific operation is: Open the Info.plist file in Xcode, and check if LSRequiresIPhoneOS is set. If not, add one, and then set the type of LSRequiresIPhoneOS to Boolean and the value to YES.

After setting, you can see that the value of Application requires iPhone environment is YES in the Info.plist file.

Cause eight: The network is interrupted or abnormal.

In this case, the user can check whether the connected network of his mobile phone is stable and the speed is normal. You can try other websites, or change a Wi-Fi, or switch from Wi-Fi to 3G / 4G, etc., and then reinstall.

After trying this way, you can usually solve the problem.

After trying the above solutions, still can't solve it?

If you still cannot solve the problem after troubleshooting according to the above methods, you can use the Mac OS client of Youyi Online to view the installation logs.

Youyi Online's Mac OS client provides the function of viewing the App installation log in real time. Developers can easily determine the cause of specific installation failures based on the App installation log.



微信客服