Skip to content

Script phase to auto-link executes too late #213

Closed

Description

@kraenhansen

When rebuilding the app, changes to add-ons don't materialize on the first, but instead the second rebuild of the app. I thought this was because the auto-linking script phase executes too late and we should set :execution_position => :before_compile to make it execute sooner in the build process, but we're already doing that.

We discovered this bug as we were live streaming: https://www.youtube.com/live/uN6rCaJMPzI?t=8646s

Activity

  1. added
    Apple 🍎
    Linking 🔗
    on Aug 1, 2025
  2. kraenhansen commented on Sep 2, 2025

    @kraenhansen
    CollaboratorAuthor

    I wonder if it would help XCode if we emit a xcfilelist file enumerating the xcframeworks copied in and reference this via :output_file_lists: https://guides.cocoapods.org/syntax/podspec.html#tab_script_phases

  3. added
    bug
    on Sep 2, 2025
  4. kraenhansen commented on Sep 2, 2025

    @kraenhansen
    CollaboratorAuthor

    I've found a workaround by manually opening the Xcode project and re-arranging the order of the script phases:

    Image
  5. linked a pull request that will close this issueApple link without cocoapods #351on Feb 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Apple 🍎Linking 🔗bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions