Skip to content

Packaged debug builds crash on launch #471

Description

@BastianKusserow

Hey!

after doing something like \.gradlew archive,Debug,... package with a Debug build, the app crashes right on launch. I debugged that a bit and the error message was telling me AppName.debug.dylib not valid for use in process: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed..

Turns out, it seems like Xcode 16 introduced a new build setting, called ENABLE_DEBUG_DYLIB that, when set to YES, produces a file named AppName.debug.dylib, that is loaded by the main binary on launch. That dylib apparently is not signed properly (and I am not sure if it should be there in the first place) as its mainly used that things like previews work properly.

I worked around that by providing ENABLE_DEBUG_DYLIB=NO as additional build parameter, but wonder if that should maybe be done by the gxp?

Happy to do a PR on that once clarified how to proceed with that.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions