- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我尝试在 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/
我正在尝试在 Windows 上运行的小于 1GB 的 VM 上设置 YouTrack 和 TeamCity。使用率将非常低(用户和请求)。这是一个 POC 环境,如果它有效,我可能会将它推送到一个超
所以我在尝试使用 FORFILES 解决这个问题时遇到了麻烦。我正在尝试获取不超过 4 天的文件。所以基本上少于 4 天。然而,这似乎不太可能,因为/d -4 获取所有 4 天或更早的项目。 以下是我
如何从下面的 events 表中选择小于 15 分钟前创建的 events? CREATE TABLE events ( created_at timestamp NOT NULL DEFAU
Google Analytics Realtime提供 rt:minutesAgo ,可以过滤查询。 然而,它是一个维度而不是一个度量标准,<=不能在过滤器中使用。 假设我想在最后 n 分钟内获得一些
iOS 核心数据 - 严重的应用程序错误 - 尝试插入 nil 你好, 我的应用程序实际上运行稳定,但在极少数情况下它会崩溃并显示此错误消息... 2019-04-02 20:48:52.437172
我想制作一个 html div 以快速向右移动(例如不到 1 秒)并消失。然后1秒后再次直接出现在这个过程最开始div的位置。此过程将由单击按钮并重复 10 次触发。 我试图在 CSS 中使用过渡属性
我发现使用 TimeTrigger 是 Windows 10 (UWP) 上计划后台任务的方式。但是看起来我们需要给出的最小数字是 15 分钟。只是想知道,即使我们安排它在接下来的 1 分钟内运行,警
我必须在 1 秒内在屏幕上打印 2^20 行整数 printf 不够快,还有其他易于使用的快速输出替代方法吗? 每一行只包含 1 个整数。 我要求它用于竞争性编程问题,我必须将其源代码提交给法官。 最
我是一名优秀的程序员,十分优秀!