Skip to content

iOS Lockscreen Widgets for release build require DEAD_CODE_STRIPPING to be disabled. #334

@kmemo

Description

@kmemo

What happened?

I have added iOS Lockscreen Widgets for my app by following the home_widget documentation, iOS Lock Screen widgets.

It worked fine with debug builds.

However, with release build:

"Dead Code Stripping" needed to be set to "No" in "Linking - General" section of Xcode build settings as described in the following Apple Developer Forum thread, https://developer.apple.com/forums/thread/655393.

What do you expect?

It may be worth mentioning in the home_widget documentation.

Relevant log output

Execute in a terminal and put output into the code block below

Output of: flutter doctor -v

On which Platform do you experience this issue?

iOS

Other information

No response

Are you interested in working on a PR for this?

  • I want to work on this

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions