我正在编写一个简单的Safari扩展程序,并试图弄清楚如何使更新机制工作。苹果的文档在这里非常模糊:https://developer.apple.com/library/archive/documentation/Tools/Conceptual/SafariExtensionGuide/UpdatingExtensions/UpdatingExtensions.html。以下是我根据该文档创建的清单:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Extension Updates</key>
<array>
<dict>
<key>CFBundleIdentifier</key>
<string>net.rickyromero.safari.shutup</string>
<key>Team Identifier</key>
<string>TMM5P68287</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>URL</key>
<string>http://rickyromero.net/misc/SafariExtensions/ShutUp.safariextz</string>
</dict>
</array>
</dict>
</plist>
我不知道如何获得"YourCertifcateID",例如。当我增加CFBundleVersion和CFBundleShortVersionString的值时,它不会触发更新。但我知道Safari正在访问我的清单文件,因为我正在监视HTTP流量。