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.
In a new Xamarin Forms Blank (Portable) project, I get errors in either Xamarin Studio on the Mac or VS. I'm using the current Beta channel builds on both.
Error 3 MT1009:Could not copy the assembly '/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll' to '/Users/oren/Library/Caches/Xamarin/mtbs/builds/ZeroconfTestiOS/2cf5fa8c-4a53-4df2-bbb4-44003d8bf9cf/output/temp/mtouch-cache/Link/monotouch.dll': Access to the path "/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll.mdb" or "/Users/oren/Library/Caches/Xamarin/mtbs/builds/ZeroconfTestiOS/2cf5fa8c-4a53-4df2-bbb4-44003d8bf9cf/output/temp/mtouch-cache/Link/monotouch.dll.mdb" is denied.
=== Xamarin Studio ===
Version 5.2 (build 379)
Installation UUID: 0cceceb7-e177-4ebd-8d9a-c2529169bfd0
Mono 3.6.0 ((no/c46cf0e)
GTK+ 2.24.23 (Raleigh theme)
Package version: 306000038
=== Apple Developer Tools ===
Xcode 5.1.1 (5085)
=== Xamarin.iOS ===
Version: 188.8.131.52 (Enterprise Edition)
Build date: 2014-07-13 20:15:09-0400
=== Xamarin.Android ===
Version: 4.14.0 (Enterprise Edition)
Android SDK: /Users/oren/Library/Developer/Xamarin/android-sdk-mac_x86
Supported Android versions:
2.1 (API level 7)
2.2 (API level 8)
2.3 (API level 10)
3.1 (API level 12)
4.0 (API level 14)
4.0.3 (API level 15)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
=== Xamarin.Mac ===
=== Build Information ===
Release ID: 502000379
Git revision: e797f287ff084be87a252fec5fcc1c79c53bd422
Build date: 2014-07-15 03:41:44-04
Xamarin addins: e40cad220f133f3ced5a76d33649afee4d1358c1
=== Operating System ===
Mac OS X 10.9.4
Darwin thor.housenet.novotny.org 13.3.0 Darwin Kernel Version 13.3.0
Tue Jun 3 21:27:35 PDT 2014
This happens with a new Blank iOS project too on XS 5.2 as well, no Xamarin Forms required.
Run on simulator is fine; run on device fails. If I change the project options to link for the simulator it also fails.
Oren, can you check if executing this from a terminal fixes the problem:
sudo chmod 0644 /Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll.mdb
I can reproduce it; it happens when the user who installed monotouch isn't the same as the user who uses it.
The chmod worked and I can build both on XS on the Mac and VS on the PC.
When I looked at the permissions on the file before I changed them, it did indeed look wrong. The user was "localadmin" and group was "wheel," and there were only user rights.
I must have originally installed Xamarin as localadmin; I currently use a different user and installed updates, including the latest beta, with that user acct as it's also an admin.
Why did it become an issue only now though? I never had any issues before. I assume a fix will make it into the next beta/stable?
This has already been fixed internally, but it will not get into the next stable release (7.2.6) since we're too close to the release. It should get into the next one though.
In the meantime the workaround from comment #3 can be used.
Okay, can this workaround be put somewhere more public, like the release notes website?
The release notes for 7.2.6 have been updated.