Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
/Projects/ACME Networks/Alpha Xamarin/iOS/MTOUCH: Error MT0008: You should provide one root assembly only, found 3 assemblies: 'Networks/Alpha', 'Xamarin/iOS/obj/iPhoneSimulator/Debug/device-builds/iphone9.1-10.3/Entitlements.xcent/', '/Projects/ACME Networks/Alpha Xamarin/iOS/bin/iPhoneSimulator/Debug/MyNetApp.iOS.exe' (MT0008) (App)
The code at first looks fine: https://github.com/xamarin/xamarin-macios/blob/a4214e9c951c03c0ca60af3990280933da7ae51d/msbuild/Xamarin.iOS.Tasks.Core/Tasks/MTouchTaskBase.cs#L316
but then I realised it's probably a matter of double-quoting, since these values are later added to -gcc_flags.
*** Bug 56494 has been marked as a duplicate of this bug. ***
I tried to reproduce this but I couldn't using the following environment: https://gist.github.com/VincentDondain/91b1d7565cb379f5dbc96aa1996da459
I created a quick test case using folders with spaces like the user: "ACME Networks" and "Alpha Xamarin": https://www.dropbox.com/s/znim69c5x4sqdon/Bug56487.zip?dl=0
Here's my mtouch build log:
@rolf let me know if you tried to repro otherwise I think we'll need more information from the customer.
@Vincent please follow up with the reporter using the link in the description. A full build log should give the required information.
I am able to reproduce - I believe the key here is the Realm NuGets need to be added.
This should do it: https://www.nuget.org/packages/Realm/
Will also upload my diagnostic build log w/ the error.
Created attachment 22206 [details]
Diagnostic Build Log When Error Occurs
--gcc_flags "/"-L/Users/msoucoup/Desktop/Realm Test/packages/Realm.1.2.1/build/../native/ios/universal/" -lrealm-wrappers -lz -framework Security"
^ Like Rolf suspected (in the original description) the issue with double quoting.
Looks like the code is actually correctly escaping the quotes, but msbuild is converting \'s into /'s.
@Ankit: can you look into this? Is the string returned by GenerateCommandLineCommands() modified in any way? Or is the problem even lower level, such as in the runtime?
Oops, forgot to add Ankit to the cc list.
This is fixed on master and d15.3 branch.
*** Bug 58075 has been marked as a duplicate of this bug. ***
=== Visual Studio Community 2017 for Mac (Preview) ===
Version 7.1 Preview (7.1 build 1281)