Bug 42776 - Undefined symbols when deploying to device
Summary: Undefined symbols when deploying to device
Status: RESOLVED DUPLICATE of bug 42416
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 9.10 (C8)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Future Cycle (TBD)
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-07-25 02:18 UTC by Cody Russell
Modified: 2016-07-25 21:12 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 DUPLICATE of bug 42416

Description Cody Russell 2016-07-25 02:18:48 UTC
Xamarin.iOS 9.9.0.288 (current alpha channel release) is showing this issue where it says "Could not AOT the assembly '.../SQLitePCL.raw.dll'"

I "Undefined symbols for architecture arm64" for a lot of symbols, for example:

Undefined symbols for architecture arm64:
		  "_sqlite3_aggregate_context", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_aggregate_context_intptr_int in SQLitePCL-b3b83a.o


Here's a more complete list: https://gist.github.com/bratsche/039bc47f00eaa3af145e1b081a8e40b6


If I go back to the beta channel (version 9.8.2.16) then the problem goes away.


This should be reproducible using any project that uses Akavache with SQLite.  I can make a repro project if you need one.
Comment 1 Alex Soto [MSFT] 2016-07-25 15:50:18 UTC
Hey Cody

Thanks for the bug report, while it seems pretty straight forward to repro, could you attach a test case for this? This way we will have the same code and we can avoid the possible guessing work.

Thanks in advance!
Comment 2 Sebastien Pouliot 2016-07-25 21:12:18 UTC
That's because the symbols do not exists on the platform. See #42416 [1] for a workaround. We'll relax this requirement on a future alpha but, in some cases it's just not possible to link to non-existing symbols.

https://bugzilla.xamarin.com/show_bug.cgi?id=42416

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