java-Info.plist表示Mac应用程序,但是使用Application Loader提交时提交了ipa
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了java-Info.plist表示Mac应用程序,但是使用Application Loader提交时提交了ipa,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2679字,纯文字阅读大概需要4分钟。
内容图文
我想将游戏提交到Mac应用程序商店,但我不断收到“ 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
我的问题是,所有这些之后,即使文件扩展名为.pkg,Application Loader也会给我“ Info.plist指示Mac应用程序,但提交了ipa”!有什么帮助吗?
解决方法:
我遇到了同样的问题……这似乎是Application Loader 3.6的问题.
下载早期版本的Application Loader,它应该可以工作(已通过xCode 7.3.1附带的Application Loader 3.5进行了测试).
内容总结
以上是互联网集市为您收集整理的java-Info.plist表示Mac应用程序,但是使用Application Loader提交时提交了ipa全部内容,希望文章能够帮你解决java-Info.plist表示Mac应用程序,但是使用Application Loader提交时提交了ipa所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。