question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Upload to Apple App Store (Universal macOS Binary required, signing issues)

See original GitHub issue

To be able to upload a Compose for Desktop app to the Apple App Store, there are multiple issues that need to be resolved.

  • Universal macOS Binary (optional)
  • Signing for Mac App Store (required) #1613
  • Fix TestFlight builds (optional) #1812

Universal macOS Binary (optional)

To be able to support both Intel and ARM64 Macs natively, there needs to be a way to build a Universal pkg (Intel + ARM64). That is needed to be able to upload it to the Apple App Store. The only alternative for now is to upload an Intel-only app.

Screenshot 2021-12-15 at 19 56 49

I tried adding both compose.desktop.macos_arm64 and compose.desktop.macos_x64 dependencies as suggested on Slack. However, the produced app is still not Universal.

I am building the project on an M1 Mac with an ARM64 JDK. When doing a right click and get info on the produced .app it shows Apple Silicon instead of Universal.

Furthermore, I am not sure what to do about the bundled JRE. Would I need to include it twice (for Intel and for ARM64) or so?

Slack discussion: https://kotlinlang.slack.com/archives/C01D6HTPATV/p1639570539349100

Found some information on this here: https://bugs.openjdk.java.net/browse/JDK-8266259

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
Thomas-Voscommented, Feb 6, 2022

I opened a TSI with Apple and am working with them to get the TestFlight issues resolved. They were able to provide me with more detailed error message, so I am working on that.

Already opened some PRs with other related fixes: #1797, #1798, #1799

0reactions
Thomas-Voscommented, Jul 12, 2022

Apple approved my Compose app for the Mac App Store: https://apps.apple.com/app/id1462943921

TestFlight builds are also working great. Now all that is missing is a universal build so that M1 is supported natively.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to distribute to the App Store, failed to cloud sign
It is failing when signing bundled universal binaries that where already signed before and are already in the App Store, no modification to...
Read more >
Xcode won't build for universal binary - Apple Developer
I am porting a macOS Objective-C app from just Intel silicon to universal binary -- Intel and Apple silicon both -- using Xcode...
Read more >
Porting Your macOS Apps to Apple Silicon
Overview. Port your existing macOS app to Apple silicon by creating a universal binary and modifying your code to handle architectural differences.
Read more >
App Store Review Guidelines - Apple Developer
The App Store Review Guidelines provide guidance and examples across a range of development topics, including user interface design, ...
Read more >
Preparing your app for distribution - Apple Developer
If you want to offer the Mac version separately, change its bundle ID in Xcode, then create a separate app record for the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found