Last time I had to build for iOS, we ran into a lot of problems, but with iOS latest version and the latest unity installer, everything works JUST fine….




So we are currently using xCode 7, with iOS 9, and on Unity 5.2.3, we can follow the same steps found on part 1

And we’ll find out that the build isn’t working! CUTE huh!?


Now the first thing that we need to fix, is make sure we can compile the whole build. First we need to look for the WWWConnection.mm file, once we have it we go to the BUILD PHASES setting, and we add a nice new flag:




And this should allow us to compile it again… just to find a new error, regarding the Display Manager. The error is related to line #277 regarding a missing reference:

Screen Shot 2015-12-05 at 12.28.34 AM

once you fix it (by adding retain!! ) it will look like this:

Screen Shot 2015-12-05 at 12.27.24 AM



Regarding iOS plugins, I was trying to do this:

Screen Shot 2015-12-05 at 12.32.56 AM

But I kept getting a marshalling error, this is due to the fact that I was trying to send a const char* that would disappear right after the method ended. Luckily we have a beautiful helper function that allows us to create a copy that can be send out of the method context:

Screen Shot 2015-12-05 at 12.35.31 AM

So we use it to get the information we want through the method, also see that we are not releasing the netinfo  since the marshaller is taking care of that (NICE addition btw).

Screen Shot 2015-12-05 at 12.32.20 AM


AND I think those are all the fixes I had to do for this build!!

Facebooktwittergoogle_plusredditpinterestlinkedinmailby feather

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.