2015-11-08 52 views
2

我收到Apple發送的以下電子郵件。Apple不再接受使用QuickTime或QTKit API的應用程序的電子應用程序

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的Electron ,我用這個倉庫。

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

構建殼就在這裏。

#! /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" 

回答

0

這在電子的MAS版的最新版本進行修正,只需更新並重新提交

+0

謝謝。 我在做0.34.1。我們將嘗試0.34.3。 – shwld

+0

我在0.34.3中試過,但結果是一樣的。 – shwld

+0

您是否100%肯定您使用的是Electron的MAS(Mac App Store)版本,而不是專用版本? –

相關問題