Mando
Mando

Reputation: 11712

Native linking failed, undefined symbol: _dispose_managed_object during deployment to an iOS device

Every time I'm trying to debug my Xamarin.iOS app on a device I'm getting the following error

MTOUCHTASK: error MT5210: Native linking failed, undefined symbol: _dispose_managed_object. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.

MTOUCHTASK: error MT5202: Native linking failed. Please review the build log.

Deploy/Debug on an emulator works fine. My build settings are the following:

enter image description here enter image description here

Upvotes: 0

Views: 3347

Answers (1)

Tao
Tao

Reputation: 26

Change your LinkWith attribute to:

[assembly: LinkWith (..., ForceLoad = false, SmartLink = true)]

Upvotes: 1

Related Questions