Info.plist表示一个Mac应用,但是用Application Loader提交时提交了一个ipa
The Info.plist indicates a Mac app, but submitting an ipa when submitting with Application Loader
我想将我的游戏提交到 mac 应用商店,但我一直收到 "The Info.plist indicates a Mac app, but submitting an 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
我的问题是,在所有这一切之后,Application Loader 给了我 "The Info.plist indicates a Mac app, but submitting an ipa" 即使文件扩展名为 .pkg!有帮助吗?
我遇到了同样的问题...这似乎是 Application Loader 3.6 的问题。
下载以前版本的 Application Loader,它应该可以工作(使用 xCode 7.3.1 附带的 Application Loader 3.5 进行测试)。
我想将我的游戏提交到 mac 应用商店,但我一直收到 "The Info.plist indicates a Mac app, but submitting an 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
我的问题是,在所有这一切之后,Application Loader 给了我 "The Info.plist indicates a Mac app, but submitting an ipa" 即使文件扩展名为 .pkg!有帮助吗?
我遇到了同样的问题...这似乎是 Application Loader 3.6 的问题。
下载以前版本的 Application Loader,它应该可以工作(使用 xCode 7.3.1 附带的 Application Loader 3.5 进行测试)。