离子 2 - 错误:在 ios 中找不到模块“FirebaseInstanceID”

San*_*rle 6 push-notification ios firebase ionic2 angular

我尝试在 iOS 上构建一个带有推送通知的 Ionic 2 应用程序。

我有三个错误:

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.
Run Code Online (Sandbox Code Playgroud)

我试图解决它在我的 [CP] Check Pods Manifest.lock 中购买此修改:

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
Run Code Online (Sandbox Code Playgroud)

我认为它有效。但是现在,尝试在我的设备上运行后,我在 xCode 中出现了一个新错误:

 Module 'FirebaseInstanceID' not found
Run Code Online (Sandbox Code Playgroud)

在此处输入图片说明

我尝试再次运行 pod install 但没有区别。

但我保留我的错误。有人有解决方案来解决这个问题吗?