Bug 24421 - Files in the .app bundle in the output folder are empty on Windows
Summary: Files in the .app bundle in the output folder are empty on Windows
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 3.7
Hardware: PC Windows
: Normal normal
Target Milestone: 15.4
Assignee: Emanuel
URL:
Depends on:
Blocks:
 
Reported: 2014-11-10 22:14 UTC by Brendan Zagaeski (Xamarin Team, assistant)
Modified: 2017-08-04 09:37 UTC (History)
14 users (show)

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


Attachments
Ide Log (9.44 KB, application/octet-stream)
2014-11-14 01:48 UTC, Arpit Jha
Details
Attached IDE logs (5.97 KB, application/x-zip-compressed)
2017-08-02 13:41 UTC, Aman Dharwal
Details
Attached IDE logs (5.97 KB, application/x-zip-compressed)
2017-08-03 07:06 UTC, Aman Dharwal
Details
Attached IDE logs (3.69 KB, application/x-zip-compressed)
2017-08-04 09:35 UTC, Aman Dharwal
Details


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 Brendan Zagaeski (Xamarin Team, assistant) 2014-11-10 22:14:50 UTC
Files in the .app bundle in the output folder are empty on Windows


Thanks to the new unified build feature introduced in Xamarin 3.5, the Windows side build folders for Xamarin.iOS projects are starting to look like they contain the output files from the remote build phase.

