Bug 40423 - [ODRs/AdHoc] Error while starting ODRDownloadRequest
Summary: [ODRs/AdHoc] Error while starting ODRDownloadRequest
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: 6.0.0 (C7)
Hardware: Macintosh Mac OS
: High major
Target Milestone: (C7)
Assignee: Jeffrey Stedfast
: 40648 ()
Depends on:
Reported: 2016-04-15 03:28 UTC by Oleg Demchenko
Modified: 2016-05-02 21:33 UTC (History)
1 user (show)

Tags: NotRegression
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 or GitHub 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:

Description Oleg Demchenko 2016-04-15 03:28:23 UTC
AdHoc build fails to load embedded on-demand resources.

Steps to reproduce:
1) Open iTravel sample in XS:
2) Archive All
3) Create AdHoc ipa with embedded resources
4) Install ipa on device
5) Run application on device and press "Paris" table item

Current result:
ODRDownloadRequest fails with - https://gist.github.com/abb93ee5c20f39fa4dd45fa900bc98b0

Expected result:
Resources should be loaded without any errors with log - https://gist.github.com/d47c76365ba518203bb8a0da48d04cd1

Pick application archive created by XS and export AdHoc ipa with Xcode publishing workflow.
*.ipa generated by Xcode loads on-demand resources successfully.

Env. details:
Comment 1 Jeffrey Stedfast 2016-04-15 18:58:21 UTC

XS was also codesigning the asset packs embedded in the Ad-Hoc IPA but it appears that Xcode does not do this.
Comment 2 xamarin-release-manager 2016-04-15 19:13:16 UTC
Fixed in version (cycle7)

Author: Jeffrey Stedfast
Commit: 8d89c13269e84f1dce92f4b2b4122aa96e570362 (xamarin/md-addins)
Included in Commit: e877ce0dd6e99066b45c87609b2a3e7b9d43b6e1 (mono/monodevelop)
Comment 3 Jeffrey Stedfast 2016-04-15 19:16:21 UTC
I think the problem is the isStreaming property of each assetpack in the AssetPackManifest.plist file...

When embedding, Xcode seems to set the value to `0` while we just always set it to `YES`.

I've fixed the code to set it to `0` when embedding and `1` when not (which is what Xcode does).
Comment 4 Oleg Demchenko 2016-04-18 20:50:04 UTC
It worked, thanks Jeff!

Verified with XS Version 6.0 (build 5058)
Comment 5 Oleg Demchenko 2016-04-25 21:22:12 UTC
*** Bug 40648 has been marked as a duplicate of this bug. ***
Comment 6 xamarin-release-manager 2016-05-02 21:33:22 UTC
Fixed in version (cycle7-android-n)

Author: Jeffrey Stedfast
Commit: 8d89c13269e84f1dce92f4b2b4122aa96e570362 (xamarin/md-addins)
Included in Commit: 0ef77f9ba3302af9b11097b9b3747a7bc0416c6c (mono/monodevelop)