Apple不再接受使用Electron App的QuickTime或QTKit API的应用程序的提交

时间:2015-11-08 08:08:19

标签: macos electron

我收到了Apple发来的以下电子邮件。

 Deprecated API Usage - Apple no longer accepts submissions of apps that use QuickTime or QTKit APIs.
 Once these issues have been corrected, you can then redeliver the corrected binary. 

我正在使用Electron,并已通过此处参考注册了该应用程序。

https://github.com/atom/electron/blob/master/docs/tutorial/mac-app-store-submission-guide.md

如何找到QuickTime或QTKit,有没有办法删除它?

我使用了0.34.3的电子 我使用了这个存储库。

https://github.com/atom/electron-quick-start

构建shell就在这里。

#! /bin/bash

APP="HogeApp"
APP_ID="com.md-note.HogeApp"
APP_PATH="HogeApp.app"
FRAMEWORKS_PATH="$APP_PATH/Contents/Frameworks"
APP_KEY="3rd Party Mac Developer Application: Xxx Yyy (XXXXXXXXX)"
INSTALLER_KEY="3rd Party Mac Developer Installer: Xxx Yyy (XXXXXXXXX)"
APP_VERSION="1.0.3"

electron-packager ./build/electron HogeApp --overwrite --platform=darwin --arch=x64 --version=0.34.3 --asar=true --icon=./build/electron/assets/icon.icns

sed -i -e "/<key>CFBundleIdentifier<\/key>/N;s#\(<key>CFBundleIdentifier</key>.*<string>\).*\(</string>\)#\1${APP_ID}\2#" "./HogeApp-darwin-x64/HogeApp.app/Contents/Info.plist"
sed -i -e "/<key>CFBundleShortVersionString<\/key>/N;s#\(<key>CFBundleShortVersionString</key>.*<string>\).*\(</string>\)#\1${APP_VERSION}\2#" "./HogeApp-darwin-x64/HogeApp.app/Contents/Info.plist"
sed -i -e "/<key>CFBundleVersion<\/key>/N;s#\(<key>CFBundleVersion</key>.*<string>\).*\(</string>\)#\1${APP_VERSION}\2#" "./HogeApp-darwin-x64/HogeApp.app/Contents/Info.plist"
sed -i -e "/<key>CFBundleIdentifier<\/key>/N;s#\(<key>CFBundleIdentifier</key>.*<string>\).*\(</string>\)#\1${APP_ID}.helper.EH\2#" "./HogeApp-darwin-x64/HogeApp.app/Contents/Frameworks/HogeApp Helper EH.app/Contents/Info.plist"
sed -i -e "/<key>CFBundleIdentifier<\/key>/N;s#\(<key>CFBundleIdentifier</key>.*<string>\).*\(</string>\)#\1${APP_ID}.helper.NP\2#" "./HogeApp-darwin-x64/HogeApp.app/Contents/Frameworks/HogeApp Helper NP.app/Contents/Info.plist"
sed -i -e "/<key>CFBundleIdentifier<\/key>/N;s#\(<key>CFBundleIdentifier</key>.*<string>\).*\(</string>\)#\1${APP_ID}.helper\2#" "./HogeApp-darwin-x64/HogeApp.app/Contents/Frameworks/HogeApp Helper.app/Contents/Info.plist"

rm "./HogeApp-darwin-x64/HogeApp.app/Contents/Info.plist-e"
rm "./HogeApp-darwin-x64/HogeApp.app/Contents/Frameworks/HogeApp Helper EH.app/Contents/Info.plist-e"
rm "./HogeApp-darwin-x64/HogeApp.app/Contents/Frameworks/HogeApp Helper NP.app/Contents/Info.plist-e"
rm "./HogeApp-darwin-x64/HogeApp.app/Contents/Frameworks/HogeApp Helper.app/Contents/Info.plist-e"

rm -rf "./HogeApp-darwin-x64/HogeApp.app/Contents/Frameworks/Electron Framework.framework/Resources/crashpad_handler"
rm -rf "./HogeApp-darwin-x64/HogeApp.app/Contents/Frameworks/Electron Framework.framework/Libraries"
rm -rf "./HogeApp-darwin-x64/HogeApp.app/Contents/Frameworks/Squirrel.framework/Resources/ShipIt"
rm -rf "./HogeApp-darwin-x64/HogeApp.app/Contents/Frameworks/HogeApp Helper EH.app"
rm -rf "./HogeApp-darwin-x64/HogeApp.app/Contents/Frameworks/HogeApp Helper NP.app"


cd HogeApp-darwin-x64

codesign --deep -fs "$APP_KEY" --entitlements ../macosx/child.plist "$FRAMEWORKS_PATH/Electron Framework.framework/Libraries/libnode.dylib"
codesign --deep -fs "$APP_KEY" --entitlements ../macosx/child.plist "$FRAMEWORKS_PATH/Electron Framework.framework/Electron Framework"
codesign --deep -fs "$APP_KEY" --entitlements ../macosx/child.plist "$FRAMEWORKS_PATH/Electron Framework.framework/"
codesign --deep -fs "$APP_KEY" --entitlements ../macosx/child.plist "$FRAMEWORKS_PATH/$APP Helper.app/"
#codesign --deep -fs "$APP_KEY" --entitlements ../macosx/child.plist "$FRAMEWORKS_PATH/$APP Helper EH.app/"
#codesign --deep -fs "$APP_KEY" --entitlements ../macosx/child.plist "$FRAMEWORKS_PATH/$APP Helper NP.app/"
codesign --deep -fs "$APP_KEY" --entitlements ../macosx/parent.plist HogeApp.app

productbuild --compone`enter code here`nt "HogeApp.app" /Applications --sign "$INSTALLER_KEY" "HogeApp.pkg"

1 个答案:

答案 0 :(得分:0)

最新版本的Electron MAS版本已更正此问题,只需更新并重新提交