Xcode Construct Failure: “React Native Construct Points on iOS. Xcode Error Code 65 and AppDelegate.m Selector Error”

0
48


Context:

USING MERN STACK.

I’ve a React Native undertaking that was initiated in 2021. It used to run with out points utilizing npm set up, npx pod-install, and npm run ios. Nonetheless, since Might 2023, I’ve encountered a number of errors and dependency issues, probably resulting from Xcode or macOS updates.

After updating the undertaking’s dependencies to resolve the preliminary errors, I’m now caught with a remaining construct error that I can not seem to resolve. Operating the undertaking by means of Xcode (opening MYVU.xcworkspace) yields a unique error. Under are the small print of the errors I am at present going through.

Errors:

1. Terminal Error on npm run ios:
Initially, I obtain the standard construct course of logs, but it surely ends with:

“error Did not construct iOS undertaking. We ran “xcodebuild” command but it surely exited with error code 65. To debug construct logs additional, think about constructing your app with Xcode.app, by opening MYVU.xcworkspace.

The particular construct command failure is:
“The next construct instructions failed:
CompileC /Customers/bolt/Library/Developer/Xcode/DerivedData/MYVU-azqcqluibbqvqnguxonkqyoewstd/Construct/Intermediates.noindex/Pods.construct/Debug-iphonesimulator/RCT-Folly.construct/Objects-normal/x86_64/SysUio.o /Customers/bolt/Desktop/myvu-mobile-main/ios/Pods/RCT-Folly/folly/portability/SysUio.cpp regular x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in goal ‘RCT-Folly’ from undertaking ‘Pods’)
(1 failure)”
The particular construct command failure is:

2. Xcode Error in AppDelegate.m:
When operating the undertaking immediately from Xcode (MYVU.xcworkspace), I encounter this error in AppDelegate.m:

“No seen @interface for ‘RCTBundleURLProvider’ declares the selector ‘jsBundleURLForBundleRoot:fallbackResource:'”

Atmosphere:

React Native Model: 18.2.0
Xcode Model: 15.0.1
macOS Model: Sonoma 14.1.1
Node Model: v21.1.0

Makes an attempt to Resolve:

Up to date undertaking dependencies to newest variations.
Cleaned construct folder and deleted derived information in Xcode.
Tried resetting iOS simulators.
Looked for related points however could not discover a resolution that matches.

Anticipated:

The Simulator ought to open and construct the app.