Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

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

$
0
0

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')

POD INSTALL ERRORS

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

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

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

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

platform :ios, '9.0'

require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

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

XCODE IDE RELEVANT 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)

- (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-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)


Viewing all articles
Browse latest Browse all 16750

Trending Articles