One loose end in this new setup is that the `.app` folder in the `bin\` directory on Windows only contains empty "dummy" files. These empty files can easily cause confusion for new users. If it isn't on the near future roadmap to implement copying of the complete `.app` folder from the Mac build host back to Windows, then maybe the build process could be altered (at least temporarily) so that it doesn't create a `.app` folder on Windows at all. 


Thanks!


Regression status: new feature in Xamarin 3.5


## Steps to reproduce

1. Open or create a Classic API Xamarin.iOS project in Visual Studio.

2. Build the project in any configuration.


## Result

The build process creates a `.app` folder in the `bin\` output directory, but all the files in it are empty:

> C:\Source\iPhoneApp1\iPhoneApp1\bin\iPhoneSimulator\Debug\iPhoneApp1.app>dir
...
> 11/10/2014  09:25 PM                 0 Default-568h@2x.png
> 11/10/2014  09:25 PM                 0 Info.plist
> 11/10/2014  09:25 PM    <DIR>          MainStoryboard.storyboardc
>                2 File(s)              0 bytes

> C:\Source\iPhoneApp1\iPhoneApp1\bin\iPhoneSimulator\Debug\iPhoneApp1.app>dir MainStoryboard.storyboardc
...
> 11/10/2014  09:25 PM                 0 Info.plist
> 11/10/2014  09:25 PM                 0 UIViewController-vXZ-lx-hvc.nib
> 11/10/2014  09:25 PM                 0 vXZ-lx-hvc-view-kh9-bI-dsS.nib
>                3 File(s)              0 bytes


## Expected result

For now I think it would be fine if the `bin\` folder on Windows didn't contain a `.app` folder at all.

If there are already near term plans to copy the complete `.app` folder from the Mac build host back to Windows, then that would solve the problem too.



## Version information


### Windows

Xamarin   3.7.248.0 (8ca7d11db8a6f874c6cd2de6d9ca0f511867ce91)
Xamarin.Android   4.18.1.3 (5474129af31e9d3a86cb7482c7c5c7a30ad315f1)
Xamarin.iOS   8.4.0.0 (209abebbd8f1a292d042420edb45fa5fbd3f017b)

Microsoft Visual Studio Professional 2013
Version 12.0.30723.00 Update 3
Microsoft .NET Framework
Version 4.5.51641


### Mac build host
Xamarin.iOS 8.4.0.15
Hash: 08968c4
Build date: 2014-10-20 21:48:06-0400

Mono 3.10.0 (detached/e204655)
Xcode 6.0.1 (6528), Build 6A317
Mac OS X 10.9.5
Comment 2 Arpit Jha 2014-11-14 01:48:53 UTC
Created attachment 8739 [details]
Ide Log

I have checked this issue and observed that .app folder have one directory "MainStoryboard.storyboardc" and two files(Default-568h@2x.png image and Info.plist file).
MainStoryboard.storyboardc having three files 
1.Info.plist
2.UIViewController-vXZ-lx-hvc.nib
3.vXZ-lx-hvc-view-kh9-bI-dsS.nib 

I’ll need confirmation from the developer for this enhancement. Leaving as NEW for now.

Screencast : http://www.screencast.com/t/iFk1qcXX

Environmnet Info:
Windows:
Microsoft Visual Studio Professional 2013
Version 12.0.30723.00 Update 3
Microsoft .NET Framework
Version 4.5.53344

Installed Version: Professional
Xamarin   3.7.248.0 (8ca7d11db8a6f874c6cd2de6d9ca0f511867ce91)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   4.18.1.3 (5474129af31e9d3a86cb7482c7c5c7a30ad315f1)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   8.4.0.0 (209abebbd8f1a292d042420edb45fa5fbd3f017b)
Visual Studio extension to enable development for Xamarin.iOS.

Mac build Host
XI 8.4.0.16
Mono:3.10.0
XCode: 6.0.1 
Mac OS X 10.10.
Comment 3 Saurabh 2015-02-16 04:00:27 UTC
I am also getting same behavior as mentioned in this Issue with latest builds. This is the screencast for the same: http://www.screencast.com/t/MLKs8Fcx7b

Microsoft Visual Studio Professional 2013
Version 12.0.31101.00 Update 4
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Professional

LightSwitch for Visual Studio 2013   06177-004-0446016-02238
Microsoft LightSwitch for Visual Studio 2013

Team Explorer for Visual Studio 2013   06177-004-0446016-02238
Microsoft Team Explorer for Visual Studio 2013

Visual Basic 2013   06177-004-0446016-02238
Microsoft Visual Basic 2013

Visual C# 2013   06177-004-0446016-02238
Microsoft Visual C# 2013

Visual C++ 2013   06177-004-0446016-02238
Microsoft Visual C++ 2013

Visual F# 2013   06177-004-0446016-02238
Microsoft Visual F# 2013

Visual Studio 2013 Code Analysis Spell Checker   06177-004-0446016-02238
Microsoft® Visual Studio® 2013 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

Windows Phone SDK 8.0 - ENU   06177-004-0446016-02238
Windows Phone SDK 8.0 - ENU

Application Insights Tools for Visual Studio Package   1.0
Application Insights Tools for Visual Studio

ASP.NET and Web Tools   12.4.51016.0
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Microsoft Azure Websites
Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Microsoft Azure

ASP.NET Web Frameworks and Tools 2012.2   4.1.21001.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.21010.0
For additional information, visit http://www.asp.net/

Common Azure Tools   1.3
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Microsoft Azure Mobile Services Tools   1.3
Microsoft Azure Mobile Services Tools

NuGet Package Manager   2.8.50926.663
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

Office Developer Tools for Visual Studio 2013 ENU   12.0.30626
Microsoft Office Developer Tools for Visual Studio 2013 ENU

PowerShell Tools   1.3
Provides file classification services using PowerShell

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   12.0.41012.0
Microsoft SQL Server Data Tools

Windows Phone 8.1 SDK Integration   1.0
This package integrates the tools for the Windows Phone 8.1 SDK into the menus and controls of Visual Studio.

Workflow Manager Tools 1.0   1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

Xamarin   3.9.325.0 (96e7814)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   4.20.0.34 (49a04b966feb40dfdba49d57ba16249b66d606a6)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   8.6.2.0 (09ae75f83eafce1bdc3fa067f281cbdf1ca7b893)
Visual Studio extension to enable development for Xamarin.iOS.

Xamarin.iOS Unified Migration   1.0
Automated migration for Xamarin iOS Classic projects to Unified
Comment 4 Sasha Fahrenkopf 2015-10-16 11:57:12 UTC
Is there any update to this bug?
Comment 5 Andrew 2015-11-26 21:32:09 UTC
I'd also like to get an update for this bug. We use the .app folder for loading into a Simulator for Xamarin UITest automated testing and it's annoying that we can't just grab the .app folder out of the bin folder on Windows and instead have to retrieve it out of the Xamarin Mac build host cache.
Comment 8 Randy 2016-04-27 20:02:38 UTC
We would like the files copied over to the Windows machine, raw or archived, as our build process uses Jenkins on a Windows box.  The build process creates a `.app` folder in the `bin\` output directory, but all the files in it are empty as stated above.
Comment 9 Jose Gallardo 2016-12-27 23:28:37 UTC
Hi,

One of our main goals is to have a fast iOS build from Windows, and that needs to keep incremental builds working, which requires having the files on Windows as part of the MSBuild input/output logic. The reason those files are empty is because we don't want to slow things down and duplicate space by copying the files from the Mac to windows during the build process, we just replicate the minimum needed to keep things working and as fast as possible.

Then, this behavior is actually a feature, and by design.

That said, we will evaluate if we can provide a way to, at the end of the build, and probably based on a MSBuild property value, we can retrieve the .app content back to a known location on Windows, where it don't interfere with the regular build process.

Moving to TBD for analysis.

Thanks!
Comment 10 Randy 2017-04-18 20:06:51 UTC
Would like to see this implemented as it's a hassle to map a shared drive from the Windows build machine to the Mac.  I have to copy over the .app for our automated test team to use in Appium.  Sometimes the UUID changes and I get old files.  In addition, need to copy the app from the .monotouch-64 directory over.
Comment 11 xamarin-release-manager 2017-07-24 14:14:46 UTC
Fixed in version 4.8.0.64 (master)

Author: Emanuel
Commit: c473e2b5bb4c76a67693721f90e95259ce9af6a8 (xamarin/XamarinVS)
Comment 12 Aman Dharwal 2017-08-02 13:41:15 UTC
I am still able to reproduce this issue with Xamarin  4.8.0.108(Master),the files are still empty under .app folder, hence reopning the issue.

Environment info : 

https://gist.github.com/aman-daharwal/71f919f4267392a1786bc035a560c02f

Screencast link : https://www.screencast.com/t/z12cAEBoD4Zc
Comment 13 Aman Dharwal 2017-08-02 13:41:51 UTC
Created attachment 23983 [details]
Attached IDE logs