Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
I have made Bindings iOS library (StarIOSDK in attached solution). The particular library builds successfully. But when I'm trying to build iOS project (StarIOTest in attached solution) for iPhone, I get MT3001 error with description:
"/Users/andreyfilyakov/Dev/StarIOSDKTest/StarIOSDKTest/MTOUCH: Error MT3001: Could not AOT the assembly '/Users/andreyfilyakov/Dev/StarIOSDKTest/StarIOSDKTest/obj/iPhone/Debug/build-iphone5.4-9.2.1/mtouch-cache/Build/StarIOSDK.dll' (MT3001) (StarIOSDKTest)"
When I'm trying to build iOS project for iPhoneSimulator, the project builds successfully.
For more details see solution in attachment.
URL for downloading test project (the project is too big for attachments):
@Zoltan, this happens with C7 too.
AOT Compilation exited with code 134, command:
MONO_PATH=/Users/poupou/Downloads/StarIOSDKTest/StarIOSDKTest/obj/iPhone/Debug/build-iphone8.2-9.2.1/mtouch-cache/Build /Users/poupou/git/c7/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/bin/arm64-darwin-mono-sgen --debug -O=gsharedvt -O=float32 --aot=mtriple=arm64-ios,data-outfile=/Users/poupou/Downloads/StarIOSDKTest/StarIOSDKTest/obj/iPhone/Debug/build-iphone8.2-9.2.1/mtouch-cache/StarIOSDK.arm64.aotdata,static,asmonly,direct-icalls,full,soft-debug,dwarfdebug,no-direct-calls,outfile=/Users/poupou/Downloads/StarIOSDKTest/StarIOSDKTest/obj/iPhone/Debug/build-iphone8.2-9.2.1/mtouch-cache/StarIOSDK.dll.arm64.s "/Users/poupou/Downloads/StarIOSDKTest/StarIOSDKTest/obj/iPhone/Debug/build-iphone8.2-9.2.1/mtouch-cache/Build/StarIOSDK.dll"
Mono Ahead of Time compiler - compiling assembly /Users/poupou/Downloads/StarIOSDKTest/StarIOSDKTest/obj/iPhone/Debug/build-iphone8.2-9.2.1/mtouch-cache/Build/StarIOSDK.dll
Structure field of type Byte can't be marshalled as LPArray
@Andrey we should not report this as a general MT3001 error but your bindings are incorrect. Each of your structures have something like:
> public uint rawLength;
> public byte raw;
There's not enough data to marshal this, e.g.
> [MarshalAs(UnmanagedType.LPArray, SizeConst = XXX)]
but as the size is not known (at build time) you better define your structures with an `IntPtr`, e.g.
> public uint rawLength;
> public IntPtr raw;
That will make the MT3001 error go away (but you have other issues as some native ObjC symbols are reported as missing).
@Sebastien Thanks a lot! I'll try to resolve other issues.