question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Xamarin Forms iOS build error MT5214: Native linking failed, undefined symbol: _sqlite3_key_v2.

See original GitHub issue

Describe the bug After updating Microsoft.Data.Sqlite to version 3.0.0 I get following build errors for Xamarin Forms iOS project:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5214: Native linking failed, undefined symbol: _sqlite3_key_v2. This symbol was referenced by the managed member SQLitePCL.SQLite3Provider_internal/NativeMethods.sqlite3_key_v2. Please verify that all the necessary frameworks have been referenced and native libraries linked. 2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5214: Native linking failed, undefined symbol: _sqlite3_rekey_v2. This symbol was referenced by the managed member SQLitePCL.SQLite3Provider_internal/NativeMethods.sqlite3_rekey_v2. Please verify that all the necessary frameworks have been referenced and native libraries linked.

To Reproduce

Build Xamarin Forms iOS project.

Additional context

Microsoft.Data.Sqlite version: 3.0.0 Target framework: .NET Standard 2.0

Development environment:

Windows 10 1903 Build: 18362.418

Microsoft Visual Studio Enterprise 2017 Version 15.9.16 VisualStudio.15.Release/15.9.16+28307.858 Microsoft .NET Framework Version 4.8.03752

Xamarin Forms version: 4.2.0.848062 Xcode version: 10(10E125)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:17 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
ericsinkcommented, Oct 18, 2019

@bricelam will update the SQLite package”

Which I assume will be after I ship 2.0.2 (non-pre).

Which should be next week. I just wanted to verify a couple more things first.

1reaction
ericsinkcommented, Nov 1, 2019

@bricelam

OK, 2.0.2 has been pushed up to nuget.org. Sorry I dropped the ball on this. How embarrassing.

There were no changes since the last -pre.

I re-reviewed all the relevant issues, re-read all the diffs since 2.0.1, and re-ran all the tests. It all looks solid. Let me know if you encounter any problems.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xamarin Forms iOS build error MT5214: Native linking ...
Common.targets(795,3): error MT5214: Native linking failed, undefined symbol: _sqlite3_key_v2. This symbol was referenced by the managed member ...
Read more >
Xamarin IOS Error Native linking failed when Build
According to the error message you provided, there are two reasons. For Native linking failed, undefined Objective-C class: You can add the ...
Read more >
MT5210 Native linking failed - Cannot build xamarin.ios ...
I have a weird problem with building a ios forms app. ... error MT5210: Native linking failed, undefined symbol: Foundation.
Read more >
Native Linking Failed - Developer Community
iOS /Facades/System.Security.Cryptography.Pkcs.dll). Process exited with code 1, command: MTOUCH : error MT5214: Native linking failed, undefined ...
Read more >
Native iOS linking failed after update
iOS /MTOUCH: Error MT5210: Native linking failed, undefined symbol: _OBJC_METACLASS_$_MSServiceAbstract. Please verify that all the necessary ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found