Bug 22933 - AOT error on second app startup
Summary: AOT error on second app startup
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: XI 8.0.0
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: 8.0.0 (iOS 8)
Assignee: Rolf Bjarne Kvinge [MSFT]
: 22787 22971 ()
Depends on:
Reported: 2014-09-12 09:01 UTC by Rustam Zaitov
Modified: 2014-09-18 06:23 UTC (History)
7 users (show)

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:

Description Rustam Zaitov 2014-09-12 09:01:39 UTC
XS: Version 5.4 (build 221)
Xamarin.iOS: Version:

sample: Lister
repo: private-samples
branch: master

Sample contains app extension (Today Extension). Sample compiles fine but on startup I get this:
>>> Failed to load AOT module 'Lister' while running in aot-only mode because a dependency cannot be found or it is out of date.

Build output:

Steps to reproduce:
1. Pull master branch
2. Clean solution
3. Run sample (runs ok)
4. Stop
5. Make minor changes. Like change some string literal
6. Run again (Compiles fine. But on starting app got this error)

Sample needs iCloud entitlements. All Apple's stuff done. You just need add your self to provisioning profile and regenerate it.
Comment 1 Rolf Bjarne Kvinge [MSFT] 2014-09-15 09:14:36 UTC
*** Bug 22971 has been marked as a duplicate of this bug. ***
Comment 2 Rolf Bjarne Kvinge [MSFT] 2014-09-16 09:24:30 UTC

monotouch/master: 445d47634108754983de612c2216b36c0bf044e0
Comment 3 Rolf Bjarne Kvinge [MSFT] 2014-09-16 09:26:05 UTC
monotouch/monotouch-8.2.0-branch: 889097d8d1c41108617bed93f0eba71d05b5cc2b
Comment 4 Rolf Bjarne Kvinge [MSFT] 2014-09-16 11:07:22 UTC
monotouch/monotouch-8.0.0-branch: dd459bdb7b013f464f6e410cd9d7ac8d7e60195b
Comment 5 Rolf Bjarne Kvinge [MSFT] 2014-09-16 12:32:23 UTC
*** Bug 22787 has been marked as a duplicate of this bug. ***
Comment 6 Saurabh 2014-09-17 11:00:37 UTC
I am trying to verify this Issue but I did not get Lister sample in Private-Sample repository. This is the link of the repository where I am looking: https://github.com/xamarin/private-samples. Please let me know where I can get this sample so that I can check this Issue?
Comment 7 PJ 2014-09-17 11:02:18 UTC
It was completed and moved to monotouch-samples. Please find it here: https://github.com/xamarin/monotouch-samples/tree/master/ios8/Lister

Comment 8 Mohit Kheterpal 2014-09-18 06:23:12 UTC
I have checked this issue by following steps mention in bug description and I am successfully able to run application multiple times on simulator and device without any error.

Sample info :monotouch-samples-mastermonotouch-samples/commit/187ade09fecee3442abf1adc19eeb23b1f756b8e

Environment info :
=== Xamarin Studio ===

Version 5.4 (build 239)
Installation UUID: 45555ffd-f3f0-4f29-9543-e369d711ab7d
	Mono 3.8.0 ((no/45d0ba1)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 308000009

=== Apple Developer Tools ===

Xcode 6.0 (6299)
Build 6A313

=== Xamarin.iOS ===

Version: (Enterprise Edition)
Hash: b26679f
Build date: 2014-09-16 12:47:14-0400

=== Xamarin.Android ===

Version: 4.17.0 (Enterprise Edition)
Android SDK: /Users/xamarin77/Desktop/android-sdk-macosx
	Supported Android versions:
		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 ===


=== Build Information ===

Release ID: 504000239
Git revision: 338110385bb89c5774e89ffcb15d8f2039e7fbcd
Build date: 2014-09-16 12:25:53-04
Xamarin addins: 05241f5ab70cf79388a0f113bc6877780ed1024a

=== Operating System ===

Mac OS X 10.9.4
Darwin Xamarin77s-Mac-mini.local 13.3.0 Darwin Kernel Version 13.3.0
    Tue Jun  3 21:27:35 PDT 2014
    root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64