I’m going to be honest. I HATE dealing with iPhone builds. Android is so easy. You can build straight to your phone. But I every time I think I have iPhone builds figured out, suddenly I have to either upgrade XCode and/or the OS. Usually both. On top of that, now there are some issues with Unity builds that result in errors when trying to do the Archiving step.
So, I’m writing this down so I can remember it the next time I need it.
I changed this setting: Build Setting → Build Options → User Script Sandboxing to “No”.
I added both `-ld64″ and “-ld_classic” (L not I) to the “Other Linker Flags” setting in both the Unity-iPhone and Unity Framework.
I also got an error notice to “Update to recommended settings”. I went ahead and made the update, but apparently that makes things worse! It was too late for me, but I got this steps from this message board.
- In Xcode, select Unity-iPhone on the left, and go to the build settings tab.
- Select target UnityFramework under targets.
- In the build settings make sure to select the button for All settings
- Type Module Verifier into the filter search bar in the top right.
- Select No for Enable Module Verifier
After all of that trial and error, it finally uploaded to the App Store!
