diff --git a/Editor/TapLoginIOSProcessor.cs b/Editor/TapLoginIOSProcessor.cs index 58ab393..a09143a 100644 --- a/Editor/TapLoginIOSProcessor.cs +++ b/Editor/TapLoginIOSProcessor.cs @@ -27,7 +27,8 @@ namespace TapTap.Login.Editor // UnityAppController.mm 中对于 URLScheme 的处理 var unityAppControllerPath = path + "/Classes/UnityAppController.mm"; var unityAppController = new TapFileHelper(unityAppControllerPath); - unityAppController.WriteBelow(@"#import ", @"#import "); + unityAppController.WriteBelow(@"#import ""UnityAppController.h""", + @"#import "); unityAppController.WriteBelow( @"id sourceApplication = options[UIApplicationOpenURLOptionsSourceApplicationKey], annotation = options[UIApplicationOpenURLOptionsAnnotationKey];", @"if(url){[TapLoginHelper handleTapTapOpenURL:url];}");