From 08eaf4f3eba8001fc5ee2735cda3ff4c92aaa2ed Mon Sep 17 00:00:00 2001 From: Alex Li Date: Tue, 5 Nov 2024 23:47:58 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Do=20not=20append=20empty=20asso?= =?UTF-8?q?ciate=20domains?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/wechat_setup.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/wechat_setup.rb b/ios/wechat_setup.rb index d11321dc..364c7d18 100644 --- a/ios/wechat_setup.rb +++ b/ios/wechat_setup.rb @@ -56,7 +56,7 @@ app_id = options_dict[:app_id] universal_link = options_dict[:universal_link] - applinks = '' + applinks = nil if (!app_id.nil? && !app_id.empty? && !universal_link.nil? && !universal_link.empty?) begin applinks = "applinks:#{URI.parse(universal_link).host}" @@ -159,7 +159,7 @@ result["com.apple.developer.associated-domains"] = domains end isApplinksExist = domains.include? applinks - if !isApplinksExist + if !isApplinksExist && !applinks.nil? domains << applinks File.write(codeSignEntitlementsFile, Plist::Emit.dump(result)) end