'Firebase/Firebase.h' file not found for watch app

2,347 views
Skip to first unread message

kevin lay

unread,
Sep 21, 2015, 8:08:55 PM9/21/15
to Firebase Google Group
Trying to add a watchOS v1.0 app to an existing app.  Using XCode 7.0
Using the podfile below the project fails to build - 

Here's the error(s):

...Extension-Bridging-Header.h:5:9: error: 'Firebase/Firebase.h' file not found

#import <Firebase/Firebase.h>

        ^

<unknown>:0: error: failed to import bridging header '.../myProject WatchKit 1 Extension-Bridging-Header.h'



Here's my Podfile:

# Uncomment this line to define a global platform for your project

#platform :ios, '8.2'

#platform :watchos, '1.0'


source 'g...@github.com:CocoaPods/Specs.git'


target 'myProject' do


  pod 'Firebase', '>= 2.3.3'

  link_with 'myProject','myProject Watchkit 1 Extension'

 

end


target 'myProject Tests' do


  pod 'Firebase', '>= 2.3.3'


end


I've tried various platform settings (i.e., iOS 9.0), to no avail.  Can someone please spot what I've done wrong?

Thanks.

Mike Mcdonald

unread,
Oct 1, 2015, 12:54:02 PM10/1/15
to Firebase Google Group
Hi Kevin,

Have you tried use_frameworks! with iOS 8+ to solve this? Cocoapods generally creates a bridging header that should be correct.

Also, I recommend using the latest Firebase client (it's changed in the past nine days to add things like Bitcode support).

Check out my modified podfile below and let us know if it works.

# Uncomment this line to define a global platform for your project

#platform :ios, '8.2'

#platform :watchos, '1.0'

use_frameworks!


source 'g...@github.com:CocoaPods/Specs.git'


target 'myProject' do


  pod 'Firebase', '>= 2.4.1'


  link_with 'myProject','myProject Watchkit 1 Extension'

 

end


Thanks,
--Mike
Reply all
Reply to author
Forward
0 new messages