V. *_*vet 4 xcode push-notification ios ionic2
我尝试在 iOS 上构建一个带有推送通知的 Ionic 3 应用程序。
请参阅这篇文章: Ionic 3 - cocoapods 的 xcode 错误
我有树错误:
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 但没有区别。我试图像这样修改我的 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
Run Code Online (Sandbox Code Playgroud)
但我保留我的错误。有人有解决方案来解决这个问题吗?
小智 7
我遇到了同样的问题,这个解决方案对我有用:
cordova platform rm ios
cordova platform add ios
Run Code Online (Sandbox Code Playgroud)
内部平台/ ios
pod install --verbose
Run Code Online (Sandbox Code Playgroud)
转到平台/ios/Pods/目标支持文件/Pods-proj
复制文件的所有内容:
Pods-proj.debug.xconfig
Pods-proj.release.xconfig
Run Code Online (Sandbox Code Playgroud)
并将它们放在平台 / ios 中的等效项中
然后在 Xcode 中清理和构建成功。
看起来它们在顶级文件中没有被找到或以某种方式正确引用。
归档时间: |
|
查看次数: |
11304 次 |
最近记录: |