Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ionic 3 - FirebaseInstanceID not found

I try to build an Ionic 3 app with push notification on iOS.

Refeer to this post : Ionic 3 - xcode error with cocoapods

I had tree errors :

diff: /Podfile.lock: No such file or directory
diff: /Manifest.lock: No such file or directory
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

I tried to solve it buy this modification in my [CP] Check Pods Manifest.lock to this :

diff "${SRCROOT}/Podfile.lock" "${SRCROOT}/Pods/Manifest.lock" > /dev/null
if [ $? != 0 ] ; then
    # print error to STDERR
    echo "error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation." >&2
    exit 1
fi

I think it works. But now, I have a new error in xCode after try to run on my device :

 Module 'FirebaseInstanceID' not found

I tried to run pod install again but no difference. I tried to modify my podfile like this ...

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'MyProject' do
pod 'Firebase'
pod 'Firebase/Core'
pod 'Fi

But I keep my error. Someone have a solution to solve this ?

like image 844
V. Pivet Avatar asked Dec 23 '22 14:12

V. Pivet


1 Answers

I had the same issue, and this solution worked for me:

cordova platform rm ios
cordova platform add ios

Inside platforms/ios

pod install --verbose

Go to platforms/ios/Pods/Target Support Files/Pods-proj

Copy all the content of the files:

Pods-proj.debug.xconfig
Pods-proj.release.xconfig

And put them in their equivalents in platforms/ios

Cleaning and Building was then successful in Xcode.

It looks like they weren't being found or properly referenced somehow in the top-level files.

like image 176
Charlie Hermans Avatar answered Jan 03 '23 07:01

Charlie Hermans