【问题标题】:Ionic 3 - FirebaseInstanceID not found离子 3 - 找不到 FirebaseInstanceID
【发布时间】:2017-09-06 09:38:24
【问题描述】:

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

参考这篇文章: Ionic 3 - xcode error with cocoapods

我有树错误:

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.

我试图解决它在我的 [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

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

 Module 'FirebaseInstanceID' not found

我尝试再次运行 pod install 但没有区别。我试图像这样修改我的 podfile ...

# 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

但我保留了我的错误。有人有办法解决这个问题吗?

【问题讨论】:

  • 完全相同的问题。找不到出路……

标签: ios xcode push-notification ionic2


【解决方案1】:

我遇到了同样的问题,this solution 为我工作:

cordova platform rm ios
cordova platform add ios

平台/ios内部

pod install --verbose

转到platforms/ios/Pods/Target Support Files/Pods-proj

复制文件的所有内容:

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

并将它们放在平台/ios中的等价物中

然后在 Xcode 中清理和构建成功。

似乎在顶级文件中没有找到它们或以某种方式正确引用它们。

【讨论】:

  • 我不需要复制文件的内容,安装pod后就可以了,谢谢
【解决方案2】:

在 ios 设备上运行我的 ionic3 应用程序时,我肯定遇到了这个问题,这是您可能需要做的事情才能让它工作。 运行cd platforms/ios pod install 或查看此链接以获取更多帮助。 https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/INSTALLATION.md

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-05-14
    • 1970-01-01
    • 1970-01-01
    • 2016-02-23
    • 2020-09-22
    • 2017-11-09
    • 1970-01-01
    • 2019-11-20
    相关资源
    最近更新 更多