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

Solve the grey screen when ios project is released. #23

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Aaron009
Copy link

@Aaron009 Aaron009 commented Feb 6, 2021

No description provided.

@brickpop
Copy link
Owner

brickpop commented Feb 7, 2021

Thank you for the PR, @Aaron009

I understand that your code would be addressing the issue from #16 is this right?

I need to fully understand why these changes (mostly on the example app) would solve the release mode dropping the library symbols problem

@Aaron009
Copy link
Author

I just modified the following under the file "ios/Classes/SwiftMylibPlugin.swift".

  public func dummyMethodToEnforceBundling() {
    // dummy calls to prevent tree shaking
+   rust_cstr_free(nil);
    rust_greeting("");
  }

Regarding the problem of gray screen, I deleted the project and created it again.

Regarding why the release mode deletes symbols, I think this may be an optimization of ios. Uncalled symbols are deleted to reduce the size of the package.
This is just my guess. If anyone knows it, please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants