“React/RCTLog.h file not found” and “Bad receiver type 'int'”: Misplaced CocoaPods files to blame?

INTRO

Yesterday, I installed Cocoapods, Yarn, React Native, and other programs because I had the errors listed on this page, which are reproduced below. I have since installed Yarn and Java's JDK, though doing these has seemingly not changed the situation.

As also mentioned in the aforementioned post, this is code from a private GitHub repo which I inherited with little or no guidance from the people who worked on it. (I have also worked *far* more on Windows machines and, in comparison, have barely used any Macs.) Thus, this has been a time of rapid learning and implementing.

SUSPICIONS

I *suspect* this problem is easily solved by putting certain files in the right place, but what files should go where?

BUILD ERRORS

Build target hornet of project hornet with configuration Release error: /Users/Liam/Desktop/HORNET/9-1-20/ios/Pods/Target Support Files/Pods-hornet/Pods-hornet.release.xcconfig: unable to open file (in target "hornet" in project "hornet") (in target 'hornet' from project 'hornet')

error: /Users/Liam/Desktop/HORNET/9-1-20/ios/Pods/Target Support Files/Pods-hornet/Pods-hornet.release.xcconfig: unable to open file (in target "hornet" in project "hornet") (in target 'hornet' from project 'hornet')

error: /Users/Liam/Desktop/HORNET/9-1-20/ios/Pods/Target Support Files/Pods-hornet/Pods-hornet.release.xcconfig: unable to open file (in target "hornet" in project "hornet") (in target 'hornet' from project 'hornet')

error: /Users/Liam/Desktop/HORNET/9-1-20/ios/Pods/Target Support Files/Pods-hornet/Pods-hornet.release.xcconfig: unable to open file (in target "hornet" in project "hornet") (in target 'hornet' from project 'hornet')

XCODE IDE ERRORS LIKELY DUE TO IMPROPERLY HANDLED REQUIREMENTS FILES
  • 'React/RCTLog.h' file not found (in reference to this header file)*

#import <React/RCTLog.h>
  • Bad receiver type 'int' (in reference to RCTSharedApplication() below)*

Code Block
- (void)testRendersWelcomeScreen
{
UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController];
NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
BOOL foundElement = NO;
__block NSString *redboxError = nil;
#ifdef DEBUG
RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) {
if (level >= RCTLogLevelError) {
redboxError = message;
}
});
#endif


XCODE IDE RELEVANT WARNINGS LIKELY DUE TO IMPROPERLY HANDLED REQUIREMENTS FILES

/Users/admin/Desktop/HORNET/9-1-20/ios/hornet.xcodeproj The file “Pods-hornet.debug.xcconfig” couldn’t be opened because there is no such file. (/Users/admin/Desktop/HORNET/9-1-20/ios/Pods/Target Support Files/Pods-hornet/Pods-hornet.debug.xcconfig)

/Users/admin/Desktop/HORNET/9-1-20/ios/hornet.xcodeproj The file “Pods-hornet.release.xcconfig” couldn’t be opened because there is no such file. (/Users/admin/Desktop/HORNET/9-1-20/ios/Pods/Target Support Files/Pods-hornet/Pods-hornet.release.xcconfig)

/Users/admin/Desktop/HORNET/9-1-20/ios/hornet.xcodeproj The file “Pods-hornet-tvOS.debug.xcconfig” couldn’t be opened because there is no such file. (/Users/admin/Desktop/HORNET/9-1-20/ios/Pods/Target Support Files/Pods-hornet-tvOS/Pods-hornet-tvOS.debug.xcconfig)

/Users/admin/Desktop/HORNET/9-1-20/ios/hornet.xcodeproj The file “Pods-hornet-tvOS.release.xcconfig” couldn’t be opened because there is no such file. (/Users/admin/Desktop/HORNET/9-1-20/ios/Pods/Target Support Files/Pods-hornet-tvOS/Pods-hornet-tvOS.release.xcconfig)

/Users/admin/Desktop/HORNET/9-1-20/ios/hornet.xcodeproj The file “Pods-hornet-hornetTests.debug.xcconfig” couldn’t be opened because there is no such file. (/Users/admin/Desktop/HORNET/9-1-20/ios/Pods/Target Support Files/Pods-hornet-hornetTests/Pods-hornet-hornetTests.debug.xcconfig)

/Users/admin/Desktop/HORNET/9-1-20/ios/hornet.xcodeproj The file “Pods-hornet-hornetTests.release.xcconfig” couldn’t be opened because there is no such file. (/Users/admin/Desktop/HORNET/9-1-20/ios/Pods/Target Support Files/Pods-hornet-hornetTests/Pods-hornet-hornetTests.release.xcconfig)

/Users/admin/Desktop/HORNET/9-1-20/ios/hornet.xcodeproj The file “Pods-hornet-hornet-tvOS.debug.xcconfig” couldn’t be opened because there is no such file. (/Users/admin/Desktop/HORNET/9-1-20/ios/Pods/Target Support Files/Pods-hornet-hornet-tv-OS/Pods-hornet-hornetTests.debug.xcconfig)

/Users/admin/Desktop/HORNET/9-1-20/ios/hornet.xcodeproj The file “Pods-hornet-hornet-tvOS.release.xcconfig” couldn’t be opened because there is no such file. (/Users/admin/Desktop/HORNET/9-1-20/ios/Pods/Target Support Files/Pods-hornet-hornet-tvOS/Pods-hornet-hornetTests.release.xcconfig)

/Users/admin/Desktop/HORNET/9-1-20/ios/hornet.xcodeproj The file “Pods-hornet-hornet-tvOSTests.debug.xcconfig” couldn’t be opened because there is no such file. (/Users/admin/Desktop/HORNET/9-1-20/ios/Pods/Target Support Files/Pods-hornet-hornet-tv-OSTests/Pods-hornet-hornetTests.debug.xcconfig)

/Users/admin/Desktop/HORNET/9-1-20/ios/hornet.xcodeproj The file “Pods-hornet-hornet-tvOSTests.release.xcconfig” couldn’t be opened because there is no such file. (/Users/admin/Desktop/HORNET/9-1-20/ios/Pods/Target Support Files/Pods-hornet-hornet-tvOSTests/Pods-hornet-hornetTests.release.xcconfig)

FINALLY FOR NOW

Thankee for your aid! I eagerly await your assistance and viable solutions!
In addition, I got this error when running Pod Install in the directory with the Podfile.

[!] Invalid Podfile file: cannot load such file -- /Users/admin/Desktop/HORNET/9-1-20/nodemodules/@react-native-community/cli-platform-ios/nativemodules.

from /Users/admin/Desktop/HORNET/9-1-20/ios/Podfile:2

-------------------------------------------

platform :ios, '9.0'

> requirerelative '../nodemodules/@react-native-community/cli-platform-ios/native_modules'

# -------------------------------------------

“React/RCTLog.h file not found” and “Bad receiver type 'int'”: Misplaced CocoaPods files to blame?
 
 
Q