th3rdwave / react-native-safe-area-context

A flexible way to handle safe area insets in JS. Also works on Android and Web!
MIT License
2.08k stars 191 forks source link

(RN 0.73.0) The following build commands failed: CompileC ... #460

Closed Medkhat closed 6 months ago

Medkhat commented 7 months ago

Hi there! I just upgraded my project to latest version of RN (073.0)

After pod install I ran the build, but I got an error like this:

The following build commands failed: CompileC /Users/user/Library/Developer/Xcode/DerivedData/AwesomeProject-agucnlkgassozxgjpelvmoxkzqle/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-safe-area-context.build/Objects-normal/arm64/RNCSafeAreaViewShadowNode.o /Users/user/Documents/Projects/mobile/AwesomeProject/node_modules/react-native-safe-area-context/common/cpp/react/renderer/components/safeareacontext/RNCSafeAreaViewShadowNode.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-safe-area-context' from project 'Pods') (1 failure)

Does anyone know the reason why?

jacobp100 commented 7 months ago

Did you clean your build folder?

Medkhat commented 7 months ago

I created a new project and reinstalled all packages with the new version and moved all project files to the new project. So, there is no build cache in this project.

jacobp100 commented 7 months ago

It’s probably not working on 0.73 with the new architecture then. If you want to take a look at it, it would be really appreciated. There’s only two of us that maintain this library, and I’m not using the new architecture

Medkhat commented 7 months ago

Before the update, I had version 0.72.7 and I also had the new architecture enabled there. So, I didn't have any problems with this package

AlirezaHadjar commented 7 months ago

Yeah, I am experiencing the same with 0.73 and the new architecture.

Screenshot 2023-12-07 at 12 20 43 PM
ikimiler commented 7 months ago

I had the same problem image

llr101 commented 7 months ago

You can try #454

jacobp100 commented 7 months ago

Please try package version 4.8.0-rc.0

Medkhat commented 7 months ago

@jacobp100 Thank you! Fixed)