Bug 49388 - Build failure using xbuild or mdtool to build iOS solution
Summary: Build failure using xbuild or mdtool to build iOS solution
Status: RESOLVED ANSWERED
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 10.2 (iOS 10.1)
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-12-08 21:32 UTC by tuan_pham
Modified: 2016-12-09 02:12 UTC (History)
2 users (show)

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

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 ANSWERED

Description tuan_pham 2016-12-08 21:32:46 UTC
I'm getting the following error when running a build via command line, either using xbuild or mdtool:

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets: error : Tool exited with code: 1. Output: mdimport will not import on behalf of root user.  Exiting.

Xamarin Studio 6.1.2
Mono 4.6.2
Xamarin iOS 10.2.1.5
Comment 1 Alex Soto [MSFT] 2016-12-09 02:12:11 UTC
Hello this could be a permissions issue, I would recommend trying the following solution listed on the forums https://forums.xamarin.com/discussion/comment/217210/#Comment_217210

Cheers!