# React Native iOS build. Too long with no output (exceeded 10m0s): context deadline exceeded

**URL:** <https://discuss.circleci.com/t/react-native-ios-build-too-long-with-no-output-exceeded-10m0s-context-deadline-exceeded/52409>\
**Category:** Mobile\
**Tags:** ios, xcodebuild\
**Created:** [November 27, 2024, 3:14pm UTC](https://discuss.circleci.com/t/react-native-ios-build-too-long-with-no-output-exceeded-10m0s-context-deadline-exceeded/52409 "2024-11-27T15:14:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![softgurus.2021](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@softgurus.2021](https://discuss.circleci.com/u/softgurus.2021)\
**Post date:** [November 27, 2024, 3:14pm UTC](https://discuss.circleci.com/t/react-native-ios-build-too-long-with-no-output-exceeded-10m0s-context-deadline-exceeded/52409/1 "2024-11-27T15:14:46Z")

</div>

I have been trying a lot to build my React native iOS app on circleCI through fastlane, but every time it gives above error after completing 95% of the build steps. I figured out this percentage by seeing logs and comparing those with my local build logs.

The configuration is

- MacOS
- XCode 16.2.0
- React native app
- Building for iOS
- The build is being done through fastlane (build\_app lane) and it is working fine on local Mac
- 
- 

The things I tried

- Upgrading plan to $15 and choosing various Mac machines (as android build was also giving same error and after upgrading plan and using xLarge machine, the error went away and build was successful).
- the iOS machines I tested are
- `m2pro.large`, `macos.m1.medium.gen1`, `macos.m1.large.gen1`
- Increasing the `no_output_timeout` to 20 minutes. It didn’t help, rather wasted more build times as process stopped after 8–9 minutes as earlier and was in same state for 20 minutes.

What I foresee is that the build process is killed unexpectedly, although logs show no such thing. Because, generally Xcode build keeps on populating logs every second and no output on console means archive is interrupted due to resource limitations or some other reason.

Below I have shared some logs from the ending of various builds, every time it stopped on a different step, ranging 90-95% of build task.

**Output-1**

> [14:33:00]: ▸ Compiling RNSScreenNavigationContainer.mm  
> [14:33:00]: ▸ Compiling RNSScreenContainer.mm  
> [14:33:00]: ▸ Compiling RNSScreen.mm  
> [14:33:00]: ▸ Compiling RNSFullWindowOverlay.mm  
> [14:33:00]: ▸ Compiling RNSConvert.mm  
> [14:33:00]: ▸ Compiling RCTImageComponentView+RNSScreenStackHeaderConfig.mm  
> [14:33:00]: ▸ Touching RCTImage.framework (in target ‘React-RCTImage’ from project ‘Pods’)  
> [14:33:00]: ▸ Compiling RNScreens\_vers.c

> Too long with no output (exceeded 10m0s): context deadline exceeded

**Output-2**

> [19:09:36]: ▸ Compiling FeaturesConfig.cpp  
> [19:09:36]: ▸ Compiling FabricUtils.cpp  
> [19:09:36]: ▸ Compiling EventHandlerRegistry.cpp  
> [19:09:36]: ▸ Compiling AnimatedSensorModule.cpp  
> [19:09:36]: ▸ Compiling RNReanimated\_vers.c  
> [19:09:36]: ▸ Processing RNQuickAction-Info.plist  
> [19:09:36]: ▸ Touching react\_native\_version\_number.framework (in target ‘react-native-version-number’ from project ‘Pods’)  
> [19:09:36]: ▸ Touching react\_native\_tracking\_transparency.framework (in target ‘react-native-tracking-transparency’ from project ‘Pods’)  
> [19:09:38]: ▸ Processing RNQrGenerator-Info.plist  
> [19:09:38]: ▸ Touching MixpanelReactNative.framework (in target ‘MixpanelReactNative’ from project ‘Pods’)  
> [19:09:38]: ▸ Compiling RNQuickAction\_vers.c

> Too long with no output (exceeded 10m0s): context deadline exceeded

I can’t get to know why is it terminating without any errors. Searched alot but nothing found of help. Below is my fastlane command for reference

> build\_app(  
> scheme: options[:scheme],  
> workspace: “ios/redacted.xcworkspace”,  
> export\_options: { method: “app-store” },  
> xcargs: “-verbose”  
> )

---

<div class="post-metadata">

**Author:** ![benlaverriere](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/benlaverriere/32/35810_2.png) [@benlaverriere](https://discuss.circleci.com/u/benlaverriere)\
**Post date:** [December 3, 2024, 4:10pm UTC](https://discuss.circleci.com/t/react-native-ios-build-too-long-with-no-output-exceeded-10m0s-context-deadline-exceeded/52409/2 "2024-12-03T16:10:20Z")

</div>

This is a bit of a shot in the dark, but I notice you’re using Xcode 16.2, which is still in beta. Does this still happen if you use 16.1?

---

<div class="post-metadata">

**Author:** ![softgurus.2021](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@softgurus.2021](https://discuss.circleci.com/u/softgurus.2021)\
**Post date:** [December 3, 2024, 4:41pm UTC](https://discuss.circleci.com/t/react-native-ios-build-too-long-with-no-output-exceeded-10m0s-context-deadline-exceeded/52409/3 "2024-12-03T16:41:25Z")

</div>

I actually figured it out.

The issue was the incorrectly setup keychain on circleCI image. The logs don’t tell you this, and in fact the build part was successful, and the error came while checking certificates. But probably logs are lagging behind than actual build process so build process terminated and logs could not make up till the UI. That is the reason the logs stopped at around 95-100% of build process.

How I figured it out?  
The detailed logs of xCode build are available at the path

```auto
/Users/distiller/Library/Logs/gym/your_target_name.log

```

Analyzing these logs suggested that the keychain was not setup. So I added this lane

> setup\_circle\_ci

in my fastlane before starting archive and archive was successful.

For all those struggling with errors and if the logs on UI are not helpful, do take a look at the detailed log file. Trying searching for keywords like `error` in that long file.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [December 10, 2024, 4:42pm UTC](https://discuss.circleci.com/t/react-native-ios-build-too-long-with-no-output-exceeded-10m0s-context-deadline-exceeded/52409/4 "2024-12-10T16:42:20Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
