- Home /
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!
Having a similar issue with a plugin. I'm wondering : what are the consequences of removing the -all_load linker flag? The app builds and runs fine without it...
Answer by akbuildmaster · Apr 20, 2012 at 03:57 PM
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: http://kemenaran.winosx.com/?2010/06/30/174-fix-duplicate-symbols-when-linking-a-universal-static-library-with-ios-sdk-4