Bug 22137 - imposible to build 64bit app. Incorrect permissions on Xamarin.iOS.dll(.mdb)
Summary: imposible to build 64bit app. Incorrect permissions on Xamarin.iOS.dll(.mdb)
Status: VERIFIED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: master
Hardware: Macintosh Mac OS
: High blocker
Target Milestone: 7.4.0
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-08-15 17:23 UTC by Rustam Zaitov
Modified: 2014-08-27 08:26 UTC (History)
5 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:
VERIFIED FIXED

Description Rustam Zaitov 2014-08-15 17:23:12 UTC
During compilation:
/Users/rzaitov/Projects/private-samples/ios8/PhotoFilter/PhotoFilterExtension: Error MT1009: Could not copy the assembly '/Developer/MonoTouch/usr/lib/64bits/Xamarin.iOS.dll' to '/Users/rzaitov/Projects/private-samples/ios8/PhotoFilter/PhotoFilterExtension/obj/iPhoneSimulator/Debug/mtouch-cache/PreBuild/Xamarin.iOS.dll': Access to the path "/Developer/MonoTouch/usr/lib/64bits/Xamarin.iOS.dll.mdb" or "/Users/rzaitov/Projects/private-samples/ios8/PhotoFilter/PhotoFilterExtension/obj/iPhoneSimulator/Debug/mtouch-cache/PreBuild/Xamarin.iOS.dll.mdb" is denied. (MT1009) (PhotoFilterExtension)

when I browse /Developer/MonoTouch/usr/lib/64bits/ like this:
$ ls -al
drwxr-xr-x   4 guest    wheel      136 Aug 16 01:19 .
drwxr-xr-x  12 rzaitov  admin      408 Aug 16 01:19 ..
-rwxr-xr-x   1 guest    wheel  8958976 Aug 15 07:33 Xamarin.iOS.dll
-rw-------   1 guest    wheel  2747645 Aug 15 07:33 Xamarin.iOS.dll.mdb

After I play with chown chgrp and chmod – all is ok.
So looks like permissions is incorrect.

About XS:https://gist.github.com/rzaitov/49ae025d286639bdfe10
Comment 2 GouriKumari 2014-08-19 16:32:09 UTC
This issue is happening with iOS8-7.4.0 builds but not with 7.4.0 builds.

Build Log: https://gist.github.com/GouriKumari/265dddab1b7a192c90d0
Build:c944f19346bc1ccb73f278fb1bae1d98a63d628e
Comment 3 GouriKumari 2014-08-19 16:39:56 UTC
Updates to comment #2:
https://bugzilla.xamarin.com/show_bug.cgi?id=21474 . This is a bug similar to one reported fixed by rolf.
Comment 4 Rustam Zaitov 2014-08-20 13:43:24 UTC
Yes. I need to run
$ chmod 666 <path to dll and mdb>
to make this work

monotouch from ios8+7.4.0
About XS: https://gist.github.com/rzaitov/7995588085d01436aab1
Comment 5 GouriKumari 2014-08-21 10:22:15 UTC
Updates to Comment #3:

Permission issue reported in this bug is causing build failures in all unified api unit tests in QA XI iOS8-7.4.0 builds. Until this issue is fixed we won't be able to get results  Unified API unit tests for device for these builds. 

Build Error Log: https://wrench.internalx.com/Wrench/WebServices/Download.aspx?workfile_id=3302076
Comment 6 Sebastien Pouliot 2014-08-22 16:24:59 UTC
Fixed in master / 4d4fc7121199cefdd16089ee5c0e9e7b02ec3c57

Backport to 7.4.0 requested (and it will flow into ios8-7.4.0 in the next merge).
Comment 7 Sebastien Pouliot 2014-08-25 13:52:57 UTC
Backported in monotouch-7.4.0-branch / 326547f28e612fdcb2022619b110ee341c4f7068
Comment 8 Mohit Kheterpal 2014-08-26 06:23:18 UTC
To verify this issue, I have tried to reproduce this issue with monotouch-samples-magic-types using X.iOS 7.4.0.104 but unable to reproduce it.

Could you please provide test sample and build info so that I can reproduce this issue at my end and then verify it ?

Thanks
Comment 9 Rustam Zaitov 2014-08-26 13:36:52 UTC
Mohit can you provide About XS info? Looks like this issue is fixed.
Comment 10 Mohit Kheterpal 2014-08-26 13:45:21 UTC
XS details : 

=== Xamarin Studio ===

Version 5.3 (build 435)
Installation UUID: 449f40dd-b3f1-4028-9a6b-cca0d1a2307d
Runtime:
	Mono 3.8.0 ((no/62a857e)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 308000007

=== Apple Developer Tools ===

Xcode 5.1.1 (5085)
Build 5B1008

=== Xamarin.iOS ===

Version: 7.4.0.108 (Enterprise Edition)
Hash: 77efa3f
Branch: 
Build date: 2014-08-26 07:59:55-0400

=== Xamarin.Android ===

Version: 4.16.0 (Enterprise Edition)
Android SDK: /Users/360logicaxamarinmacmini/Desktop/android-sdk-macosx_AndÃsdk
	Supported Android versions:
		1.6    (API level 4)
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		3.2    (API level 13)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		4.5    (API level 21)
Java SDK: /usr
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

=== Xamarin.Mac ===

Version: 1.10.0.10 (Enterprise Edition)

=== Build Information ===

Release ID: 503000435
Git revision: 1e0c5fa7482a0356a71dfa469a3f71f5478a4660
Build date: 2014-08-25 12:17:42-04
Xamarin addins: 69708b283b171ea053d0edfbf09d98457d21fbee

=== Operating System ===

Mac OS X 10.8.4
Darwin 360Logicas-Mac-mini.local 12.4.0 Darwin Kernel Version 12.4.0
    Sun Mar 10 18:01:10 PDT 2013
    root:xnu-2050.24.6~1/RELEASE_X86_64 x86_64
Comment 11 Rustam Zaitov 2014-08-26 16:53:19 UTC
7.4.0.108 is old.
But this issue is resolved, so there is no need to confirm issue
Comment 12 PJ 2014-08-26 17:40:13 UTC
Rustam 7.4.0 is the latest build of 7.4.0, and the patch was applied there (see comment 7). Can you help verify with that build?
Comment 13 Rustam Zaitov 2014-08-27 08:26:21 UTC
I took 7.99.4.59 build from ios8-7.4.0 branch and now I am able to build app with unified API
Because of this I change status to Verified Fixed