Bug 58070 - VS2015/2017 never deploys an adhoc release app
Summary: VS2015/2017 never deploys an adhoc release app
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 4.5.0 (15.2)
Hardware: PC Windows
: Normal normal
Target Milestone: 15.4
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-07-11 06:49 UTC by softlion
Modified: 2017-07-26 05:47 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description softlion 2017-07-11 06:49:48 UTC
I have an ios app, compiled in release mode using adhoc profile, that i want to 'upload to device' from visual studio Windows (2015 or 2017).

Using VS for mac, it compiles and deploys fine.
On the device there is an app icon, and the app can be started.

Using VS for windows, is compiles fine but display a popup saying it has been uploaded to device but app can not be started from tooling.
On the device there is no app icon, no app has been uploaded.


Microsoft Visual Studio Enterprise 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework
Version 4.7.02046

Installed Version: Enterprise

Xamarin   4.5.0.486 (fec6f88)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   7.3.1.2 (9dbc4c5)
Visual Studio extension to enable development for Xamarin.Android.

Xamarin.iOS   10.10.0.37 (ad35de4)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 1 Jose Gallardo 2017-07-12 14:11:44 UTC
Hi @softlion,

Do you see the same issue either for Simulator or Device?

Is the same issue reproducible with a Single View App project from scratch?

Also, we'll need the build output and logs to move forward. Can you please:

1. Delete the cache folder from the Mac for this solution (which should be on ~/Library/Caches/Xamarin/mtbs/builds)
2. Set build output to diagnostic (Go to the menu "Tools - Options" and from the left panel: "Projects And Solutions - Build And Run" and change "MSBuild Output Verbosity" to "Diagnostic")
3. Rebuild the solution and try to deploy. Copy the Build Output from the Output window and share it (maybe in a gist or as a zip file).
4. Go to the menu "Help - Xamarin - Zip Logs". Please attach that zip file to the bug report.


Thanks!
Comment 2 softlion 2017-07-12 14:25:27 UTC
> Do you see the same issue either for Simulator or Device?

Adhoc can not be deployed on a simulator. This is the purpose of Adhoc profiles. To deploy on a device.


> Is the same issue reproducible with a Single View App project from scratch?

Dunno, as provisioning profiles depends on app ids.

> Also, we'll need the build output and logs to move forward. 

The build output has no error.
Comment 3 Jose Gallardo 2017-07-12 17:32:09 UTC
@softlion,

You're right about the first question.
We still need the build output and the logs to see exactly what's going on. (Even if it doesn't have any errors).
Please ensure you're connected to the Mac when getting the logs, as we need both Mac and Windows logs.

Thanks
Comment 4 softlion 2017-07-12 17:42:36 UTC
I've checked the build log, it just ends with "All succeed".

If i press CTRL-F5 again, no build happens, and there is always this big popup telling VS can't start the app automatically because it has an adhoc profile. But that upload succeeded.

That's the problem: the log from the xamarin remote build/deploy script is not available.
Comment 5 Emanuel 2017-07-17 20:33:41 UTC
Hi @softlion,
I've been able to reproduce a similar issue, the pop up is being shown before building and deploying the app, but the build/deploy process will begin right after clicking Ok on it. 

Could you confirm that the app is built and deployed right after closing the pop up? We fixed this issue and it'll be part of the 15.4 release, and closing the pop up should unblock you to deploy the app to the device.

Thanks!
Comment 6 softlion 2017-07-17 22:14:06 UTC
Hi,
I didn't try again.
If i remember, if the the window is closed nothing happens.
I suppose I would have seen the deployed app icon on the springboard.

When 15.4 will be released ?
Comment 7 xamarin-release-manager 2017-07-18 13:49:09 UTC
Fixed in version 4.8.0.49 (master)

Author: Emanuel
Commit: f3cac6b1a685931175dfb181dcea0cbc6a02f408 (xamarin/XamarinVS)
Comment 8 Emanuel 2017-07-18 14:04:06 UTC
Hi @softlion,
We don't have confirmed dates yet, but the first 15.4 preview will be released early next month.

Thanks!