ios - 使用 pod Google/Cloud Messaging 时 iTunes Store 应用程序验证错误

标签 ios swift google-cloud-messaging objc-bridging-header

我像 google 在他们的示例 swift 项目中一样添加了 GCM:
https://github.com/googlesamples/google-services/tree/master/ios/gcm

  • 通过 pod 'Google/CloudMessaging'
  • 安装的库
  • 已添加 #import <Google/CloudMessaging.h>在 Bridge-Header.h

  • 将构建上传到 iTunes 后,我收到了来自 Apple 的这封电子邮件:

    Invalid Symlink - Your package contains a symbolic link 'Headers/Private/GGLInstanceID/GGLInstanceID.h' which resolves to a location 'Headers/Private/GGLInstanceID/../../../GGLInstanceID/Headers/Public/GGLInstanceID.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Private/GGLInstanceID/GGLInstanceIDConfig.h' which resolves to a location 'Headers/Private/GGLInstanceID/../../../GGLInstanceID/Headers/Public/GGLInstanceIDConfig.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Private/GGLInstanceID/GGLInstanceIDDelegate.h' which resolves to a location 'Headers/Private/GGLInstanceID/../../../GGLInstanceID/Headers/Public/GGLInstanceIDDelegate.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Private/GGLInstanceID/GGLInstanceIDHeaders.h' which resolves to a location 'Headers/Private/GGLInstanceID/../../../GGLInstanceID/Headers/Public/GGLInstanceIDHeaders.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Private/Google/Google/AdMob-Module.h' which resolves to a location 'Headers/Private/Google/Google/../../../../Google/Headers/ModuleHeaders/AdMob-Module.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Private/Google/Google/Analytics-Module.h' which resolves to a location 'Headers/Private/Google/Google/../../../../Google/Headers/ModuleHeaders/Analytics-Module.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Private/Google/Google/AppInvite-Module.h' which resolves to a location 'Headers/Private/Google/Google/../../../../Google/Headers/ModuleHeaders/AppInvite-Module.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Private/Google/Google/CloudMessaging-Module.h' which resolves to a location 'Headers/Private/Google/Google/../../../../Google/Headers/ModuleHeaders/CloudMessaging-Module.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Private/Google/Google/CloudMessaging.h' which resolves to a location 'Headers/Private/Google/Google/../../../../Google/Headers/GGLCloudMessaging/Public/CloudMessaging.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Private/Google/Google/Core-Module.h' which resolves to a location 'Headers/Private/Google/Google/../../../../Google/Headers/ModuleHeaders/Core-Module.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Private/Google/Google/Core.h' which resolves to a location 'Headers/Private/Google/Google/../../../../Google/Headers/GGLCore/Public/Core.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Private/Google/Google/GGLConfiguration.h' which resolves to a location 'Headers/Private/Google/Google/../../../../Google/Headers/GGLCore/Public/GGLConfiguration.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Private/Google/Google/GGLContext+CloudMessaging.h' which resolves to a location 'Headers/Private/Google/Google/../../../../Google/Headers/GGLCloudMessaging/Public/GGLContext+CloudMessaging.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Private/Google/Google/GGLContext.h' which resolves to a location 'Headers/Private/Google/Google/../../../../Google/Headers/GGLCore/Public/GGLContext.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Private/Google/Google/GGLErrorCode.h' which resolves to a location 'Headers/Private/Google/Google/../../../../Google/Headers/GGLCore/Public/GGLErrorCode.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Private/Google/Google/GMRConfiguration.h' which resolves to a location 'Headers/Private/Google/Google/../../../../Google/Headers/GGLCore/Public/GMRConfiguration.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Private/Google/Google/SignIn-Module.h' which resolves to a location 'Headers/Private/Google/Google/../../../../Google/Headers/ModuleHeaders/SignIn-Module.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Private/GoogleCloudMessaging/GCMConfig.h' which resolves to a location 'Headers/Private/GoogleCloudMessaging/../../../GoogleCloudMessaging/Headers/Public/GCMConfig.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Private/GoogleCloudMessaging/GCMPubSub.h' which resolves to a location 'Headers/Private/GoogleCloudMessaging/../../../GoogleCloudMessaging/Headers/Public/GCMPubSub.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Private/GoogleCloudMessaging/GCMReceiverDelegate.h' which resolves to a location 'Headers/Private/GoogleCloudMessaging/../../../GoogleCloudMessaging/Headers/Public/GCMReceiverDelegate.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Private/GoogleCloudMessaging/GCMService.h' which resolves to a location 'Headers/Private/GoogleCloudMessaging/../../../GoogleCloudMessaging/Headers/Public/GCMService.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Private/GoogleCloudMessaging/GoogleCloudMessaging.h' which resolves to a location 'Headers/Private/GoogleCloudMessaging/../../../GoogleCloudMessaging/Headers/Public/GoogleCloudMessaging.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Public/GGLInstanceID/GGLInstanceID.h' which resolves to a location 'Headers/Public/GGLInstanceID/../../../GGLInstanceID/Headers/Public/GGLInstanceID.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Public/GGLInstanceID/GGLInstanceIDConfig.h' which resolves to a location 'Headers/Public/GGLInstanceID/../../../GGLInstanceID/Headers/Public/GGLInstanceIDConfig.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Public/GGLInstanceID/GGLInstanceIDDelegate.h' which resolves to a location 'Headers/Public/GGLInstanceID/../../../GGLInstanceID/Headers/Public/GGLInstanceIDDelegate.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Public/GGLInstanceID/GGLInstanceIDHeaders.h' which resolves to a location 'Headers/Public/GGLInstanceID/../../../GGLInstanceID/Headers/Public/GGLInstanceIDHeaders.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Public/Google/Google/AdMob-Module.h' which resolves to a location 'Headers/Public/Google/Google/../../../../Google/Headers/ModuleHeaders/AdMob-Module.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Public/Google/Google/Analytics-Module.h' which resolves to a location 'Headers/Public/Google/Google/../../../../Google/Headers/ModuleHeaders/Analytics-Module.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Public/Google/Google/AppInvite-Module.h' which resolves to a location 'Headers/Public/Google/Google/../../../../Google/Headers/ModuleHeaders/AppInvite-Module.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Public/Google/Google/CloudMessaging-Module.h' which resolves to a location 'Headers/Public/Google/Google/../../../../Google/Headers/ModuleHeaders/CloudMessaging-Module.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Public/Google/Google/CloudMessaging.h' which resolves to a location 'Headers/Public/Google/Google/../../../../Google/Headers/GGLCloudMessaging/Public/CloudMessaging.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Public/Google/Google/Core-Module.h' which resolves to a location 'Headers/Public/Google/Google/../../../../Google/Headers/ModuleHeaders/Core-Module.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Public/Google/Google/Core.h' which resolves to a location 'Headers/Public/Google/Google/../../../../Google/Headers/GGLCore/Public/Core.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Public/Google/Google/GGLConfiguration.h' which resolves to a location 'Headers/Public/Google/Google/../../../../Google/Headers/GGLCore/Public/GGLConfiguration.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Public/Google/Google/GGLContext+CloudMessaging.h' which resolves to a location 'Headers/Public/Google/Google/../../../../Google/Headers/GGLCloudMessaging/Public/GGLContext+CloudMessaging.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Public/Google/Google/GGLContext.h' which resolves to a location 'Headers/Public/Google/Google/../../../../Google/Headers/GGLCore/Public/GGLContext.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Public/Google/Google/GGLErrorCode.h' which resolves to a location 'Headers/Public/Google/Google/../../../../Google/Headers/GGLCore/Public/GGLErrorCode.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Public/Google/Google/GMRConfiguration.h' which resolves to a location 'Headers/Public/Google/Google/../../../../Google/Headers/GGLCore/Public/GMRConfiguration.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Public/Google/Google/SignIn-Module.h' which resolves to a location 'Headers/Public/Google/Google/../../../../Google/Headers/ModuleHeaders/SignIn-Module.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Public/GoogleCloudMessaging/GCMConfig.h' which resolves to a location 'Headers/Public/GoogleCloudMessaging/../../../GoogleCloudMessaging/Headers/Public/GCMConfig.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Public/GoogleCloudMessaging/GCMPubSub.h' which resolves to a location 'Headers/Public/GoogleCloudMessaging/../../../GoogleCloudMessaging/Headers/Public/GCMPubSub.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Public/GoogleCloudMessaging/GCMReceiverDelegate.h' which resolves to a location 'Headers/Public/GoogleCloudMessaging/../../../GoogleCloudMessaging/Headers/Public/GCMReceiverDelegate.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Public/GoogleCloudMessaging/GCMService.h' which resolves to a location 'Headers/Public/GoogleCloudMessaging/../../../GoogleCloudMessaging/Headers/Public/GCMService.h' that does not exist or is outside of the package.

    Invalid Symlink - Your package contains a symbolic link 'Headers/Public/GoogleCloudMessaging/GoogleCloudMessaging.h' which resolves to a location 'Headers/Public/GoogleCloudMessaging/../../../GoogleCloudMessaging/Headers/Public/GoogleCloudMessaging.h' that does not exist or is outside of the package.

    Once these issues have been corrected, you can then redeliver the corrected binary.



    我究竟做错了什么?
    谢谢。

    最佳答案

    如本文所述 tread ,尝试删除 Header 符号链接(symbolic link)并重新提交。确保文件夹“headers”位于框架文件夹的根目录中,并且二进制文件位于根文件夹中。这个相关GitHub issue也可能有帮助。建议添加mkdir -p "${destination}/$1/Versions/A/Headers"Pods-frameworks.sh .希望这可以帮助!

    关于ios - 使用 pod Google/Cloud Messaging 时 iTunes Store 应用程序验证错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40862400/

    相关文章:

    ios - 类似于 Cocos2d 中的 viewDidLoad

    iphone - 如何在uiscrollview中滑动图像时添加短声音

    ios - 如何使 Xcode 中的 Swift 文件编译成为可选?

    iOS 推送通知无法使用 Phonegap-plugin-push 通过 GCM 工作

    Android PendingIntent 不启动 Activity

    iOS 8 自定义键盘自动布局键

    ios - 我是否负责在 dealloc 中释放 UIView 的 gestureRecognizers?

    ios - 在 Xcode 中使用 Swift 确定在 webView 中完成加载网站

    swift - 使用未声明的类型 'DKAsset',使用未解析的标识符 'DKImagePickerController'?

    android - ionic android 构建因异常而失败