sidekick-feedback icon indicating copy to clipboard operation
sidekick-feedback copied to clipboard

iOS failed to install app

Open plamenmitrev opened this issue 7 years ago • 15 comments

Please, provide the details below:

Did you verify whether this issue has already been reported here?

Yes

Tell us about the problem.

Failed to install my test blank app on my iPhone SE device. App built successfully, but failed to install.

Which platform(s) does the issue occur on?

iOS 11.2.6 on iphone SE Windows

Provide the following version numbers that the issue occurs with:

Version: 1.8.2-v.2018.3.30.1 (latest) NativeScript CLI version: 3.4.3 CLI extension nativescript-cloud version: 1.8.0 CLI extension nativescript-starter-kits version: 0.3.4

Tell us how to recreate the issue in as much detail as possible.

  1. Create app from blank template
  2. Built it successfully
  3. Tried run on device with certificate and provision from payed apple account
  4. Failed with error Error detected during LiveSync on 7f189c19bab5463f523461b5e9381bc65317ec8b for D:\Projects\DeployTest. Error: Failed to install D:\Projects\DeployTest\.cloud\ios\device\DeployTest.ipa on device with identifier 7f189c19bab5463f523461b5e9381bc65317ec8b
  5. Tried run on device with Auto Generate using my free account, but same error occurred

Does this issue happen every time?

Yes

Send the client logs.

https://gist.github.com/plamenmitrev/f873a28b51823819dc6c85b8a690ccec

plamenmitrev avatar Mar 30 '18 18:03 plamenmitrev

I am having the same problem. I created a blank TypeScript app and tried to build it using the Debug iOS cloud build and get the following error:

[18-04-02 11:03:21.132] (CLI) The result of cloud build of 'C:\Dan\nativescript\test-cloud-build', platform: 'iOS', configuration: 'Debug', buildId: c3b0c74f-2afb-4c89-a9af-0452861f20f1 successfully downloaded. OutputFilePath: C:\Dan\nativescript\test-cloud-build.cloud\ios\device\testcloudbuild.ipa [18-04-02 11:03:21.930] (CLI) Unable to apply changes on device: 892bd52646dcefaa7e9aae6198244e7a8e85712d. Error is: This socket has been ended by the other party. [18-04-02 11:03:21.939] Error detected during LiveSync on 892bd52646dcefaa7e9aae6198244e7a8e85712d for C:\Dan\nativescript\test-cloud-build. Error: This socket has been ended by the other party

danmontz avatar Apr 02 '18 18:04 danmontz

@plamenmitrev In the log everything seems fine and I am not sure why the installation fails. Could you check if the .mobileprovision file contains the device UDID in the ProvisionedDevices array:

<key>ProvisionedDevices</key>
<array>
	<string>7f189c19bab5463f523461b5e9381bc65317ec8b</string>
</array>

If the UDID is available, then you would need to see the device logs in order to find the cause of the issue. Sidekick currently filters the device log per application name and since the app installation fails you cannot see the log with Sidekick (We plan to improve it). You could use iOSLogInfo and use sdsiosloginfo.exe to see the full device log (keep in mind it will print a lot of stuff).

ventsislav-georgiev avatar Apr 06 '18 09:04 ventsislav-georgiev

@danmontz Your issue seems different. The socket error means it is related to the device connection. You could try to re-trust your computer by resetting the trusted devices (Settings -> General -> Reset -> Reset Location & Privacy). It could also happen in case of faulty usb cable.

ventsislav-georgiev avatar Apr 06 '18 12:04 ventsislav-georgiev

Hi, there, I'm having the same issue that @plamenmitrev described above. The error is exactly the same. There are no problems with the cloud build, only in the installation. I'm using my free developer account, and Auto Generate. I have tried to downgrade the development target to 7.0, instead of 8.0, in the iOS section of the project inside Sidekick, but got another error ("embedded dylibs/frameworks are only supported on ios 8.0 or later").

There are just some differences in the environment, like:

Which platform(s) does the issue occur on?

iOS 7.1.2 (11D257) on an iPhone 4S Windows 10

Provide the following version numbers that the issue occurs with:

  • tns CLI: 4.0.0
  • Cross-platform modules: 4.0.0
  • Runtime(s): { "tns-ios": "4.0.0" }

imdanielpiva avatar Apr 17 '18 19:04 imdanielpiva

Hi, same issue here.

I'm using Sidekick cloud build for iOS with auto-generated Provisioning Profile and Certificate. The build is working and downloaded without errors or warnings but while installing on a connected physical device :

Unable to apply changes on device: xxxxxx. Error is: Failed to install D:\nativeScript\xxx\.cloud\ios\device\xxx.ipa on device with identifier xxxxxx. Error is : Could not install application.

Which platform(s) does the issue occur on?

iOS 10.3.3 on an iPhone 6S Windows 10

Provide the following version numbers that the issue occurs with:

tns CLI: 4.2.3 Runtime(s): { "tns-ios": "4.2.0" }

pacome2017 avatar Sep 05 '18 09:09 pacome2017

I've the same problem

biapar avatar Sep 22 '18 14:09 biapar

Try build and run the .xcodeproj in Xcode. Then run the project with Sidekick.

ghost avatar Oct 03 '18 05:10 ghost

Same issue here

codingsett avatar Dec 11 '18 22:12 codingsett

me too .. :(

p-3 avatar Jan 30 '19 21:01 p-3

Any solution guys?

jujogi avatar May 17 '19 22:05 jujogi

Same issue

FlawaCLV avatar Jan 22 '20 11:01 FlawaCLV

Unfortunately Same issue or me too... are not helping in reproducing the issue - can you guys please consider posting steps to reproduce and the full error log received after the failure. Even if sometimes the issue might result in an identical error line it might be totally different cases.

Note: The above is usually happening when the provided certificate is not valid for the connected device.

NickIliev avatar Jan 22 '20 11:01 NickIliev

@ventsislav-georgiev, @NickIliev I have the same problem as plamenmitrev. Below you will find the Sidekick main log (the end of the log concerning installation). The device UDID is present in the .mobileprovision I am using. I am performing the build and installation running Sidekick on Windows 10 machine. Also, the same procedure works properly on another device (iPad with iOS 10).

main_20-03-08_10-19-35.941.log

veselints avatar Mar 08 '20 09:03 veselints

After reviewing the case with iOSLogInfo, I am getting A valid provisioning profile for this executable was not found. As I mentioned, the app identifier is present in the provisioning profile used. The same procedure installs the application on another device. Any ideas?

iOSLogInfo.log

veselints avatar Mar 08 '20 09:03 veselints

I have resolved the issue by removing the iOS platform, deleting the _cloud folder from the project and building again. It appears the process was using an old ipa file.

veselints avatar Mar 08 '20 10:03 veselints