Issue
Getting this error when I'm trying to build my Ionic app in Xcode.
Any idea of what I'm doing wrong? the Pod file appears to be in the right place.
Have tried changing @import FirebaseCore;" to "#import "FirebaseCore/FirebaseCore.h" and adding pod 'FirebaseCore', :modular_headers => true but Xcode still isn't finding it.
Here's an image of the error:
Was expecting Xcode to build the same as before (from my_app.xcodeproj file compiled with ionic cordova build ios --prod --release) - as that has worked before this.
Solution
The issue you probably have is that when you run ionic cordova or capacitor it builds a project under platforms. When you open xcode, do NOT select the xcode.proj, instead when you open xcode, open from files and select the entire ios folder under platforms.
For example
/Users/$User/Documents/GitHub/$Project/platforms/ios
This because this folder contains the the things like pods and such for firebase and thus throws an error when it cant find them
Answered By - JackPhillips
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.