Error: Projects with unity Ads dont build in XCode

Hi guys i cant compile my ios project with unity ads integrated and i cant seem to find the exact error. it works fine in unity but when i try to build it with ios, it builds, but im stuck on unity splash screen. showing this error (attached picture)

i tried building it with unity ads disabled and it seems to work fine and works perfectly.

any ideas how can i fix it?

im using Mac OS X 10.10.5 with Xcode 7. i built my project on Unity 5.2 Scripting back end is il2cpp

additional info: on Xcode i deactivated the breakpoints and set the optimization to none

Which exact version of Unity are you using?

Unity 5.2.1f1

@popsiclegames

Please try the latest 5.2 patch release. We have corrected a similar bug, so I suspect that the newest version will work for you here as well.

updated with latest patch release 5.2.1p4 and its now working fine thanks!

@popsiclegames

That is good to hear, thanks!