Skip to content

Xamarin.Forms iOS error during build MT5211: Native linking failed, undefined Objective-C class #17

@spamprom

Description

@spamprom

Describe the bug
I use the version 1.25.2 in my Xamarin.Forms project
The Android version works fine, but the iOS can't build

To Reproduce
Steps to reproduce the behavior:

  1. Add version to 1.25.2 .net type of project
  2. I connect from the Visual Studio to the macbook
  3. I try to build a iOS-project

Error text

  MTOUCH : error MT5211: Native linking failed, undefined Objective-C class: _TtC13iOSDFULibrary11DFUFirmware. The symbol '_OBJC_CLASS_$__TtC13iOSDFULibrary11DFUFirmware' could not be found in any of the libraries or frameworks linked with your application. [/Users/.../MyProject.iOS.csproj]
  clang : error : linker command failed with exit code 1 (use -v to see invocation) [/Users/.../MyProject.iOS.csproj]
  MTOUCH : error MT5211: Native linking failed, undefined Objective-C class: _TtC13iOSDFULibrary13DFUUuidHelper. The symbol '_OBJC_CLASS_$__TtC13iOSDFULibrary13DFUUuidHelper' could not be found in any of the libraries or frameworks linked with your application. [/Users/.../MyProject.iOS.csproj]
  MTOUCH : error MT5211: Native linking failed, undefined Objective-C class: _TtC13iOSDFULibrary15DFUFirmwareSize. The symbol '_OBJC_CLASS_$__TtC13iOSDFULibrary15DFUFirmwareSize' could not be found in any of the libraries or frameworks linked with your application. [/Users/.../MyProject.iOS.csproj]
  MTOUCH : error MT5211: Native linking failed, undefined Objective-C class: _TtC13iOSDFULibrary19DFUServiceInitiator. The symbol '_OBJC_CLASS_$__TtC13iOSDFULibrary19DFUServiceInitiator' could not be found in any of the libraries or frameworks linked with your application. [/Users/.../MyProject.iOS.csproj]
  MTOUCH : error MT5211: Native linking failed, undefined Objective-C class: _TtC13iOSDFULibrary20DFUServiceController. The symbol '_OBJC_CLASS_$__TtC13iOSDFULibrary20DFUServiceController' could not be found in any of the libraries or frameworks linked with your application. [/Users/.../MyProject.iOS.csproj]
  MTOUCH : error MT5211: Native linking failed, undefined Objective-C class: _TtC13iOSDFULibrary21DFUPeripheralSelector. The symbol '_OBJC_CLASS_$__TtC13iOSDFULibrary21DFUPeripheralSelector' could not be found in any of the libraries or frameworks linked with your application. [/Users/.../MyProject.iOS.csproj]
  MTOUCH : error MT5211: Native linking failed, undefined Objective-C class: _TtC13iOSDFULibrary21IntelHex2BinConverter. The symbol '_OBJC_CLASS_$__TtC13iOSDFULibrary21IntelHex2BinConverter' could not be found in any of the libraries or frameworks linked with your application. [/Users/.../MyProject.iOS.csproj]
  MTOUCH : error MT5211: Native linking failed, undefined Objective-C class: _TtC13iOSDFULibrary25LegacyDFUServiceInitiator. The symbol '_OBJC_CLASS_$__TtC13iOSDFULibrary25LegacyDFUServiceInitiator' could not be found in any of the libraries or frameworks linked with your application. [/Users/.../MyProject.iOS.csproj]
  MTOUCH : error MT5211: Native linking failed, undefined Objective-C class: _TtC13iOSDFULibrary25SecureDFUServiceInitiator. The symbol '_OBJC_CLASS_$__TtC13iOSDFULibrary25SecureDFUServiceInitiator' could not be found in any of the libraries or frameworks linked with your application. [/Users/.../MyProject.iOS.csproj]
  MTOUCH : error MT5211: Native linking failed, undefined Objective-C class: _TtC13iOSDFULibrary7DFUUuid. The symbol '_OBJC_CLASS_$__TtC13iOSDFULibrary7DFUUuid' could not be found in any of the libraries or frameworks linked with your application. [/Users/.../MyProject.iOS.csproj]
  MTOUCH : error MT5201: Native linking failed. Please review the build log and the user flags provided to gcc: -ObjC -lc++ -lsqlite3 -lz [/Users/.../MyProject.iOS.csproj]

.

Question
Do I need to install something on my macbook?
Do I need to add something to the my iOS-project?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions