*need help* Xcode semantic error - Use of undeclared indentifier 'AssetImporter'

When I want to export my xcode project (exported from Unity) to my Iphone it gives me this error, I have now spend 3 days trying to fix it but I’m not having any luck. So I hope someone can help me.

I’m using the newest xcode which is xcode 9(I have also tried the beta version of xcode and it doesn’t help).
I’m also using the newest version of Unity.

The AssetImporter class is an internal editor class of Unity. So it’s most likely that you have some sort of editor code inside your runtime classes. You have to find where you use it and remove it from your runtime scripts. Runtime scripts can not use anything from the “UnityEditor” namespace.

Thanks for your respone, the semantic error is gone, now I’m getting a shell script invocation error… Do you maybe know how to fix this?