Xamarin Release Build code zero length files

IvanColeIvanCole USMember ✭✭

I recently installed Visual Studio 2017 that now includes Xamarin. I have a Microsoft Dynamics 365 Retail Consumer App that I have configured to deploy. I can successfully run in the emulator. however when I change to release in order to create the build to deploy the ios file is zero length. I am getting these two error in the build output.

1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(700,3): warning : Aot files could not be copied to the destination directory /Users/ICole/Library/Caches/Xamarin/mtbs/builds/ShoppingApp.iOS/22db7c2c1b75d2035f2501d786a13157/obj/iPhone/Release/mtouch-cache/64/Build/Msym/Msym/tmp: Could not start process.
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(700,3): warning : Aot files could not be copied to the destination directory /Users/ICole/Library/Caches/Xamarin/mtbs/builds/ShoppingApp.iOS/22db7c2c1b75d2035f2501d786a13157/obj/iPhone/Release/mtouch-cache/32/Build/Msym/Msym/tmp: Could not start process.

The build completes successfully but the output files are all zero length.

Any idea of what could be causing that?

Thanks for any help or ideas.

Ivan

Posts

  • JGoldbergerJGoldberger USMember, Forum Administrator, Xamarin Team, University Xamurai

    Can you provide your version info for both VS and Xamarin Studio on the Mac?

    Version Information
    In Xamarin Studio (Mac), version information can be obtained by navigating to: Xamarin Studio -> About Xamarin Studio -> Show Details -> Copy Information button.
    In Visual Studio, version information can be copied from: Help -> About Microsoft Visual Studio -> Copy Info button.

    It may be an issue of having XCode 8.3 (latest update) while Xamarin for VS does not support XCode 8.3 unless you manually install an update. See: https://releases.xamarin.com/technical-bulletin-xcode-8-3-support-for-vs-2017/

    Edit: Looks like that changed today so you do not have to do the manual update, but rather update via the Tools > Extensions and Updates menu.

  • IvanColeIvanCole USMember ✭✭

    Attached in the word doc are the version details. Looks like there is an update ready for VS2017. I will install that and see if it works. Thanks Ivan

  • IvanColeIvanCole USMember ✭✭

    Updating VS2017 did not solve the issue. Still same effect. Build completed but zero length app file. Any other suggestions?

  • IvanColeIvanCole USMember ✭✭

    Here is the build output. Again, debug works fine.

    1>------ Build started: Project: ShoppingApp.iOS, Configuration: Release iPhone ------
    1> Generated session id: 22db7c2c1b75d2035f2501d786a13157
    1> Generated build app name: ShoppingApp.iOS
    1> Connecting to Mac server D365Mac.local....
    1> No way to resolve conflict between "System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "System.Runtime.Serialization, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes". Choosing "System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" arbitrarily.
    1> ShoppingApp.iOS -> C:\RetailSDK\Code\SampleExtensions\ShoppingApp\iOS\bin\iPhone\Release\Contoso.ShoppingApp.iOS.exe
    1> Detected signing identity:
    1> Code Signing Key: "iPhone Distribution: UXC Eclipse USA, Inc. (3T48244XBM)" (140A736A3FAF739F8699FB92C19D19BEC51DF45F)
    1> Provisioning Profile: "NYRecD365Demo" (020ef8ef-4bb5-4b5f-8244-4493242e791d)
    1> Bundle Id: com.uxceclipse.nyrecd365demo
    1> App Id: 3T48244XBM.com.uxceclipse.nyrecd365demo
    1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(709,3): warning : Aot files could not be copied to the destination directory /Users/ICole/Library/Caches/Xamarin/mtbs/builds/ShoppingApp.iOS/22db7c2c1b75d2035f2501d786a13157/obj/iPhone/Release/mtouch-cache/64/Build/Msym/Msym/tmp: Could not start process.
    1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(709,3): warning : Aot files could not be copied to the destination directory /Users/ICole/Library/Caches/Xamarin/mtbs/builds/ShoppingApp.iOS/22db7c2c1b75d2035f2501d786a13157/obj/iPhone/Release/mtouch-cache/32/Build/Msym/Msym/tmp: Could not start process.
    1> warning: no debug symbols in executable (-arch armv7)
    1> warning: no debug symbols in executable (-arch arm64)
    1> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: removing global symbols from a final linked no longer supported. Use -exported_symbols_list at link time when building: /Users/ICole/Library/Caches/Xamarin/mtbs/builds/ShoppingApp.iOS/22db7c2c1b75d2035f2501d786a13157/bin/iPhone/Release/Contoso.ShoppingApp.iOS.app/Contoso.ShoppingApp.iOS (for architecture armv7)
    1> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: changes being made to the file will invalidate the code signature in: /Users/ICole/Library/Caches/Xamarin/mtbs/builds/ShoppingApp.iOS/22db7c2c1b75d2035f2501d786a13157/bin/iPhone/Release/Contoso.ShoppingApp.iOS.app/Contoso.ShoppingApp.iOS (for architecture armv7)
    1> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: removing global symbols from a final linked no longer supported. Use -exported_symbols_list at link time when building: /Users/ICole/Library/Caches/Xamarin/mtbs/builds/ShoppingApp.iOS/22db7c2c1b75d2035f2501d786a13157/bin/iPhone/Release/Contoso.ShoppingApp.iOS.app/Contoso.ShoppingApp.iOS (for architecture arm64)
    1> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: changes being made to the file will invalidate the code signature in: /Users/ICole/Library/Caches/Xamarin/mtbs/builds/ShoppingApp.iOS/22db7c2c1b75d2035f2501d786a13157/bin/iPhone/Release/Contoso.ShoppingApp.iOS.app/Contoso.ShoppingApp.iOS (for architecture arm64)
    1> /Users/ICole/Library/Caches/Xamarin/mtbs/builds/ShoppingApp.iOS/22db7c2c1b75d2035f2501d786a13157/bin/iPhone/Release/Contoso.ShoppingApp.iOS.app: replacing existing signature
    1> /Users/ICole/Library/Caches/Xamarin/mtbs/builds/ShoppingApp.iOS/22db7c2c1b75d2035f2501d786a13157/bin/iPhone/Release/Contoso.ShoppingApp.iOS.app: signed app bundle with Mach-O universal (armv7 arm64) [com.uxceclipse.nyrecd365demo]
    1> bin/iPhone/Release/Contoso.ShoppingApp.iOS.app: valid on disk
    1> bin/iPhone/Release/Contoso.ShoppingApp.iOS.app: satisfies its Designated Requirement
    1> bin/iPhone/Release/Contoso.ShoppingApp.iOS.app: explicit requirement satisfied
    ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

  • JGoldbergerJGoldberger USMember, Forum Administrator, Xamarin Team, University Xamurai

    @IvanCole

    Did you update XCode to XCode 8.3? You should now have the updates with XCode 8.3 support (which means XCode 8.2.1 will no longer work and that version is shown in the version info for Xamarin Studio that you sent earlier).

  • IvanColeIvanCole USMember ✭✭

    I did update today. How can I verify each side has the right version? I am still getting the same issue. Could this be a separate issue with the distribution profile? I tried to create a new one today as well. What other reasons would there be for zero length build files?

    Thanks for trying to help

    Ivan

  • JGoldbergerJGoldberger USMember, Forum Administrator, Xamarin Team, University Xamurai
    edited April 2017

    @IvanCole

    Can you post your current full version info (preferably as a text file rather than an Word doc)?

    Version Information
    In Xamarin Studio (Mac), version information can be obtained by navigating to: Xamarin Studio -> About Xamarin Studio -> Show Details -> Copy Information button.

    In Visual Studio, version information can be copied from: Help -> About Microsoft Visual Studio -> Copy Info button.

  • IvanColeIvanCole USMember ✭✭

    Here is the VS Studio on Windows Info. I'll get the mac side first thing tomorrow.

    Visual Studio 2017 on Windows 10

    Microsoft Visual Studio Enterprise 2017
    Version 15.0.26228.12 D15RTWSVC
    Microsoft .NET Framework
    Version 4.6.01586

    Installed Version: Enterprise

    Architecture Diagrams and Analysis Tools 00369-60000-00001-AA185
    Microsoft Architecture Diagrams and Analysis Tools

    Visual Basic 2017 00369-60000-00001-AA185
    Microsoft Visual Basic 2017

    Visual C# 2017 00369-60000-00001-AA185
    Microsoft Visual C# 2017

    Visual C++ 2017 00369-60000-00001-AA185
    Microsoft Visual C++ 2017

    Visual F# 4.1 00369-60000-00001-AA185
    Microsoft Visual F# 4.1

    ASP.NET and Web Tools 2017 15.0.30223.0
    ASP.NET and Web Tools 2017

    ASP.NET Web Frameworks and Tools 2017 5.2.50127.0
    For additional information, visit https://www.asp.net/

    Azure App Service Tools v3.0.0 15.0.30209.0
    Azure App Service Tools v3.0.0

    Azure Data Lake Node 1.0
    This package contains the Data Lake integration nodes for Server Explorer.

    Azure Data Lake Tools for Visual Studio 2.2.5000.0
    Microsoft Azure Data Lake Tools for Visual Studio

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

    Fabric.DiagnosticEvents 1.0
    Fabric Diagnostic Events

    JavaScript Language Service 2.0
    JavaScript Language Service

    JavaScript Project System 2.0
    JavaScript Project System

    JavaScript UWP Project System 2.0
    JavaScript UWP Project System

    KofePackagePackage Extension 1.0
    KofePackagePackage Visual Studio Extension Detailed Info

    Merq 1.1.13-alpha (2f64b6d)
    Command Bus, Event Stream and Async Manager for Visual Studio extensions.

    Microsoft Azure Hive Query Language Service 2.2.5000.0
    Language service for Hive query

    Microsoft Azure Tools 2.9
    Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.50131.1

    Microsoft MI-Based Debugger 1.0
    Provides support for connecting Visual Studio to MI compatible debuggers

    Microsoft Visual Studio VC Package 1.0
    Microsoft Visual Studio VC Package

    Mono Debugging for Visual Studio Mono.Debugging.VisualStudio
    Support for debugging Mono processes with Visual Studio.

    Node.js Tools 1.3.50201.08
    Adds support for developing and debugging Node.js apps in Visual Studio

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

    Office Developer Tools for Visual Studio 2017 ENU 15.0.26112
    Microsoft Office Developer Tools for Visual Studio 2017 ENU

    Redgate ReadyRoll 1.13.21.2982
    Extend DevOps processes to your SQL Server databases and safely automate database deployments.

    Visit https://www.red-gate.com/readyroll for more information.

    Copyright (C) 2011 Red Gate Software Ltd. All rights reserved.

    This software contains components from Component Owl.
    SQL Server is a registered trademark of Microsoft Corporation.
    Visual Studio is a registered trademark of Microsoft Corporation.

    ReadyRoll contains code from the following open source software:

    NuGet https://www.nuget.org/
    SQL LocalDB Wrapper https://github.com/martincostello/sqllocaldb
    Autofac https://autofac.org/
    Json.NET https://json.net/
    MahApps.Metro http://mahapps.com/
    SemVer https://github.com/maxhauser/semver
    Menees Diff Controls http://www.menees.com/
    Log4Net http://logging.apache.org/log4net/
    Extended WPF Toolkit https://wpftoolkit.codeplex.com/
    Code InfoBox VSX http://www.codeproject.com/Articles/55196/Code-InfoBox-Visual-Studio-Extension-VSX
    OctoPack https://github.com/OctopusDeploy/OctoPack
    SQLite https://sqlite.org/

    This product contains icons from http://www.visualpharm.com distributed under a free backlink license.

    For license details or other notices relating to the above software, please see NOTICE.TXT and EULA.rtf in the ReadyRoll application folder.

    Redgate SQL Prompt 7.4.1.596
    Write, format, and refactor SQL effortlessly

    Redgate SQL Search 2.3.10.1131
    Search functionality for SQL Server databases, from within Visual Studio

    SQL Server Data Tools 15.1.61702.140
    Microsoft SQL Server Data Tools

    ToolWindowHostedEditor 1.0
    Hosting json editor into a tool window

    TypeScript 2.1.5.0
    TypeScript tools for Visual Studio

    Visual Studio Tools for Apache Cordova 15.113.6201.1
    Visual Studio Tools for Apache Cordova

    Visual Studio Tools for Universal Windows Apps 15.0.26228.00
    The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

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

    Xamarin 4.3.0.795 (aece090)
    Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

    Xamarin.Android SDK 7.1.0.43 (3a62f1e)
    Xamarin.Android Reference Assemblies and MSBuild support.

    Xamarin.iOS and Xamarin.Mac SDK 10.6.0.9 (a05f40e)
    Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

  • IvanColeIvanCole USMember ✭✭

    Below is the Xamarin Studio Help About Content

    === Xamarin Studio Community ===

    Version 6.2.1 (build 3)
    Installation UUID: 5bbf301d-6c49-4073-9fa2-8203ea1b3d0c
    Runtime:
    Mono 4.8.0 (mono-4.8.0-branch/8f6d0f6) (64-bit)
    GTK+ 2.24.23 (Raleigh theme)

    Package version: 408000520
    

    === NuGet ===

    Version: 3.5.0.0

    === Xamarin.Profiler ===

    Version: 1.2.1
    Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

    === Apple Developer Tools ===

    Xcode 8.3 (12169)
    Build 8E162

    === Xamarin.Mac ===

    Version: 3.0.0.398 (Xamarin Studio Community)

    === Xamarin.Android ===

    Version: 7.1.0.43 (Xamarin Studio Community)
    Android SDK: /Users/ICole/Library/Developer/Xamarin/android-sdk-macosx
    Supported Android versions:
    6.0 (API level 23)

    SDK Tools Version: 25.1.2
    SDK Platform Tools Version: 24.0.0
    SDK Build Tools Version: 23.0.2

    Java SDK: /usr
    java version "1.8.0_101"
    Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
    Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

    Android Designer EPL code available here:
    https://github.com/xamarin/AndroidDesigner.EPL

    === Xamarin Android Player ===

    Not Installed

    === Xamarin Inspector ===

    Version: 1.2.0
    Hash: 62c17e6
    Branch: d15-1
    Build date: Mon, 20 Mar 2017 02:36:23 GMT

    === Xamarin.iOS ===

    Version: 10.6.0.10 (Xamarin Studio Community)
    Hash: e66c6f19
    Branch: xcode8.3
    Build date: 2017-03-28 00:48:33-0400

    === Build Information ===

    Release ID: 602010003
    Git revision: 5217903c99e9d9c5d3caa2498fd66d607debac29
    Build date: 2017-03-23 12:36:46-04
    Xamarin addins: 2c96d252b353fce2e8b8fd20884eee70c16c7f32
    Build lane: monodevelop-lion-cycle9

    === Operating System ===

    Mac OS X 10.12.3
    Darwin D365Mac.local 16.4.0 Darwin Kernel Version 16.4.0
    Thu Dec 22 22:53:21 PST 2016
    root:xnu-3789.41.3~3/RELEASE_X86_64 x86_64

  • JGoldbergerJGoldberger USMember, Forum Administrator, Xamarin Team, University Xamurai
    edited April 2017

    Version info looks good.

    Is the .app file zero bytes on the Windows machine only? Have you checked the .app file on the Mac build host? It should be at path:

    ~/Library/Caches/Xamarin/mtbs/appName/GUID/bin/[iPhone|iPhoneSimulator]/Release

    Note that the ~/Library folder is hidden by default in Finder, so if need be use Finder's Go->Go to Folder menu and enter ~/Library/Caches/Xamarin/mtbs to open the folder.

  • IvanColeIvanCole USMember ✭✭

    I still don't know why I can build a release. Those files are still zero length. But I was able to create the .app file using AdHoc with my Distribution Profile. This link/conversation led me down the AdHoc path

    https://forums.xamarin.com/discussion/comment/135076#Comment_135076

    the file gets created in the root of the \bin\iPhone\Ad-Hoc folder

  • SachinPatelSachinPatel USMember

    Does anyone has luck with resolving the issue?

  • IvanColeIvanCole USMember ✭✭

    In the end I got on with Apple Developer Support. It was hard to get them to take notice but they actually came through and did not ignore my complaints via a case I used from our Apple Developer Support account. We concluded that the free account that is automatically created when you access from within XCode was getting associated with the build and not the actual Apple Developer Account that had the proper access to the distribution profile. We re-created a distribution profile and then it built correctly. I asked Apple Developer support to remove the free one so I don't have the problem again. Only they have access to see and maintain these accounts, not us as users. They admitted that there are areas where we can get into trouble. They need to make it easier. It will still be misleading when the build appears to complete but without a deployment file generated. But the problem essentially was that the build was not properly associated with the distribution profile.

Sign In or Register to comment.