Build on IOS failed
See original GitHub issueDescription
I’m trying to build my app on Mac for iOS, when I try to build the app he gives me an error
The following build commands failed: CompileC /Users/gbdev/Library/Developer/Xcode/DerivedData/GBWebApp-dgxghrfnprondmbkxeptlzyzcmeu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-logger.build/Objects-normal/arm64/react_native_log.o /Users/gbdev/Desktop/ProgettiCA/rn-GBAppWeb/node_modules/react-native/ReactCommon/logger/react_native_log.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'React-logger' from project 'Pods') (1 failure)
I have tried to clean cache and everything I can do and find on internet, but nothing of these works.
Version
0.69.3
Output of npx react-native info
System: OS: macOS 12.6 CPU: (8) arm64 Apple M1 Memory: 129.89 MB / 8.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 18.9.0 - /opt/homebrew/bin/node Yarn: Not Found npm: 8.19.1 - /opt/homebrew/bin/npm Watchman: 2022.09.19.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.11.3 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 16.0, macOS 12.3, tvOS 16.0, watchOS 9.0 Android SDK: Not Found IDEs: Android Studio: Not Found Xcode: 14.0/14A309 - /usr/bin/xcodebuild Languages: Java: Not Found npmPackages: @react-native-community/cli: Not Found react: 18.0.0 => 18.0.0 react-native: ^0.69.3 => 0.69.5 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found
Steps to reproduce
npm run iOS to run iOS app, on building phase he stops and gave me the error I wrote before.
Snack, code example, screenshot, or link to a repository
I don’t have any code to show, it’s not a my code problem
Issue Analytics
- State:
- Created a year ago
- Reactions:3
- Comments:15 (3 by maintainers)
Top GitHub Comments
@cipolleschi I’ve resolved it:
According to Firebase docs:
What I did:
cd ios
and added to the top in Podfile:use_frameworks! :linkage => :static
:flipper_configuration => FlipperConfiguration.enabled
pod install --repo-update
And it is working for me 😉
Thanks for your support but it turns out to be an error caused RNFirebase. I found out by opening the project.xcworkspace on Xcode and going through what seems to be failing my build. I noticed that the RNFirebase was failing my build so I tried uninstalling it and it worked. My project was up and running again. Anyway, thank you guys for the help and support ❤️