Does someone publisher their Compose Multiplatform...
# compose-desktop
s
Does someone publisher their Compose Multiplatform macOS app (DMG/PKG) directly to the Apple App Store for macOS? I tried this some time ago and it didn't work as Apple did not expect the binary in TestFlight. I wonder if it works now.
e
๐Ÿ‘ 1
๐Ÿ‘๐Ÿป 1
s
I hope someone reaches out and shows me his app on the store, so I can rest assured that there is a way to make it work. ๐Ÿ˜„
e
well https://apps.apple.com/app/id1462943921 is linked in the issue and @Thomas is in this slack
๐Ÿ‘ 2
t
Yes, Hue Essentials is written in compose using JVM target
s
So you had no issue uploading it to testflight? How did you generate the DMG/PKG file? jpackage or Conveyor?
Last time I tried it complained about that a beta version of XCode was used... but it wasn't
t
the built in tasks, so jpackage
Yes, I got the same error for beta version, but there is an easy fix. You can customise the infoPlist properties with
extraKeysRawXml
. You need to add some stuff. Create a brand new (empty) xcode project, build it, and check the generated Info.plist in the app package. Add these values to your compose app (these are normally missing).
In my case:
Copy code
// Workaround for external testing on TestFlight: <https://forum.unity.com/threads/testflight-external-build-says-app-is-using-beta-version-of-xcode.1214448/#post-7885261>
// Grab the values by building an Xcode project and inspecting the generated Info.plist in the app package
appendLine("  <key>BuildMachineOSBuild</key>")
appendLine("  <string>22C65</string>")
appendLine("  <key>DTCompiler</key>")
appendLine("  <string>com.apple.compilers.llvm.clang.1_0</string>")
appendLine("  <key>DTPlatformBuild</key>")
appendLine("  <string>14C18</string>")
appendLine("  <key>DTPlatformName</key>")
appendLine("  <string>macosx</string>")
appendLine("  <key>DTPlatformVersion</key>")
appendLine("  <string>13.1</string>")
appendLine("  <key>DTSDKBuild</key>")
appendLine("  <string>22C55</string>")
appendLine("  <key>DTSDKName</key>")
appendLine("  <string>macosx13.1</string>")
appendLine("  <key>DTXcode</key>")
appendLine("  <string>1420</string>")
appendLine("  <key>DTXcodeBuild</key>")
appendLine("  <string>14C18</string>")
Keep in mind that these values may be outdated, so best to grab the latest again
s
Thank you a lot, will try that. ๐Ÿ™
t
Great, if you encounter an error let me know, I probably got it as well in the past ๐Ÿ™‚
โค๏ธ 2
m
I've also pushed my macos app in the app store. I wrote so learnings here: https://www.marcogomiero.com/posts/2024/compose-macos-app-store/
๐Ÿ‘ 1