Bug 39250 - crash when using icloud in dev mode
Summary: crash when using icloud in dev mode
Status: RESOLVED ANSWERED
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: Other ()
Version: 2.7.0
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Chris Hamons
URL:
Depends on:
Blocks:
 
Reported: 2016-03-01 14:40 UTC by renan jegouzo
Modified: 2016-03-05 16:39 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 renan jegouzo 2016-03-01 14:40:31 UTC
the signature was working well before installing the last xamarin.mac..

Exception Type:        EXC_CRASH (Code Signature Invalid)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY


=== Xamarin Studio ===

Version 6.0 (build 4520)
Installation UUID: 2a46676f-5eb8-4569-9aa7-630cd15bdfc2
Runtime:
	Mono 4.3.2 (mono-4.3.2-branch/ba2e5e4) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 403020467

=== Apple Developer Tools ===

Xcode 7.2.1 (9548.1)
Build 7C1002

=== Xamarin.Mac ===

Version: 2.7.0.334 (Business Edition)

=== Build Information ===

Release ID: 600004520
Git revision: a354b2cb9df4b96f50b0ccb960dbdd5a9155510c
Build date: 2016-02-18 14:52:07-05
Xamarin addins: 8e54979f23feee160d245a3c33e43e77779b1eb4
Build lane: monodevelop-lion-master

=== Operating System ===

Mac OS X 10.11.3
Darwin macbook.home 15.3.0 Darwin Kernel Version 15.3.0
    Thu Dec 10 18:40:58 PST 2015
    root:xnu-3248.30.4~1/RELEASE_X86_64 x86_64
Comment 1 renan jegouzo 2016-03-01 14:42:07 UTC
it's a sandboxed app (icloud)
Comment 2 Chris Hamons 2016-03-03 18:57:40 UTC
I'm glad you were able to test out the alpha build of Xamarin.Mac. There was a bug related to iCloud keys that was fixed after your build was release, that may fix this. 

However, your bug report does not contain an example / steps to reproduce, so I'm unable to validate it.

One thing to note is that you may have invalid strings in your entitlement file, which can cause crashes on launch such as yours. 

One way to check is to open your entitlement.plist file in "Source" mode. At the bottom of the pane (normally middle of screen) you can see "Entitlements and Source" buttons. Or you can use an external test editor.

Since CloudKit, the strings related to iCloud need to prefixed with iCloud. You can try temporarily removing your iCloud keys to see if that "fixes" the crash on launch.

I've also noticed that you appear to have a business license. While you are welcome to file raw bugs, specially in the case of Alpha builds, you are also eligible to open tickets at http://xamarin.com/support. You may want to consider doing that in the future.
Comment 3 renan jegouzo 2016-03-04 16:53:24 UTC
the same entitlements plist is working in my swift test

it still crashing with the last update:
Xamarin.Mac Version: 2.7.0.336 (Business Edition)
Comment 4 renan jegouzo 2016-03-04 17:09:46 UTC
even if I remove all sandbox/icloud parts in the entitlements.plist the app crash
Comment 5 renan jegouzo 2016-03-04 17:34:36 UTC
it works only if I don't sign it
Comment 6 renan jegouzo 2016-03-05 16:39:00 UTC
fixed:
Xamarin.Mac
Version: 2.8.0.42 (Business Edition)