2016-10-15 68 views
1

我想將我的遊戲提交給mac應用程序商店,但我不斷收到「Info.plist表示Mac應用程序,但提交了ipa 」。Info.plist表示Mac應用程序,但在使用應用程序加載程序提交時提交ipa

具體的過程從開始到結束:

首先,我創建一個libgdx packr一個.app文件使用此命令:(該文件夾具有Game.jar,icon.icns,packr.jar和OpenJDK的)

java -jar packr.jar \ 
    --platform mac \ 
    --jdk openjdk-1.7.0-u80-unofficial-macosx-x86_64-bundle.zip \ 
    --executable Game \ 
    --classpath Game.jar \ 
    --mainclass com.company.MyGdxGame.desktop.DesktopLauncher \ 
    --vmargs Xmx1G \ 
    --minimizejre hard \ 
    --output Game.app \ 
    --icon icon.icns 

然後,添加NSHumanReadableCopyright,CFBundleIdentifier,CFBundleVersion,LSApplicationCategoryType使我的info.plist是這樣的:

<?xml version="1.0" encoding="UTF-8"?> 
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 
<plist version="1.0"> 
<dict> 
    <key>CFBundleGetInfoString</key> 
    <string>Game</string> 
    <key>CFBundleExecutable</key> 
    <string>Game</string> 
    <key>CFBundleIdentifier</key> 
    <string>com.company.gameOSX</string> 
    <key>CFBundleName</key> 
    <string>Game</string> 
    <key>CFBundleIconFile</key> 
    <string>icons.icns</string> 
    <key>CFBundleShortVersionString</key> 
    <string>1.0</string> 
    <key>NSHumanReadableCopyright</key> 
    <string>Company 2016</string> 
    <key>CFBundleVersion</key> 
    <string>1.0</string> 
    <key>LSApplicationCategoryType</key> 
    <string>public.app-category.productivity</string> 
    <key>CFBundleInfoDictionaryVersion</key> 
    <string>6.0</string> 
    <key>CFBundlePackageType</key> 
    <string>APPL</string> 
    <key>IFMajorVersion</key> 
    <integer>0</integer> 
    <key>IFMinorVersion</key> 
    <integer>1</integer> 
    <key>NSHighResolutionCapable</key> 
    <true/> 
</dict> 
</plist> 

之後,我協同設計它使用

codesign -v -f -s "3rd Party Mac Developer Application: Company" --entitlements Game.entitlements Game.app 

然後協同設計內容

find Game.app/Contents/ -type f \(-name "*.jar" -or -name "*.dylib" \) -exec codesign --verbose -f -s "3rd Party Mac Developer Application: Company" --entitlements Game.entitlements {} \; 

我的授權文件是在同一文件夾中Game.app,看起來像這樣

<?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> 
    <!-- Activates the sandbox, required. --> 
    <key>com.apple.security.app-sandbox</key> 
    <true/> 
</dict> 
</plist> 

後所有這一切我把它裝進一個pkg

productbuild --component Game.app /Applications -s "3rd Party Mac Developer Installer: Company" Game.pkg 

我的問題是,在所有這一切後,應用程序加載器給我「Info.plist表示一個Mac應用程序,但提交一個ipa」,即使文件擴展名是.pkg!任何幫助?

回答

3

我遇到了同樣的問題......它似乎是Application Loader 3.6的問題。

下載以前版本的Application Loader,它應該可以工作(使用xCode 7.3.1附帶的Application Loader 3.5進行測試)。

+0

這就是它!在此之後的唯一情況是在上傳之前將pkg放在/ Applications文件夾中,否則會給我一個錯誤。 –

相關問題