Note that there are some explanatory texts on larger screens.

plurals
  1. POUnable to build ICSharpCode.SharpZipLib.dll in release mode with Xamarin.iOS - error MT3001: Could not AOT the assembly
    primarykey
    data
    text
    <p>When trying to build the popular library ICSharpCode.SharpZipLib.dll in debug mode for iPhone using Xamarin.iOS everything works fine. When I switch to Release mode, I get this error:</p> <pre><code>error MT3001: Could not AOT the assembly </code></pre> <p>When I turn on verbose output, here is what I get:</p> <pre><code>/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -miphoneos-version-min=4.3 -arch armv7 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -c /var/folders/kn/1j5jxvv131zcyqmgy3yj_xfw0000gn/T/tmp13a8fd89.tmp/System.Data.dll.armv7.s -o /var/folders/kn/1j5jxvv131zcyqmgy3yj_xfw0000gn/T/tmp13a8fd89.tmp/System.Data.dll.armv7.o error MT3001: Could not AOT the assembly '.../bin/iPhone/Release/ICSharpCode.SharpZipLib.dll' at MTouch.GetObjectFileForAssembly (System.String assemblyName, Abi abi) [0x00000] in &lt;filename unknown&gt;:0 at MTouch+&lt;CompileAssemblies&gt;c__AnonStoreyB.&lt;&gt;m__E (System.String s) [0x00000] in &lt;filename unknown&gt;:0 at System.Threading.Tasks.Parallel+&lt;ForEach&gt;c__AnonStorey36`1[System.String].&lt;&gt;m__34 (System.String e, System.Threading.Tasks.ParallelLoopState s, System.Object l) [0x00000] in &lt;filename unknown&gt;:0 at System.Threading.Tasks.Parallel+&lt;ForEach&gt;c__AnonStorey35`2[System.String,System.Object].&lt;&gt;m__32 () [0x00000] in &lt;filename unknown&gt;:0 at System.Threading.Tasks.TaskActionInvoker+ActionInvoke.Invoke (System.Threading.Tasks.Task owner, System.Object state, System.Threading.Tasks.Task context) [0x00000] in &lt;filename unknown&gt;:0 at System.Threading.Tasks.Task.InnerInvoke () [0x00000] in &lt;filename unknown&gt;:0 at System.Threading.Tasks.Task.ThreadStart () [0x00000] in &lt;filename unknown&gt;:0 </code></pre> <p>This is with LLVM turned on and SGen turned on. When I turn off SGen as suggested in this (<a href="https://stackoverflow.com/questions/12514102/mono-armv7-and-llvm">Mono ARMv7 and LLVM</a>) post, I get the exact same MT3001 error.</p> <p>When I turn <em>off</em> LLVM, then it works again. The problem is that I need LLVM.</p> <p>How can I get this common library to build in Monotouch/Xamarin.iOS without turning off LLVM? Any help is greatly appreciated.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload