Bug 44049 - MTOUCH: Error MT3001: Could not AOT the assembly MobileFirst.iOS.JSONStore.dll
Summary: MTOUCH: Error MT3001: Could not AOT the assembly MobileFirst.iOS.JSONStore.dll
Status: RESOLVED DUPLICATE of bug 43689
Alias: None
Product: iOS
Classification: Xamarin
Component: Mono runtime / AOT compiler ()
Version: XI 9.99 (iOS 10 previews)
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: David Humphreys
URL:
Depends on:
Blocks:
 
Reported: 2016-09-07 11:37 UTC by martink
Modified: 2016-09-08 09:50 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Build Output (1.28 MB, text/plain)
2016-09-07 11:37 UTC, martink
Details


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 DUPLICATE of bug 43689

Description martink 2016-09-07 11:37:13 UTC
Created attachment 17359 [details]
Build Output

Using the IBM MobileFirst SDK 8.0.0.1 Xamarin Component (https://components.xamarin.com/view/ibm-worklight), getting the following AOT error when doing a DEBUG build: MTOUCH: Error MT3001: Could not AOT the assembly '<redacted>/obj/iPhone/Debug/build-iphone7.2-9.3.5/mtouch-cache/Build/MobileFirst.iOS.JSONStore.dll' (MT3001)

Have attached the verbose build output.
Comment 1 martink 2016-09-07 11:37:30 UTC
=== Xamarin Studio Community ===

Version 6.0.2 (build 73)
Installation UUID: 86bc631f-7e05-4ead-b4be-4966908960fd
Runtime:
	Mono 4.4.2 (mono-4.4.0-branch-c7sr1/f72fe45) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 404020011

=== Xamarin.Profiler ===

Not Installed

=== Xamarin.Android ===

Version: 6.1.2.21 (Xamarin Studio Community)
Android SDK: /Users/mrtnkrstn/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		6.0 (API level 23)

SDK Tools Version: 25.1.7
SDK Platform Tools Version: 24.0.1
SDK Build Tools Version: 23.0.2

Java SDK: /usr
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Xamarin Android Player ===

Not Installed

=== Apple Developer Tools ===

Xcode 7.3.1 (10188.1)
Build 7D1014

=== Xamarin.Mac ===

Not Installed

=== Xamarin.iOS ===

Version: 9.8.2.22 (Xamarin Studio Community)
Hash: f37444a
Branch: cycle7-sr1
Build date: 2016-07-28 12:17:02-0400

=== Build Information ===

Release ID: 600020073
Git revision: a6f7a24a9723a2d4f5d33c176615b0d44703ab5b
Build date: 2016-07-26 13:36:15-04
Xamarin addins: f5acb37866a0141bc5ddbe95118f18dae4014568
Build lane: monodevelop-lion-cycle7-sr1

=== Operating System ===

Mac OS X 10.11.6
Darwin qhawess-iphone.za01.t-systems.com 15.6.0 Darwin Kernel Version 15.6.0
    Mon Aug 29 20:21:34 PDT 2016
    root:xnu-3248.60.11~1/RELEASE_X86_64 x86_64
Comment 2 Rodrigo Kumpera 2016-09-07 22:34:12 UTC
Hi Martin,

A closer look at the error log suggests that the problem is the following:

		Undefined symbols for architecture arm64:
		  "_JSONSTORE_ANALYTICS_PACKAGE", referenced from:
		      -[JSONStoreMigrationManager checkForUpgrade] in IBMMobileFirstPlatformFoundationJSONStore.a(JSONStoreMigrationManager.o)
		      -[JSONStore openCollections:withOptions:error:] in IBMMobileFirstPlatformFoundationJSONStore.a(JSONStore.o)
		      -[JSONStore closeAllCollectionsAndReturnError:] in IBMMobileFirstPlatformFoundationJSONStore.a(JSONStore.o)
		      -[JSONStore changeCurrentPassword:withNewPassword:forUsername:error:] in IBMMobileFirstPlatformFoundationJSONStore.a(JSONStore.o)
		      -[JSONStore destroyWithUsername:error:] in IBMMobileFirstPlatformFoundationJSONStore.a(JSONStore.o)
		      -[JSONStore destroyDataAndReturnError:] in IBMMobileFirstPlatformFoundationJSONStore.a(JSONStore.o)
		      -[JSONStore startTransactionAndReturnError:] in IBMMobileFirstPlatformFoundationJSONStore.a(JSONStore.o)
		      ...


This suggests it's a bug on MobileFirst.iOS.JSONStore.dll and not on Xamarin.iOS itself.

We don't maintain that library so you'd need to reach out to IBM for them to sort out this issue.
Comment 3 Rodrigo Kumpera 2016-09-08 01:29:41 UTC
Reopening and assigning to David, as he can be of more us than me.
Comment 4 martink 2016-09-08 07:45:19 UTC
Issue has been solved by unchecking "Enable incremental builds" as discussed in https://bugzilla.xamarin.com/show_bug.cgi?id=41999
Comment 5 Rolf Bjarne Kvinge [MSFT] 2016-09-08 09:50:16 UTC

*** This bug has been marked as a duplicate of bug 43689 ***