iOS: -all_load and duplicated symbols in plugin development

I’m developing a Unity plugin for iOS.
It all went smoothly until I tried to link my plugin (static lib) in the generated Unity-iPhone Xcode project. It complaints about “duplicated symbols” with -all_load flag on. Without -all_load it builds and runs fun.

But I read that -all_load is essential for iOS projects so I doubt that my solution was perfect.

Can anyone help shed some lights on the duplicated symbol issues?

Thanks a lot!

I found a link that talks about this but haven’t tried his solution yet. Looks like the duplications might come from mixed architectures, which only causes trouble at the last step: building the iOS app itself. Link: Articles – Kzone