Help! Null exception and "filename currently not available on il2cpp Line: -1",
Please help!!
build game on windows(iOS build), transfers to Mac, run on Xcode. can't load game/ simulation on iPhone.
game run smoothly on window and Mac unity with no compile errors.
debug log on Xcode :
2018-08-16 21:33:48.299913+0800 Ballings[600:190492] [DYMTLInitPlatform] platform initialization successful 2018-08-16 21:33:48.394987+0800 Ballings[600:190290] Built from '2018.2/release' branch, Version '2018.2.3f1 (1431a7d2ced7)', Build type 'Release', Scripting Backend 'il2cpp' 2018-08-16 21:33:48.399800+0800 Ballings[600:190290] -> registered mono modules 0x10111afa0 -> applicationDidFinishLaunching() 2018-08-16 21:33:48.685046+0800 Ballings[600:190290] Metal GPU Frame Capture Enabled 2018-08-16 21:33:48.686061+0800 Ballings[600:190290] Metal API Validation Disabled -> applicationDidBecomeActive() GfxDevice: creating device client; threaded=1 Initializing Metal device caps: Apple A10 GPU Initialize engine version: 2018.2.3f1 (1431a7d2ced7) UnloadTime: 0.524291 ms NullReferenceException: A null value was found where an object instance was required. at EpicPrefsTools.Operators.setupPrefs () [0x00000] in :0 at DataManager.FirstLoad () [0x00000] in :0 at DataManager.Start () [0x00000] in :0 Rethrow as TypeInitializationException: The type initializer for 'EpicPrefs' threw an exception. at DataManager.FirstLoad () [0x00000] in :0 at DataManager.Start () [0x00000] in :0 (Filename: currently not available on il2cpp Line: -1) Setting up 1 worker threads for Enlighten. Thread -> id: 1710a7000 -> priority: 1
Answer by JoshPeterson · Aug 21, 2018 at 12:54 PM
It looks like the problem is in the EpicPrefsTools.Operators.setupPrefs method. Is that method in your source code, or is it in a managed DLL in the project? If it is in your script code, you can use Debug.Log statements or Visual Studio to debug the application to determine what is null.
I contacted the asset support and realised that i skipped one the of asset setup-steps. Thanks for the assist !