Skip to content

Conversation

mugikhan
Copy link
Contributor

@mugikhan mugikhan commented Oct 18, 2024

Description

The framework bundle for powersync-sqlite-core.framework was causing a "Malformed Framework" error because it was missing the required symbolic links that are part of the standard framework structure (Framework Anatomy).
The framework lacked the Versions directory and symlinks (Versions/Current and powersync-sqlite-core), which are necessary for proper framework versioning.

The changes include the following:

Versioned Framework Directory Structure:

  • A Versions directory is now created within the framework bundle.
  • The binary is placed in Versions/A/powersync-sqlite-core.
    Symlinks:
  • A Versions/Current symlink is created, pointing to Versions/A.
  • A root-level symlink (powersync-sqlite-core) is created, pointing to Versions/Current/powersync-sqlite-core.

Directory structure
Screenshot 2024-10-18 at 19 53 55

Testing

I've tested that the new framework structure works by deploying a test app to TestFlight ensuring there are no "Malformed Framework" errors.

@mugikhan mugikhan marked this pull request as ready for review October 21, 2024 09:05
@mugikhan mugikhan merged commit e44cf5b into main Oct 21, 2024
12 checks passed
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