iOS Build Timeout During Optimizer Phase - "unused Method cull removed 9357 methods in 482 seconds" #5235
-
|
Hi, I'm using a Codename One Maven project with Codename One version 7.0.218. The project was previously building successfully for iOS. Recently, I added a very small Android Native Interface (AndroidStatusBarNative) used only to set LIGHT_STATUS_BAR on Android. The Android build works correctly, but, after this change, when building for iOS I'm getting a timeout during the optimization phase. 74 native files74 native files
|
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 6 replies
-
|
I understand that this is an error from the build server, right? Can you send the link to the log in the website chat so we can look at it? |
Beta Was this translation helpful? Give feedback.
-
|
Thanks. Can you see if it works now? We pushed a fix. It seems the ParparVM process was choking on a large class tree to a large part because of the growth of the Codename One API over the past few months. The solution we're trying is simply increasing the heap which would hopefully be enough to get it over the hurdle |
Beta Was this translation helpful? Give feedback.
-
|
We're having a hard time reproducing this as a test case but our current theory relates to the scale of native sources imported by dependencies that ran into an inefficiency in ParparVM. We pushed an update that should fix that issue. |
Beta Was this translation helpful? Give feedback.
-
|
That seems to be a problem with your code. It looks like you have a native interface called |
Beta Was this translation helpful? Give feedback.
-
|
Hi Shai,
I actually do have the iOS dummy implementation files, and they are named
using the package-style name shown in the build error:
com_iw_mobile_nativeimpl_AndroidStatusBarNativeImpl.h
com_iw_mobile_nativeimpl_AndroidStatusBarNativeImpl.m
Currently they are located in:
ios/src/main/native
in my Maven project.
So I suspect the issue may be that I placed them in the wrong directory, or
that Maven expects iOS native interface files in a different location.
Could you please confirm the correct location for these .h/.m files in a
Codename One Maven project?
Thanks!
Em sáb., 13 de jun. de 2026 às 21:54, Shai Almog ***@***.***>
escreveu:
… That seems to be a problem with your code. It looks like you have a native
interface called AndroidStatusBarNative and it's missing an iOS
implementation.
—
Reply to this email directly, view it on GitHub
<#5235?email_source=notifications&email_token=A6F7MAPCZCFICYD233BV3CD47XZTFA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZSHEZTQNRQUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVRTG633UMVZF6Y3MNFRWW#discussioncomment-17293860>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6F7MAL3RPTIV6FF3C2S5P347XZTFAVCNFSNUABHKJSXA33TNF2G64TZHMZTEOJXGM2DMNZ3IRUXGY3VONZWS33OHMYTAMRUG4YTKOFBOYBA>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/A6F7MAPQUSGOWQHD3CYCVCD47XZTFA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZSHEZTQNRQUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVJTG633UMVZF62LPOM>
and Android
<https://github.com/notifications/mobile/android/A6F7MAJYCNBDWTR4YDHWYNL47XZTFA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZSHEZTQNRQUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVZTG633UMVZF6YLOMRZG62LE>.
Download it today!
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
|
You need to use the stub generator when doing that since this is a pretty flaky task. Also most of the AndroidStatusBar stuff can probably be done using build hints and doesn't require native code. The default location would be |
Beta Was this translation helpful? Give feedback.
You need to use the stub generator when doing that since this is a pretty flaky task. Also most of the AndroidStatusBar stuff can probably be done using build hints and doesn't require native code.
The default location would be
ios/src/main/objectivec.