Exporting to iOS - errors

So I have just finished my game and it workes wonderfully on my android device, but i have to publish it to app store first. So i have been trying to export it and test it on my iphone but i am getting some errors while trying to build it in xcode. Unity builds it fine…
I tryied messing with development build check box and dropdown release and debug mode, but only development build gives me xcode project, others dont (i dont know why?)

Here are the errors.
Any help would be highly appreciated :slight_smile:
Have a nice day

From the looks of it, you’re probably using a class from one of the “built-in” system frameworks, without actually linking against that framework.

Judging by the class name, are you by any chance offering an option to compose an email from your game? you should include the MessageUI framework which includes the needed classes.

Nope… no option to compose email… I am using quite a few plugins tho… Facebook/twitter plugin, unity ads, and oneSignal for push notifications… Other then that i wrote all my code in unityscript, and by using class from one of the built in system frameworks you mean the imports at start of the script ? I can write them all here if you think it would help finding the error…

Maybe one of the plugins you’re using includes that functionality. Try to add the MessageUI framework in Xcode and see if it builds fine. If it works, you can get Unity to automatically add that for you (in Player Settings).

It was messageUI indeed… Tyvm for you help