问题描述
我尝试将 Java 桌面应用程序上传到 Mac Apple Store。我在下面尝试了这个命令,但失败了。我不知道出了什么问题。将应用程序发布到 Apple Store 的正确方法是什么?该软件之前已经过公证。
zip 文件的副本是 here 也许是 Info.plist 文件中的问题?
$ xcrun altool --validate-app --file DbSchema.zip -t macOS --username "..." --password "..."
2021-02-09 21:12:20.667 altool[1085:16165] *** Error: Unable to validate archive 'DbSchema.zip': (
"Error Domain=ITunesSoftwareServiceErrorDomain Code=-20008 \"The Info.plist indicates an iOS app,but submitting a pkg or mpkg.\" UserInfo={NSLocalizedDescription=The Info.plist indicates an iOS app,but submitting a pkg or mpkg.,NSLocalizedFailureReason=Unable to validate your application.}"
)
Info.plist 在这里:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist SYstem "file://localhost/System/Library/DTDs/PropertyList.dtd">
<plist version="0.9">
<dict>
<key>CFBundleName</key>
<string>DbSchema</string>
<key>CFBundleExecutable</key>
<string>JavaApplicationStub</string>
<key>CFBundleIconFile</key>
<string>app.icns</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleIdentifier</key>
<string>com.dbschema.dbschema</string>
<key>CFBundLeversion</key>
<string>8.3.5</string>
<key>CFBundleShortVersionString</key>
<string>8.3.5</string>
<key>CFBundleGetInfoString</key>
<string>8.3.5</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>NSHighResolutionCapable</key>
<true/>
<key>LSHasLocalizeddisplayName</key>
<true/>
<key>CFBundleSupportedplatforms</key>
<array>
<string>osx</string>
</array>
<!-- I4J_INSERT_DOCTYPE -->
<!-- I4J_INSERT_URLTYPE -->
<key>i4j.baseDir</key>
<string>$APP_PACKAGE/Contents/Resources/app/</string>
<key>LSMinimumSystemVersion</key>
<string>10.11</string>
<key>i4j.appId</key>
<string>0607-8447-0273-3287</string>
<key>i4j.allowPassthrough</key>
<true/>
<key>i4j.minVersion</key>
<string>12</string>
<key>i4j.maxVersion</key>
<string>15</string>
<key>i4j.allowBeta</key>
<true/>
<key>i4j.vmIdPrefix</key>
<string></string>
<key>JavaVM</key>
<dict>
<key>MainClass</key>
<string>com.install4j.runtime.launcher.MacLauncher</string>
<key>VMOptionArray</key>
<array>
<string>-Dfile.encoding=UTF-8</string>
<string>-Dprism.maxvram=2G</string>
<string>-Xmx2048M</string>
<string>-xms128M</string>
<string>-Dinstall4j.launcherId=30</string>
<string>-Dinstall4j.swt=false</string>
<string>-Dexe4j.moduleName=$APP_PACKAGE</string>
</array>
<key>OptionsFile</key>
<string>$APP_PACKAGE/Contents/vmoptions.txt</string>
<key>ArgumentArray</key>
<array>
</array>
<key>SearchSequence</key>
<array>
<string>Y</string>
<string>EJAVA_HOME</string>
<string>EJDK_HOME</string>
</array>
<key>VersionInfo</key>
<string>0_2982400925</string>
<key>SplashFile</key>
<string>$APP_PACKAGE/Contents/Resources/app/.install4j/s_1wxjskx.png</string>
<key>Classpath</key>
<string>$APP_PACKAGE/Contents/Resources/app/.install4j/i4jruntime.jar:$APP_PACKAGE/Contents/Resources/app/lib/*</string><!-- I4J_INSERT_CLAsspATH -->
<key>WorkingDirectory</key>
<string>$APP_PACKAGE/Contents/Resources/app/.</string>
</dict>
</dict>
</plist>
该应用程序是用 Java 编写的。我使用以下命令创建了 zip:zip -r DbSchema.zip DbSchema.app
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)