TheEightBot / Xamarin.IQKeyboardManager

A Binding for the IQKeyboardManager
Other
46 stars 11 forks source link

Native linking is failing on iPhone builds #14

Closed eman1986 closed 5 years ago

eman1986 commented 5 years ago

When I do a device build I get the following errors:

error MT5209 : Native linking error : warning: ignoring file /Users/vsts/agent/2.150.3/work/1/s/MyApp/iOS/obj/iPhone/Debug/mtouch-cache/IQKeyboardManager.framework/IQKeyboardManager, missing required architecture armv7s in file /Users/vsts/agent/2.150.3/work/1/s/MyApp/iOS/obj/iPhone/Debug/mtouch-cache/IQKeyboardManager.framework/IQKeyboardManager (4 slices) MTOUCH : error MT5211: Native linking failed, undefined Objective-C class: IQBarButtonItem. The symbol '_OBJCCLASS$_IQBarButtonItem' could not be found in any of the libraries or frameworks linked with your application. MTOUCH : error MT5211: Native linking failed, undefined Objective-C class: IQKeyboardManager. The symbol '_OBJCCLASS$_IQKeyboardManager' could not be found in any of the libraries or frameworks linked with your application. MTOUCH : error MT5211: Native linking failed, undefined Objective-C class: IQKeyboardReturnKeyHandler. The symbol '_OBJCCLASS$_IQKeyboardReturnKeyHandler' could not be found in any of the libraries or frameworks linked with your application. MTOUCH : error MT5211: Native linking failed, undefined Objective-C class: IQPreviousNextView. The symbol '_OBJCCLASS$_IQPreviousNextView' could not be found in any of the libraries or frameworks linked with your application. MTOUCH : error MT5211: Native linking failed, undefined Objective-C class: IQTextView. The symbol '_OBJCCLASS$_IQTextView' could not be found in any of the libraries or frameworks linked with your application. MTOUCH : error MT5211: Native linking failed, undefined Objective-C class: IQTitleBarButtonItem. The symbol '_OBJCCLASS$_IQTitleBarButtonItem' could not be found in any of the libraries or frameworks linked with your application. MTOUCH : error MT5211: Native linking failed, undefined Objective-C class: IQToolbar. The symbol '_OBJCCLASS$_IQToolbar' could not be found in any of the libraries or frameworks linked with your application.

How do I overcome this issue?

michaelstonis commented 5 years ago

Remove the armv7s from a build target. iOS apps pretty much should be arm64 at this point in time.

VisualStudio 2019-05-15 13-22-19