Posts

Post not yet marked as solved
1 Replies
790 Views
Hello, I have an Java application, DbSchema.app. I want to upload this to Apple Store using altool but I fail: xcrun altool --validate-app --file DbSchema.zip -t macOS --username "myuser" --password "mypass" ** 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.}" The 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.4</string> <key>CFBundleShortVersionString</key> <string>8.3.4</string> <key>CFBundleGetInfoString</key> <string>8.3.4</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>-Xmx512M</string> <string>-Xms64M</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_1vuio0g.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>
Posted
by dprutean.
Last updated
.
Post not yet marked as solved
0 Replies
449 Views
I try to publish a Java application on Mac Apple Store. I use a dmg file which is already notarised. The Apple documentation says about two commands: --validate-app and --upload-app xcrun altool --validate-app --file DbSchema_test.dmg -t osx --username "..." --password "..." 2020-11-25 20:05:45.409 altool[20430:3679858] *** Error: Unable to validate archive 'DbSchema_test.dmg': (     "Error Domain=ITunesSoftwareServiceErrorDomain Code=-21017 \"Could not find the main bundle or the Info.plist is missing a CFBundleIdentifier in 'DbSchema_test.dmg'.\" UserInfo={NSLocalizedDescription=Could not find the main bundle or the Info.plist is missing a CFBundleIdentifier in 'DbSchema_test.dmg'., NSLocalizedFailureReason=Unable to validate your application.}" I have checked the dmg image, and the Info.plist has a CFBundleIdentifier inside. A copy of the dmg file can be found on dbschema.com/download-beta/DbSchema_test.dmg What could be wrong?
Posted
by dprutean.
Last updated
.