Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React native - Use of undeclared identifier 'RCTDevLoadingView'

I just updated Xcode (to version 12.5 (12E262)) and got this error in my react native project.

I searched everywhere, but I have not found anything and I do not have any experience with Swift/Objective-C to solve it myself.

here is a screenshot if it helps: enter image description here

Thanks for any help.

like image 295
Jan Kaifer Avatar asked Sep 03 '25 01:09

Jan Kaifer


1 Answers

It might be due to the import statement for <React/RCTDevLoadingView.h> being placed below the block of imports after #ifdef FB_SONARKIT_ENABLED, which might have been disabled when building/archiving.

Check out the link above to find out the proper way to import your dependencies - it should always be above #ifdef FB_SONARKIT_ENABLED.

EDIT: I recently encountered this exact issue after upgrading to Xcode 13.

like image 56
Javan Huang Avatar answered Sep 05 '25 14:09

Javan Huang