Unable to build archive on xcode 14

This issue has been created since 2022-09-22.

Description

I am trying to build an archive of my app But it doesn’t been completed successfully. Following issues comes
error build: Build input file cannot be found: '/Users/myPCName/Library/Developer/Xcode/DerivedData/xyz-epljvllnlsnioqbzrozfbccnugpd/ArchiveIntermediates/Production/BuildProductsPath/GeneratedInfoPlistDotEnv.h'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it?

Version

react-native-cli: 2.0.1 react-native: 0.63.3

Output of npx react-native info

System:
OS: macOS 12.6
CPU: (8) arm64 Apple M1
Memory: 111.17 MB / 8.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.13.0 - /usr/local/bin/node
Yarn: 1.22.17 - /usr/local/bin/yarn
npm: 8.1.0 - /usr/local/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.11.3 - /usr/local/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: 2021.1 AI-211.7628.21.2111.8309675
Xcode: 14.0/14A309 - /usr/bin/xcodebuild
Languages:
Java: 15.0.1 - /usr/bin/javac
Python: Not Found
npmPackages:
@react-native-community/cli: ^4.10.1 => 4.13.0
react: 16.13.1 => 16.13.1
react-native: 0.63.3 => 0.63.3
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

hen I try to build an app for the simulator and build an archive for distribution this error comes

Snack, code example, screenshot, or link to a repository

xcode-issue

pnthach95 wrote this answer on 2022-09-22

It looks like react-native-config issue, not relate to react-native in general

cortinico wrote this answer on 2022-09-22

Closing as the issue @pnthach95 seems like the correct one to follow over 👍

More Details About Repo
Owner Name facebook
Repo Name react-native
Full Name facebook/react-native
Language JavaScript
Created Date 2015-01-09
Updated Date 2022-10-07
Star Count 105180
Watcher Count 3671
Fork Count 22481
Issue Count 2230

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Improved Data Qualifier Automation Support 0 2022-09-22 2022-09-24
Enable pod antiaffinity by default 2 2022-09-08 2022-09-27
建议移除 "本指南参考《华为 C 语言编程指南 V 1.0》组织内容" 2 2021-11-05 2022-08-20
Getting "bad-precaching-response " error after service worker registeration is successful 16 2019-09-11 2022-10-04
No Solver is available 3 2016-08-05 2022-07-31
Something went wrong on Custom Apps pages 1 2022-06-27 2022-09-07
As a team, we need to perform load testing to enable stability and reliability (Local env) 3 2022-06-07 2022-09-09
feature request: ANSI codeblock support 0 2022-09-15 2022-10-05
Are action types currently used for type checking? 4 2021-06-09 2022-09-28
Polish translation 7 2020-06-26 2022-01-18
Make character sit/lie while doing some activities 3 2022-08-28 2022-09-28
Choose email provider button does not fill correctly in outbound emails 0 2022-01-25 2022-09-17
[bug] Error: Incomplete character sequence (decoding `Iconv` issue) 1 2020-04-24 2022-09-23
Ability of supporting xpath as a parameter to checkBox 4 2021-11-08 2022-07-12
Unable to NPM install after cloning this repo. 10 2021-09-08 2022-08-03
Implement localisation utilities 0 2021-02-09 2022-09-28
Create a new and recent github release that reflects the current state of the repo 2 2021-09-12 2022-09-30
Linux app doesn't respect system scroll speed 1 2022-02-02 2022-02-22
I used camerax in element . check this link https://www.linkedin.com/posts/amirhussein-soori_element-camerax-google-activity-6848991004385775616-Hv40 0 2021-10-03 2022-09-28
Access open replay with already applied filter when we share url. 0 2021-12-03 2022-09-07
Add multiple selection 0 2021-10-22 2022-09-30
[jUnit formatter] Skipped steps are considered as errors 3 2021-02-10 2022-10-02
Bug: RHS doesn't scroll all the way down 0 2022-09-15 2022-10-06
Bug: Renaming category creates a new category instead 0 2022-09-16 2022-10-06
Crash in Mapbox -[MGLMapboxEvents updateNonDisablingConfigurationValues] 0 2021-05-26 2022-09-19
504 Gateway Time-out on a IIS 7.0 Server. 1 2021-11-18 2022-10-04
Allow metadata reExport in smaller batches or continue where the previous request ended 0 2022-05-19 2022-10-04
How to generate shap values using part of the transformer sentiment analysis scores? 0 2021-11-03 2022-05-04
Invalid Argument Error 6 2021-07-12 2022-09-12
opa test `--ignore` not working as expected 2 2022-04-19 2022-10-02
Multiple webhooks endpoints sent at the same time 3 2021-07-22 2022-10-04
Cannot connect to external database 7 2021-02-09 2022-09-27
Gradle witness for 'jtorctrl' not updated for Tor 0.4.5 6 2021-11-04 2022-09-07
Option to specify maximum batch size for `scale_batch_size` 8 2022-01-03 2022-10-04
How can I get data from Frame’s image attribute and convert it to ByteBuffer 1 2021-02-03 2022-08-17
Helidon LRA coordinator docker image build failed due to Dockerfile issues 1 2021-12-06 2022-09-30
Issue with Azure Migrate 3 2021-07-29 2022-09-27
Create blank component for production 4 2017-03-23 2022-08-23
Remove provider config from module config 0 2021-11-01 2022-09-28
Failed to resolve - after successful bintrayUpload 3 2018-02-22 2022-09-29
Creating Filters using the Keyboard is more complex than need be 4 2021-08-05 2022-09-09
Uneven experience with k8s 1.21.1 (?) 9 2021-07-11 2022-10-03
The 'Flush-ContainerHelperCache' command was found in the module 'BcContainerHelper', but the module could not be loaded. 1 2022-09-27 2022-09-29
Drop flash and Java applet support in lib/Applet.pm 3 2021-02-25 2022-09-28
if broker restarted, some consumer client continues fail. 1 2021-05-24 2022-09-28
Event trigger cstore_ddl_event_end,cstore_drop_event created and not owned by extension 3 2017-12-11 2022-09-25
Add email-to-download form for Firefox Focus page 2 2022-01-14 2022-07-23
Extension doesn't run in a clean Firefox Profile 3 2022-02-28 2022-10-04
Add three News P3A questions related to usage time 9 2022-05-19 2022-07-31
repeating exit 1 appears in terminal. 3 2016-09-17 2021-10-20