question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build on IOS failed

See original GitHub issue

Description

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:closed
  • Created a year ago
  • Reactions:3
  • Comments:15 (3 by maintainers)

github_iconTop GitHub Comments

8reactions
olegtechcommented, Oct 3, 2022

@cipolleschi I’ve resolved it:

According to Firebase docs:

image

What I did:

  • cd ios and added to the top in Podfile: use_frameworks! :linkage => :static
  • in Podfile - commented :flipper_configuration => FlipperConfiguration.enabled
  • pod install --repo-update

And it is working for me 😉

1reaction
michaelkozahcommented, Nov 30, 2022

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 ❤️

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build Failed — but no reason! | Apple Developer Forums
Hi, I'm experiencing weird Xcode behavior. I'm getting "build failed" after some alterations to the code, but Xcode will NOT give me the...
Read more >
Failed to build iOS app Error output from Xcode build
app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks/CoreFoundation.
Read more >
Steps to resolve failed to build iOS app error - YouTube
Steps to resolve failed to build iOS app error :1. rm ios /Podfile2. flutter pub upgrade3. flutter pub run4. flutter clean && flutter ......
Read more >
Flutter iOS build failed · Issue #100161 - GitHub
Steps to Reproduce problem started after upgrading flutter and firebase core, firestore, auth to latest version 2022-03-15 23:23:28.852 ...
Read more >
iOS build fail - KonyLogger.Framework error
Hi Team. We are facing issue building in iOS for our project. Attached is the error we see. We tried adding Binary and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found