- Home /
Editing iOS plugin error
I recently imported an iOS plugin to my project. I realized I wanted some additional functionality so I added a function to the .mm file. Ever since I added this one function I am getting this error:
ld: warning: arm64 function not 4-byte aligned: ltmp0 from /Users/nishant.ramen/Desktop/360Streaming/Builds/ios-360/Libraries/libiPhone-lib.a(PLCrashAsyncThread_current-5565F35D16E4818B.o) ld: warning: arm64 function not 4-byte aligned: _plcrash_async_thread_state_current from /Users/nishant.ramen/Desktop/360Streaming/Builds/ios-360/Libraries/libiPhone-lib.a(PLCrashAsyncThread_current-5565F35D16E4818B.o) Undefined symbols for architecture arm64: "_VideoPlayerPluginAvailableDuration", referenced from: _MediaPlayerCtrl_Call_GetCurrentSeekPercent_m4197538532 in Bulk_Assembly-CSharp_0.o _MediaPlayerCtrl_VideoPlayerPluginAvailableDuration_m339665916 in Bulk_Assembly-CSharp_0.o (maybe you meant: _MediaPlayerCtrl_VideoPlayerPluginAvailableDuration_m339665916) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Where VideoPlayerPluginAvailableDuration is my added function. It seems to me that this is caused by bad linking of my new function, but I have no idea what to do to fix it.
Thanks in advance!