Skip to content

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