Bug 43830 - Message Extensions Fail To Launch
Summary: Message Extensions Fail To Launch
Status: RESOLVED ANSWERED
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 9.99 (iOS 10 previews)
Hardware: Macintosh Mac OS
: High major
Target Milestone: Xcode8 (iOS10)
Assignee: Vincent Dondain [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2016-08-29 13:25 UTC by SteveP
Modified: 2016-09-01 11:21 UTC (History)
3 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 SteveP 2016-08-29 13:25:18 UTC
I'm trying to write a Messages Extension, but I can't get it to work on the simulator or device.

I can't even get the Xamarin Ice Cream Sample to work.  It crashes on the simulator with this in the System log:
Aug 29 13:54:38 Steves-MacBook-Pro com.apple.CoreSimulator.SimDevice.D7EA8163-5039-4BE0-9DC0-5A8B46787A92.launchd_sim[12532] (com.xamarin.icecreambuilder.messagesextension[12866]): Service exited due to Trace/BPT trap: 5

Happens with both debug and release builds.

=== Xamarin Studio Business ===

Version 6.1 (build 5365)
Installation UUID: e7085c01-bd5a-483c-b829-47230bb875f0
Runtime:
	Mono 4.6.0 (mono-4.6.0-branch/23c6a4d) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 406000165

=== NuGet ===

Version: 3.4.3.0

=== Xamarin.Profiler ===

Version: 0.33.1
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Apple Developer Tools ===

Xcode 8.0 (11239.2)
Build 8S201h

=== Xamarin.iOS ===

Version: 9.99.4.23 (Xamarin Business)
Hash: f63ecd7
Branch: cycle8
Build date: 2016-08-23 14:45:42-0400

=== Build Information ===

Release ID: 601005365
Git revision: 4fb2e8b3f2042f3be28b370d01f1c8057e993e51
Build date: 2016-08-23 08:54:41-04
Xamarin addins: 60c0f9d8f0eb210499e1f8c6daf4972c10f4663f
Build lane: monodevelop-lion-cycle8

=== Operating System ===

Mac OS X 10.11.6
Comment 1 Sebastien Pouliot 2016-08-29 19:06:45 UTC
@Vincent please have a look if this works for you using your new templates.
Comment 3 Vincent Dondain [MSFT] 2016-09-01 11:21:11 UTC
This issue is not happening with latest XS/XI builds. I can confirm that the new iOS extensions (including the iMessage one) are all working fine.

My guess (and if it's the same issue I had before where the device logs showed `Service exited due to Trace/BPT trap: 5`) is that there should also be a crash report.
In the Mac's Console app check if there are any "User Diagnostic Reports". There you should see some Dyld Error Message with a reason "no suitable image found".

If that's the case then it's fixed in recent Xamarin.iOS. In any case the next builds will fix that (:

Note: here are the builds I'm using as reference

=== Xamarin Studio Enterprise ===

Version 6.1
Installation UUID: 276439ce-67ad-434d-89e9-b46e0bdbc7ce
Runtime:
	Mono 4.6.0 (mono-4.6.0-branch/d0fc1a6) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 406000150

=== Apple Developer Tools ===

Xcode 8.0 (11239.2)
Build 8S201h

=== Xamarin.Mac ===

Version: 2.99.5.6 (Xamarin Enterprise)

=== Xamarin.iOS ===

Version: 9.99.5.6 (Xamarin Enterprise)
Hash: 3428fdc
Branch: xcode8
Build date: 2016-09-01 12:28:08+0200

=== Build Information ===

417d1f94f99d7d7d00c4202cd584b8c7ed527f0d
Xamarin addins: 774241a51831a402e2b4940688000837379794fb

=== Operating System ===

Mac OS X 10.11.6
Darwin MacBook-Pro-2.local 15.6.0 Darwin Kernel Version 15.6.0
    Thu Jun 23 18:25:34 PDT 2016
    root:xnu-3248.60.10~1/RELEASE_X86_64 x86_64