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.
When this project is changed from targeting iOS 6.0 to iOS 7.0, building fails due to native linking errors.
See attached build outputs to compare.
The 6.0 build succeeds.
The 7.0 build fails.
Both should succeed.
**Build Date & Platform:**
=== Xamarin Studio ===
Version 5.9.7 (build 22)
Installation UUID: d2e93cfb-f8d3-4457-83bd-27a826d241e7
Mono 4.0.4 ((detached/d481017)
GTK+ 2.24.23 (Raleigh theme)
Package version: 400040004
=== Apple Developer Tools ===
Xcode 7.0 (8227)
=== Xamarin.iOS ===
Version: 184.108.40.206 (Enterprise Edition)
Build date: 2015-09-25 18:08:44-0400
=== Xamarin.Android ===
Android SDK: Not found
=== Xamarin Android Player ===
=== Xamarin.Mac ===
=== Build Information ===
Release ID: 509070022
Git revision: 6bd1f169df44ca96addf8a035316c535a4fa46fa
Build date: 2015-09-30 12:30:15-04
Xamarin addins: 1c3e5c0859bdfec0ecd481a57ad6c03bc22f5536
=== Operating System ===
Mac OS X 10.10.5
Apple changed the C++ library in iOS 7, which is probably what's causing this.
One possible fix would be to build with "-lstdc++" instead of "-lc++".
In any case the errors come from a third party library (DSAPP_Client), and you should contact them to see which linker flags their library require.
Created attachment 13582 [details]
Build output of Xamarin.iOS project targeting deployment target 7.0
Additional mtouch arguments: --gcc_flags "-lstdc++" -v -v -v -v
Thanks for the info, that's good to know. I've tried building the project with '--gcc_flags "-lstdc++" -v -v -v -v' under 'Additional mtouch arguments and I still get similar errors; build output attached.
I'll get in touch with our third-party vendor. It is sufficient to put the linker flags required for building their library under additional mtouch arguments, correct? There is a binding project involved also.
@Geir, it looks like your binding project adds the "-lc++" compiler flag (in a LinkWith attribute), try removing that and see what happens.
It is sufficient to put the linker flags as an additional mtouch argument, but it's usually easier to change it in the binding project (the additional mtouch arguments are per project configuration, which means you'll have to remember to change it in every project configuration, but if you change the LinkWith attribute in the binding project you only change it once).