xcode 离子 3 - 未找到 FirebaseInstanceID

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/46071777/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 10:12:56  来源:igfitidea点击:

Ionic 3 - FirebaseInstanceID not found

iosxcodepush-notificationionic2

提问by V. Pivet

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

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

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

参考这篇文章: Ionic 3 - cocoapods 的 xcode 错误

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 :

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

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

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

 Module 'FirebaseInstanceID' not found

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

我尝试再次运行 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

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

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

回答by Charlie Hermans

I had the same issue, and this solutionworked for me:

我遇到了同样的问题,这个解决方案对我有用:

cordova platform rm ios
cordova platform add ios

Inside platforms/ios

内部平台/ ios

pod install --verbose

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

转到平台/ios/Pods/目标支持文件/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

并将它们放在平台 / ios 中的等效项中

Cleaning and Building was then successful in Xcode.

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

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

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

回答by ghkatende

I surely faced this problem when running my ionic3 application on ios device, here is what you may need to do to get it working. Run cd platforms/ios pod installOr check out this link for additional help. https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/INSTALLATION.md

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