iOS build fails with: 'GoogleCast/GoogleCast.h' file not found

See original GitHub issue

Hello, I recently had this library start failing to build on iOS when included in my project. I have tried reinstalling, relinking, etc.

I have tried both 'google-cast-sdk', '2.10.4.1' and 'google-cast-sdk' in my podfile. I’ve tried manually adding the $(SRCROOT)/../node_modules/react-native-google-cast/ios path to the header search paths in Build Settings, and I even tried to manually add the GoogleCast.h and GoogleCast.m files into my project as mentioned in issue #21.

I also cloned a fresh copy of the repo from here and tried the example project in both the master branch and 1.3.0 branch. In every single one of these circumstances I get the following error:

/Users/chris/Desktop/react-native-google-cast/ios/GoogleCast.h:2:9: fatal error: 'GoogleCast/GoogleCast.h' file not found
#import <GoogleCast/GoogleCast.h>
        ^
1 error generated.

Any more ideas to try? I’m running out… Thanks!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
mtkoponecommented, Mar 10, 2018

Here’s how to fix that:

In the xcode project navigator, open Libraries/GoogleCase.xcodeproj Choose the GoogleCast target, and Build Settings Add the following to “Framework Search Paths”: $(PROJECT_DIR)/…/…/…/ios/Pods/google-cast-sdk/GoogleCastSDK-2.10.4-Release

4reactions
ansonyaocommented, Jan 29, 2019

Hey, @petrbela. I got it compiling by adding: $(SRCROOT)/…/…/…/ios/Pods/google-cast-sdk to the framework search paths and header search paths.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No such module error while importing GoogleCast framework ...
I put the location of file GoogleCast.h here ... I run this on an Iphone 5s from Xcode and it found my ChromeCast...
Read more >
Troubleshooting - React Native Google Cast
react-native-google-cast/ios/RNGoogleCast/components/RNGoogleCastButtonManager.m:1:9: fatal error: 'React/RCTViewManager.h' file not found.
Read more >
"Build input file cannot be found" | Apple Developer Forums
I changed my project name in project navigator and right after I tried to simulate it. An error appeared and said "Build input...
Read more >
iOS - Xcode 'GoogleMobileAds.h' file not found?
I am able to compile my project in GMS and make it appear in Xcode. However, I can't seem to archive it for...
Read more >
Setup for Developing With the Cast Application Framework ...
Cast iOS Sender SDK 4.7.0 libraries: Warning: With newer versions of Xcode, the dynamic libraries will fail to build due to the requirement...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found