Skip to content

polygen.rb is making assumptions on the location of the ReactNativeWebAssemblyHost.podspec #133

Open
@kraenhansen

Description

@kraenhansen

Before submitting a new issue

  • I tested using the latest version of the library, as the bug might be already fixed.
  • I tested using a supported version of react native.
  • I checked for possible duplicate issues, with possible answers.

Bug summary

I have an ./example app directory inside a mono-repo and the @callstack/polygen dependency is hoisted to the root node_modules directory. I'm running npx polygen generate in my example app, so the output is written to example/node_modules/.polygen-out, but the polygen.rb is expecting the ReactNativeWebAssemblyHost.podspec to be relative to itself instead of resolving the location of this file relative to the podfile.

pod 'ReactNativeWebAssemblyHost', :path => "../node_modules/.polygen-out/host"

Likely related to #125

Library version

0.2.1

Environment info

System:
  OS: macOS 15.5
  CPU: (14) arm64 Apple M3 Max
  Memory: 131.39 MB / 36.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 22.15.1
    path: ~/.local/state/fnm_multishells/24397_1747992435184/bin/node
  Yarn: Not Found
  npm:
    version: 10.9.2
    path: ~/.local/state/fnm_multishells/24397_1747992435184/bin/npm
  Watchman:
    version: 2025.04.14.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: /usr/local/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.2
      - iOS 18.2
      - macOS 15.2
      - tvOS 18.2
      - visionOS 2.2
      - watchOS 11.2
  Android SDK: Not Found
IDEs:
  Android Studio: 2024.3 AI-243.24978.46.2431.13363775
  Xcode:
    version: 16.2/16C5032a
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.15
    path: /usr/bin/javac
  Ruby:
    version: 3.4.3
    path: /opt/homebrew/opt/ruby/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 19.0.0
    wanted: 19.0.0
  react-native:
    installed: 0.79.2
    wanted: 0.79.2
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: Not found
  newArchEnabled: Not found
iOS:
  hermesEnabled: true
  newArchEnabled: true

Steps to reproduce

See the bug summary.

Reproducible sample code

I'd be happy to provide this if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions