xamarin / xamarin-macios

.NET for iOS, Mac Catalyst, macOS, and tvOS provide open-source bindings of the Apple SDKs for use with .NET managed languages such as C#
Other
2.49k stars 515 forks source link

mtouch output not included in msbuild bin logs #7035

Closed spouliot closed 5 years ago

spouliot commented 5 years ago

Likely affect mmp, btouch ... too

Steps to Reproduce

  1. Build a solution - save build logs to file
  2. Build a solution using msbuild binary logs - save binary log to file
  3. Compare output (focus on the MTouch node

Expected Behavior

(nearly) identical outputs

Actual Behavior

mtouch output is not part on the bin log file.

Screen Shot 2019-09-19 at 8 48 25 AM

vs

  Task "MTouch"
    /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mtouch @/Users/poupou/Downloads/Archive-3/Xappy/Xappy.iOS/obj/iPhone/Debug/device-builds/iphone11.6-12.4.1/response-file.rsp -v -v -v -v 
    Provided arguments:
        @/Users/poupou/Downloads/Archive-3/Xappy/Xappy.iOS/obj/iPhone/Debug/device-builds/iphone11.6-12.4.1/response-file.rsp
    Provided arguments:
            --cache=/Users/poupou/Downloads/Archive-3/Xappy/Xappy.iOS/obj/iPhone/Debug/device-builds/iphone11.6-12.4.1/mtouch-cache
            --dev=/Users/poupou/Downloads/Archive-3/Xappy/Xappy.iOS/bin/iPhone/Debug/device-builds/iphone11.6-12.4.1/Xappy.iOS.app
            --executable=Xappy.iOS
            ' --debug'
            ' --sgen-conc'
            ' --linksdkonly'
            --sdkroot=/Applications/Xcode11-GM2.app/Contents/Developer
            --sdk=13.0
            --targetver=8.0
            ' --aot-options=-O=-float32'
            ' --http-message-handler=NSUrlSessionHandler'
            ' --abi=arm64'
            --symbollist=/Users/poupou/Downloads/Archive-3/Xappy/Xappy.iOS/obj/iPhone/Debug/device-builds/iphone11.6-12.4.1/mtouch-symbols.list
            ' --dsym=no'
            -r=/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/mscorlib.dll
            -r=/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/OpenTK-1.0.dll

... a lot being truncated to fit GitHub 64k limit ...

            -  /Applications/Xcode11-GM2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++  -isysroot /Applications/Xcode11-GM2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.0.sdk -Qunused-arguments -miphoneos-version-min=8.0 -arch arm64 -c -o /Users/poupou/Downloads/Archive-3/Xappy/Xappy.iOS/obj/iPhone/Debug/device-builds/iphone11.6-12.4.1/mtouch-cache/arm64/Xamarin.Forms.Maps.iOS.dll.o -x assembler -DDEBUG /Users/poupou/Downloads/Archive-3/Xappy/Xappy.iOS/obj/iPhone/Debug/device-builds/iphone11.6-12.4.1/mtouch-cache/arm64/Xamarin.Forms.Maps.iOS.dll.s
    /Applications/Xcode11-GM2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++  -isysroot /Applications/Xcode11-GM2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.0.sdk -Qunused-arguments -miphoneos-version-min=8.0 -arch arm64 -c -o /Users/poupou/Downloads/Archive-3/Xappy/Xappy.iOS/obj/iPhone/Debug/device-builds/iphone11.6-12.4.1/mtouch-cache/arm64/MaterialComponents.dll.o -x assembler -DDEBUG /Users/poupou/Downloads/Archive-3/Xappy/Xappy.iOS/obj/iPhone/Debug/device-builds/iphone11.6-12.4.1/mtouch-cache/arm64/MaterialComponents.dll.s
    MTOUCH : error MT3001: Could not AOT the assembly '/Users/poupou/Downloads/Archive-3/Xappy/Xappy.iOS/obj/iPhone/Debug/device-builds/iphone11.6-12.4.1/mtouch-cache/3-Build/Xamarin.Forms.Material.dll'
    The command exited with code 1.
  Done executing task "MTouch" -- FAILED.
spouliot commented 5 years ago

This issue was moved to mono/mono#16937