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

Unable to build iOS codegen in latest version: 0.44.2 #703

Closed
1 of 2 tasks
shubhamguptadream11 opened this issue Nov 25, 2024 · 2 comments
Closed
1 of 2 tasks

Unable to build iOS codegen in latest version: 0.44.2 #703

shubhamguptadream11 opened this issue Nov 25, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@shubhamguptadream11
Copy link

Description

In iOS I am getting following error by simply running fresh package build using

npx create-react-native-library@latest react-native-performance-tracker

Android is working fine.

Screenshot of error:
Image

Packages

  • create-react-native-library
  • react-native-builder-bob

Selected options

Steps to reproduce:

  • Create a new package: npx create-react-native-library@latest react-native-performance-tracker
  • Provide all details
  • Select Fabric backward compatible mode
  • Create package
  • Run yarn install and cd example/ios && pod install
  • Either run yarn example ios or Try to run it on Xcode

Image

Link to repro

https://github.com/callstack/react-native-builder-bob

Environment

System:
  OS: macOS 14.6.1
  CPU: (12) arm64 Apple M2 Pro
  Memory: 493.97 MB / 32.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 18.20.2
    path: ~/.nvm/versions/node/v18.20.2/bin/node
  Yarn:
    version: 3.6.1
    path: ~/.nvm/versions/node/v18.20.2/bin/yarn
  npm:
    version: 10.9.1
    path: ~/.nvm/versions/node/v18.20.2/bin/npm
  Watchman:
    version: 2024.08.26.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: /Users/shubhamgupta/.rvm/gems/ruby-3.2.2/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.4
      - iOS 17.4
      - macOS 14.4
      - tvOS 17.4
      - visionOS 1.1
      - watchOS 10.4
  Android SDK: Not Found
IDEs:
  Android Studio: Not Found
  Xcode:
    version: 15.3/15E204a
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 1.8.0_292
    path: /Users/shubhamgupta/.sdkman/candidates/java/current/bin/javac
  Ruby:
    version: 3.2.2
    path: /Users/shubhamgupta/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.1
    wanted: 15.0.1
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.3
    wanted: 0.76.3
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true
@shubhamguptadream11 shubhamguptadream11 added the bug Something isn't working label Nov 25, 2024
@ian-wd
Copy link

ian-wd commented Nov 29, 2024

just update your ios/PerformanceTrackerView.mm

from

#import "ComponentDescriptors.h"
#import "EventEmitters.h"
#import "Props.h"
#import "RCTComponentViewHelpers.h"

to

#import "generated/PerformanceTrackerViewSpec/ComponentDescriptors.h"
#import "generated/PerformanceTrackerViewSpec/EventEmitters.h"
#import "generated/PerformanceTrackerViewSpec/Props.h"
#import "generated/PerformanceTrackerViewSpec/RCTComponentViewHelpers.h"

@satya164
Copy link
Member

satya164 commented Dec 4, 2024

This should be fixed in the latest version

@satya164 satya164 closed this as completed Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants