2016-10-15 69 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文件夹中,否则会给我一个错误。 –

相关问题