Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task
kmemo opened this issue Feb 10, 2025 · 0 comments
Open
1 task
Labels
bug Something isn't working

Comments

@kmemo
Copy link

kmemo commented Feb 10, 2025

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
@kmemo kmemo added the bug Something isn't working label Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant