yasirkula / UnityIonicIntegration

A guide to integrating Unity 3D content into an Ionic app and sending messages between them (for Android & iOS)(tested with Vuforia plugin)
104 stars 32 forks source link

iOS - Error opening the Unity Activity - NSInvalidArgumentException: [NSNull UTF8String]: unrecognized selector sent to instance #32

Closed bdomingues closed 6 years ago

bdomingues commented 6 years ago

Hello,

I'm building a cross platform app using Ionic + Unity with Vuforia, and its currently working smoothly with Android. I've been struggling with making it work properly in iOS. As soon as I launch unity, the splash screen shows up and the app crashes with the following error:

Uncaught exception: NSInvalidArgumentException: -[NSNull UTF8String]: unrecognized selector sent to instance 0x1b2da0650'

It also points to the following line on Other sources/main.mm captura de ecra 2018-07-09 as 03 49 55

Full log: https://pastebin.com/raw/jHfSXZ2s

I've searched around and no one seems to be having this issue. Any clue? my main.mm seems fine.

Thanks.

yasirkula commented 6 years ago

This should fix the issue: https://github.com/yasirkula/UnityIonicIntegration/commit/672026213463920fbdcf49ec2bac6e56fb19b1c0

bdomingues commented 6 years ago

Seems like it is working ! Thanks