Unity4.6.6Compile errors

player setting is IL2CPP,ARM64,.NET2.0,fast but no exception.

when I Compile the xcode project,I got many erros like this:

~/xcodeprj/Classes/Native/Bulk_Generics_13.cpp:17377:10: Cannot initialize return object of type ‘SingletonTaskMono_1_t15549 *’ with an rvalue of type ‘SingletonTaskMono_1_t15548 *’

  extern "C" SingletonTaskMono_1_t15549 * SingletonTaskMono_1_get_mInstance_m118625_gshared (Object_t * __this /* static, unused */, const MethodInfo* method)
    
    {
    
         SingletonTaskMono_1_t15548 * L_14 = L_13;
    
        return ((SingletonTaskMono_1_t15548 *)L_14);
    
     }



ERROE:

/Users/raid/ComPrj/siege466test/xcodeprj/Classes/Native/Bulk_Generics_13.cpp:17377:10: Cannot initialize return object of type 'SingletonTaskMono_1_t15549 *' with an rvalue of type 'SingletonTaskMono_1_t15548 *'



struct  SingletonTaskMono_1_t15549  : public TaskMonoBehaviour_t1219
{
};
struct SingletonTaskMono_1_t15549_StaticFields{
	// T siege2d.SingletonTaskMono`1<siege2d.SingletonTaskMono`1<System.Object>>::_mInstance
	SingletonTaskMono_1_t15548 * ____mInstance_2;
	// System.Boolean siege2d.SingletonTaskMono`1<siege2d.SingletonTaskMono`1<System.Object>>::isApplicationQuit
	bool ___isApplicationQuit_3;
};


struct  SingletonTaskMono_1_t15548  : public TaskMonoBehaviour_t1219
{
};
struct SingletonTaskMono_1_t15548_StaticFields{
	// T siege2d.SingletonTaskMono`1<System.Object>::_mInstance
	Object_t * ____mInstance_2;
	// System.Boolean siege2d.SingletonTaskMono`1<System.Object>::isApplicationQuit
	bool ___isApplicationQuit_3;
};

xcode project generate by unity 4.6.6 f2.

xcode version is 6.3

it seems when the c#code like this:

public class Singleton<T> : MonoBehaviour where T : Singleton<T> {
     protected static Singleton<T> mInstance {
          get {
             return _mInstance;
          }
     }
     private static T _mInstance;
}

will make this error.

SingletonTaskMono_1_t15549 is Singleton< T >

SingletonTaskMono_1_t15548 is T

@JoshPeterson I get the same errors for Unity3D 4.6.6f2

I’ve attached a zip file of files from the project’s Temp directory and the errors as they appeared in Xcode. This happened when I tried adding AntiLunchBox Musthave iOS Combo Pack to a project using uFrame MVVM - note I didn’t even change the scene or code or anything - all I did was import Musthave. Also I’m not using U3DXT.

[53159-il2cppbug.zip|53159]