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