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.
Created attachment 6383 [details]
After reading http://docs.xamarin.com/guides/ios/advanced_topics/linker/ ( If your application only works with -nolink, please submit a bug report.) I decided to report a bug with SQLCipher.
After downloading SQLCipher and testing their example I saw that it only works with no link activated.
Attached is the build output.
Not sure if im correct with reporting this here or should I report it @ sqlcipher ?
You can report it here first.
In this case it's not a managed linker issue - but a native linker one.
What happens is that the component is missing a Framework, -framework=Security, so the native linker report it's missing.
error MT5210: Native linking failed, undefined symbol: _SecRandomCopyBytes. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
error MT5210: Native linking failed, undefined symbol: _kSecRandomDefault. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
error MT5202: Native linking failed. Please review the build log.
Now why does it works when disabling the managed linker ?
When set to "Don't link" your application will include a lot of extra code from monotouch.dll - that include codes that requires the Security framework, so it gets included (indirectly) and the _native_ linker is happy.
You should be able to re-enable the linker by adding a:
to your project options, Additional mtouch arguments
c.c. Alex (for component fix)
We will report this to Sqlcipher ASAP but also if you report it to http://sqlcipher.net/support/ might help to speed things up a bit.
Thanks for letting us know about this.
As per comment #2