From 93dc16682cdde73fb99aaf001c059a9efafb6e05 Mon Sep 17 00:00:00 2001 From: xiaoyi Date: Wed, 7 Jul 2021 14:56:39 +0800 Subject: [PATCH] fix(build): fix ios compile error --- Editor/TapLoginIOSProcessor.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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];}");