I had installed Burst/Collection packages to boost my 2D game, but after installed them and build the project, cause this issue:
I needed to solve the problem urgently because an update was scheduled for release today. So I decided to remove Burst/Collection packages from this update and removed them from Package Manager.
However, after deleting them, XCode still throws the same error message that couldn’t find file:
“/Libraries/lib_burst_generated.cpp”.
So I thought that something seriously went wrong after installed the Burst/Collections packages, especially in the Libraries directory, and I removed it whole. And restarted Unity to regenerated, but now it throws errors from my iOS plugins ![]()
In my iOS plugin, there is a function that works with iCloud. It worked without any problem before, but after removing the Libraries, it doesn’t work anymore.
using System;
using System.Runtime.InteropServices;
using UnityEngine;
public class iOSPlugin : MonoBehaviour
{
...
#if UNITY_IOS
[DllImport("__Internal")]
private static extern void _ShowAlert(string title, string message);
public static void ShowAlert(string title, string message)
{
Debug.LogError($"{MethodBase.GetCurrentMethod()} {NOT_SUPPORTED}");
}
}
In this code, the MethodBase defined in “System.Runtime.InteropServices”, but it throws an error:
error CS0103: The name ‘MethodBase’ does not exist in the current context
And also, Unity keep fails to find the method from my plugin. It’s clearly defined:
using System;
using System.Runtime.InteropServices;
using UnityEngine;
public class iOSPlugin : MonoBehaviour
{
...
[DllImport("__Internal")]
private static extern bool _iCloudSaveStringValue(string key, string value);
public static bool iCloudSaveStringValue(string key, string value)
{
#if UNITY_EDITOR
return false;
#else
return _iCloudSaveStringValue(key, value);
#endif
}
}
Using iOSPlugin.iCloudSaveStringValue throws this error:
error CS0117: ‘iOSPlugin’ does not contain a definition for ‘iCloudSaveStringValue’
I’m not sure, but since deleting the Libraries folder, there is something wrong with the project. I try to fix this mess, to something like “recompile whole thing”, but couldn’t find any related info.
Is there any way to fix this broken project?