Bug 22799 - AdHoc Distribution Provisioning - No longer deploys
Summary: AdHoc Distribution Provisioning - No longer deploys
Status: RESOLVED DUPLICATE of bug 26519
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 3.5
Hardware: PC Windows
: Normal normal
Target Milestone: 3.10
Assignee: Adrian Alonso
URL:
Depends on:
Blocks:
 
Reported: 2014-09-09 16:20 UTC by Jon Douglas [MSFT]
Modified: 2015-03-10 15:38 UTC (History)
10 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:
RESOLVED DUPLICATE of bug 26519

Description Jon Douglas [MSFT] 2014-09-09 16:20:10 UTC
This issue seems to be a change between VS 3.3 and 3.5 in which we had removed the Build -> Deploy options, but certain items are no longer accessible such as deploying to a device when running a "Start without debugging" under an AdHoc configuration with a distribution profile.

After a bit of investigation with Brendan Zagaeski, it seems the following command runs in 3.3: 

/Developer/MonoTouch/usr/bin/mtouch -sdkroot "/Applications/Xcode.app/Contents/Developer" --devname "Brendan Zagaeski’s iPhone" --installdev "/Users/macuser/Library/Caches/Xamarin/mtbs/builds/iPhoneApp1/93693501792e14fb2edbe5bc563222c0/bin/iPhone/Ad-Hoc/iPhoneApp1.app"

but it does not run in 3.5 and therefore doesn't deploy to device.

My guess is that the current code detects n AdHoc provisioning profile and doesn't run the DeployApplication command.

From a customer's perspective:

I’ve seemed to have encountered a new issues ever since upgrading to the latest Xamarin bits on the stable channel. I’m using Visual Studio to develop an iOS app. I used to have the ability to deploy the app to any device in my provisioning profile by going to Build->Deploy. It would then either deploy a Debug or AdHoc build to my specified device (depending on my active configuration. Ever since the latest update, I no longer have this ability. The option for Build->Deploy in the main menu is grayed out and not selectable. I go to my Solution Configuration Manager, to make sure “Deploy” is checked. Now it looks like the Check Box for “Deploy” is grayed out as well and won’t let me check it.

Right now the only way I can Deploy to devices is to run the Debugger, but this takes way too much time. Using “Deploy” was much faster and allowed me to deploy to multiple iPhones and iPads rapidly so we can perform user tests on the latest builds for various. Can someone if I’m doing anything wrong? Did something break? This is rather annoying and would appreciate any help.

Workarounds:

One could manually install the ipa by hand, but this seems tedious compared to what we originally had.
Comment 2 Saurabh 2014-10-06 08:33:07 UTC
I have checked this Issue and I am also unable to deploy application to device using ad-hoc distribution.

Mac Server Log: https://gist.github.com/saurabh360/b8501c502350ae6386d8
MTBServer Log: https://gist.github.com/saurabh360/16c526851fa19a9d448d
Build Output: https://gist.github.com/saurabh360/e3454d9ffc9a505060de

VS 2013/2012
XVS 3.7.201.0 (58a59ecb5fa40a0a2e97617c36c069074404c6ae)
X.iOS 8.2.0.193
Comment 6 Ruben Macias 2014-11-05 12:37:21 UTC
I'm confused here.  Has this been fixed and going to be in a future release, or was this just closed for no reason given?
Comment 7 Brendan Zagaeski (Xamarin Team, assistant) 2014-11-05 12:52:10 UTC
The interesting recent discussion was all hidden in private comments. To summarize: from the preliminary results, it appears that in the upcoming Xamarin 3.8 release the "Deploy" context menu item for Xamarin.iOS projects in the Solution Explorer has been successfully changed back to allow deploying Ad-Hoc builds to device directly from Visual Studio.
Comment 8 Mohit Kheterpal 2014-11-06 07:58:49 UTC
I have checked this issue with XVS 3.8.113 + X.iOS 8.4.0.28.

Steps that I have followed :
1. Create a single view template application
2. Select Ad-hoc configuration
3. Set Identifier and provisioning profile
4. Deploy application via click on debug button it says that application deploy and a popup appears : http://screencast.com/t/bOk2CNEhzFf

Actual result : Application does not deploy on device and I am getting following logs :

mtbserver log : https://gist.github.com/Mohit-Kheterpal/4c49fcfbcf37976e1242
IDE log :https://gist.github.com/Mohit-Kheterpal/26ef511e9d3185beca58
macserverlog : https://gist.github.com/Mohit-Kheterpal/9e91c6887f80b918b172

However If I select Deploy option in context menu then it gives error.

Error : https://gist.github.com/Mohit-Kheterpal/82f54685674e46202c47
IDE Logs : https://gist.github.com/Mohit-Kheterpal/2db0eacb4bfa2614be8a
mtbserverlog : https://gist.github.com/Mohit-Kheterpal/e34a8bb583fe3c074400

Please let me know what should I do to verify this issue ?
Comment 9 Ian Ceicys 2014-11-06 15:00:16 UTC
Mohit I can confirm that I too am seeing the same behavior and the Ad-hoc deploy of a single view application is also failing for me. In the attached Mac Server log I am seeing the following error message:
[06-Nov-2014 14:55:11] Command [GetFile: CommmandUrl=GetFile] finished (61)
[06-Nov-2014 14:55:11] Request handled in 15.374ms
Deploying 'App1' into the device 'Ian's 6+ iPhone'
Deploy failed
Comment 11 PJ 2014-12-04 16:48:21 UTC
Joe, I think you guys branched 3.9 again from master, which means the commit might have gotten in. Moving to the 3.9 milestone for confirmation.
Comment 12 Saurabh 2014-12-08 04:44:17 UTC
I have checked it with following builds and I am also unable to deploy application to device using Ad-Hoc distribution.

Checked with builds:
XVS 3.9.125
X.iOS 8.6.0.21

Xamarin Log: https://gist.github.com/saurabh360/ae6fa6524261d661af2b
VS Trace log: https://gist.github.com/saurabh360/77d1d23354e0c04a4b0b
MTBSever Log: https://gist.github.com/Mohit-Kheterpal/110142e7f74b323aef2b
Comment 13 PJ 2014-12-09 15:44:51 UTC
Ok, it didn't make it in then, back to 3.10 as per Joe's change on 2014-11-19.
Comment 14 Ian Ceicys 2015-02-06 16:26:11 UTC
This bug has been fixed via this bug for service release 2 / 3.10.

https://bugzilla.xamarin.com/show_bug.cgi?id=26519

*** This bug has been marked as a duplicate of bug 26519 ***
Comment 15 Ruben Macias 2015-03-10 15:38:46 UTC
Can I get an ETA for this fix?  Reported it back in September, and appreciate that it was fixed, but I would love to have a build that contains this fix.  This has been a real productivity killer since September.  Thanks!