Bug 53377 - mtouch error about not being able to find libmonosgen-2.0.dylib, while building a XF sample
Summary: mtouch error about not being able to find libmonosgen-2.0.dylib, while buildi...
Status: RESOLVED INVALID
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: master
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-03-15 21:20 UTC by Ankit Jain
Modified: 2017-03-15 21:34 UTC (History)
1 user (show)

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


Attachments
msbuild.log (4.35 MB, application/octet-stream)
2017-03-15 21:21 UTC, Ankit Jain
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 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:
Status:
RESOLVED INVALID

Description Ankit Jain 2017-03-15 21:20:41 UTC
mono-4.8.0-branch/0494d70 Thu Mar  2 21:19:48 EST 2017
XI master/ba3413ce4df70670d6817cb5eb3955d38c896602

I'm trying to build:

https://github.com/xamarin/xamarin-forms-samples/blob/master/Behaviors/EffectBehavior/EffectsDemo.sln

with:

$ msbuild /v:diag /Users/ankit/dev/xamarin-forms-samples//Behaviors/EffectBehavior/EffectsDemo.sln /flp:Verbosity:diag /flp:LogFile=/Users/ankit/dev/msbuild-tests/logs/xamarin-forms-samples.tl/EffectsDemo.sln/xbuild.log /p:CodesignEntitlements= /p:Configuration=Debug /p:Platform=iPhoneSimulator

I get the same error with msbuild and xbuild.

=====
MTOUCH : warning MT0078: Incremental builds are enabled with a deployment target < 8.0 (currently 7.0). This is not supported (the resulting application will not launch on iOS 9), so the deployment target will be set to 8.0. [/Users/ankit/dev/xamarin-forms-samples/Behaviors/EffectBehavior/iOS/EffectsDemo.iOS.csproj
]
MTOUCH : error MT0000: Unexpected error - Please file a bug report at http://bugzilla.xamarin.com [/Users/ankit/dev/xamarin-forms-samples/Behaviors/EffectBehavior/iOS/EffectsDemo.iOS.csproj]
  System.IO.FileNotFoundException: /Users/ankit/dev/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/SDKs/MonoTouch.iphonesimulator.sdk/usr/lib/libmonosgen-2.0.dylib does not exist
  File name: '/Users/ankit/dev/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/SDKs/MonoTouch.iphonesimulator.sdk/usr/lib/libmonosgen-2.0.dylib'
    at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, System.Boolean overwrite) [0x001bd] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/File.cs:109
    at Xamarin.Bundler.Application.CopyFile (System.String source, System.String target) [0x0004f] in /Users/ankit/dev/xamarin-macios/tools/common/Application.cs:359
    at Xamarin.Bundler.Application.UpdateFile (System.String source, System.String target, System.Boolean check_contents) [0x00010] in /Users/ankit/dev/xamarin-macios/tools/common/Application.cs:287
    at Xamarin.Bundler.Application.BuildFinalExecutable () [0x00053] in /Users/ankit/dev/xamarin-macios/tools/mtouch/Application.cs:1071
    at Xamarin.Bundler.Application.Build () [0x00072] in /Users/ankit/dev/xamarin-macios/tools/mtouch/Application.cs:557
    at Xamarin.Bundler.Driver.Main2 (System.String[] args) [0x00513] in /Users/ankit/dev/xamarin-macios/tools/mtouch/mtouch.cs:1435
    at Xamarin.Bundler.Driver.Main (System.String[] args) [0x0000f] in /Users/ankit/dev/xamarin-macios/tools/mtouch/mtouch.cs:949
  Tool /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mtouch execution finished.
  Output Property: _CompiledArchitectures=i386
Done executing task "MTouch" -- FAILED.
=====

Diag logs from xbuild and msbuild are attached.
Comment 1 Ankit Jain 2017-03-15 21:21:07 UTC
Created attachment 20368 [details]
msbuild.log
Comment 2 Ankit Jain 2017-03-15 21:34:35 UTC
It was my mistake. You need to `make install` before `make install-system`!