iOS native extension issue

Hi,
I have small cpp extension for openfl based application

now i just copy it to correct place after App building
dist\windows\bin\lib.dll
dist/macos/bin/App.app/Contents/Frameworks/lib.dylib

however it can’t be found on iOS
I tried
<dependency path="native/arm64/lib.a"/>

what I’m doing wrong?
maybe there is some other way

issue was resolved by injecting C++ code