HomeiOS DevelopmentUndefined symbols error when integrating VStarCam native iOS SDK in Flutter utilizing...

Undefined symbols error when integrating VStarCam native iOS SDK in Flutter utilizing MethodChannel


I am integrating the native iOS VStarCam SDK into my Flutter mission utilizing MethodChannel. The Android half works, however on iOS I get a number of “Undefined image” errors when constructing for gadget. It appears associated to lacking native symbols.

What I am Attempting to Do

  • I am calling native iOS features by way of Flutter MethodChannel
  • The VStarCam SDK is added to my Xcode mission (by way of .a and .h information)
  • I need to use a local perform like StartVUID(...)

Error I am Getting

Once I construct the iOS app, I recover from 100 linker errors like:

Undefined image: _DeblockingFilterChromaHor_arm
Undefined image: _FT_Done_Glyph
Undefined image: _JS_CallFunction

These symbols seem associated to FreeType, JavaScriptCore, and H.265 decoding.

What I attempted to repair the errors

  • Added all required .a static libraries from VStarCam SDK to “Hyperlink Binary With Libraries”
  • Verified header information are imported in .mm file
  • Set “Different Linker Flags” to -ObjC and -all_load
  • Ensured the file calling native features has .mm extension (Goal-C++)
  • Cleaned and rebuilt the mission
  • Tried constructing on bodily gadget and simulator

Flutter/Xcode Setup Particulars

Flutter model: 3.22.1
Goal iOS model: 13.0+
Xcode model: 16.4
VStarCam SDK: iOS static lib (.a + .h)
Platform: iOS solely

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments