gpt4 book ai didi

ios - Ionic 3 - 找不到 FirebaseInstanceID

转载 作者:塔克拉玛干 更新时间:2023-11-01 21:25:10 26 4
gpt4 key购买 nike

我尝试在 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

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

最佳答案

我有同样的问题,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

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

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

看起来它们没有在顶级文件中找到或以某种方式被正确引用。

关于ios - Ionic 3 - 找不到 FirebaseInstanceID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46071777/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com