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

The build fail on iOS in react-native 0.73.2 with Fabric enabled #606

Open
Pnlvfx opened this issue Jan 10, 2024 · 2 comments
Open

The build fail on iOS in react-native 0.73.2 with Fabric enabled #606

Pnlvfx opened this issue Jan 10, 2024 · 2 comments

Comments

@Pnlvfx
Copy link

Pnlvfx commented Jan 10, 2024

** BUILD FAILED **

The following build commands failed:
CompileC /Users/simo97/Library/Developer/Xcode/DerivedData/baby_music-giujgitoxilyejamwsanzkibqfzo/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/react-native-blur.build/Objects-normal/arm64/VibrancyViewManager.o /Users/simo97/Desktop/baby_music/node_modules/@react-native-community/blur/ios/VibrancyViewManager.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-blur' from project 'Pods')
CompileC /Users/simo97/Library/Developer/Xcode/DerivedData/baby_music-giujgitoxilyejamwsanzkibqfzo/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/react-native-blur.build/Objects-normal/arm64/VibrancyView.o /Users/simo97/Desktop/baby_music/node_modules/@react-native-community/blur/ios/VibrancyView.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-blur' from project 'Pods')
CompileC /Users/simo97/Library/Developer/Xcode/DerivedData/baby_music-giujgitoxilyejamwsanzkibqfzo/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/react-native-blur.build/Objects-normal/arm64/BlurViewManager.o /Users/simo97/Desktop/baby_music/node_modules/@react-native-community/blur/ios/BlurViewManager.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-blur' from project 'Pods')
CompileC /Users/simo97/Library/Developer/Xcode/DerivedData/baby_music-giujgitoxilyejamwsanzkibqfzo/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/react-native-blur.build/Objects-normal/arm64/BlurView.o /Users/simo97/Desktop/baby_music/node_modules/@react-native-community/blur/ios/BlurView.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-blur' from project 'Pods')
(4 failures)

System:
OS: macOS 14.2.1
CPU: (8) x64 Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz
Memory: 571.42 MB / 8.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 21.5.0
path: /usr/local/bin/node
Yarn:
version: 1.22.19
path: ~/.yarn/bin/yarn
npm:
version: 10.2.4
path: /usr/local/bin/npm
Watchman:
version: 2023.12.04.00
path: /usr/local/bin/watchman
Managers:
CocoaPods:
version: 1.14.3
path: /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 23.2
- iOS 17.2
- macOS 14.2
- tvOS 17.2
- watchOS 10.2
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode:
version: 15.1/15C65
path: /usr/bin/xcodebuild
Languages:
Java:
version: 11.0.21
path: /usr/bin/javac
Ruby:
version: 2.7.6
path: /Users/simo97/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.73.2
wanted: ^0.73.2
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true

@Pnlvfx Pnlvfx changed the title The build fail on iOS in react-native 0-73.2 with Fabric enabled The build fail on iOS in react-native 0.73.2 with Fabric enabled Jan 10, 2024
@isinuyk
Copy link

isinuyk commented Jan 16, 2024

Got the same problem on RN 0.73.2 Fabric enabled

Was able to temporary fix it by adding this script into post install script of Podfile

    installer.pods_project.targets.each do |target|
      if target.name === "react-native-blur"
        append_header_search_path(target, "${PODS_ROOT}/Headers/Private/Yoga")
      end
    end

and also define this append_header function at the top of Podfile

def append_header_search_path(target, path)
  target.build_configurations.each do |config|
      # Note that there's a space character after `$(inherited)`.
      config.build_settings["HEADER_SEARCH_PATHS"] ||= "$(inherited) "
      config.build_settings["HEADER_SEARCH_PATHS"] << path
  end
end

@longnguyen2508
Copy link

Got the same issue while enabled New Architecture on 0.73.3

In Build/Products/Debug-iphonesimulator/React-Fabric/React_Fabric.framework/Headers/react/renderer/core/PropsParserContext.h

'react/utils/ContextContainer.h' file not found

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

No branches or pull requests

3 participants