parse.com 推送通知框架不适用于 ionic 框架 Xcode 项目?

Posted

技术标签:

【中文标题】parse.com 推送通知框架不适用于 ionic 框架 Xcode 项目?【英文标题】:parse.com push notifications framework not working with ionic framework Xcode project? 【发布时间】:2014-06-12 21:55:11 【问题描述】:

我希望通过 ionic 框架和 parse.com 获得推送通知。

我尝试将 push.com 框架添加到 Xcode 项目中,但是一旦我这样做了,我就无法再编译该项目(抛出大约 45 个错误)。这是在我添加/更改任何代码之前,我只是将 parse.com 框架包含在构建列表中。

一如既往地非常感谢任何帮助:)

下面列出的错误

-bsvxvbqqiuaufjbgslrfogfllszq/Build/Products/Debug-iphonesimulator/Test.app/Test

Undefined symbols for architecture i386:
  "_ACAccountTypeIdentifierTwitter", referenced from:
      -[PF_Twitter getLocalTwitterAccountAsync] in Parse(PF_Twitter.o)
  "_AudioservicesCreateSystemSoundID", referenced from:
      +[PFPush handlePush:] in Parse(PFPush.o)
  "_AudioServicesPlaySystemSound", referenced from:
      +[PFPush handlePush:] in Parse(PFPush.o)
  "_CATransform3DIdentity", referenced from:
      -[PF_EGORefreshTableHeaderView setState:] in Parse(PF_EGORefreshTableHeaderView.o)
  "_CATransform3DMakeRotation", referenced from:
      -[PF_EGORefreshTableHeaderView setState:] in Parse(PF_EGORefreshTableHeaderView.o)
  "_FBTokenInformationExpirationDateKey", referenced from:
      -[PFFacebookTokenCachingStrategy cacheTokenInformation:] in Parse(PFFacebookTokenCachingStrategy.o)
      -[PFFacebookTokenCachingStrategy expirationDate] in Parse(PFFacebookTokenCachingStrategy.o)
      -[PFFacebookTokenCachingStrategy setExpirationDate:] in Parse(PFFacebookTokenCachingStrategy.o)
  "_FBTokenInformationTokenKey", referenced from:
      -[PFFacebookTokenCachingStrategy accessToken] in Parse(PFFacebookTokenCachingStrategy.o)
      -[PFFacebookTokenCachingStrategy setAccessToken:] in Parse(PFFacebookTokenCachingStrategy.o)
  "_FBTokenInformationUserFBIDKey", referenced from:
      -[PFFacebookTokenCachingStrategy facebookId] in Parse(PFFacebookTokenCachingStrategy.o)
      -[PFFacebookTokenCachingStrategy setFacebookId:] in Parse(PFFacebookTokenCachingStrategy.o)
  "_OBJC_CLASS_$_ACAccountStore", referenced from:
      objc-class-ref in Parse(PF_Twitter.o)
  "_OBJC_CLASS_$_CALayer", referenced from:
      objc-class-ref in Parse(PF_EGORefreshTableHeaderView.o)
  "_OBJC_CLASS_$_CATransaction", referenced from:
      objc-class-ref in Parse(PF_EGORefreshTableHeaderView.o)
  "_OBJC_CLASS_$_FBAppCall", referenced from:
      objc-class-ref in Parse(PFFacebookAuthenticationProvider.o)
  "_OBJC_CLASS_$_FBRequest", referenced from:
      objc-class-ref in Parse(PFFacebookAuthenticationProvider.o)
  "_OBJC_CLASS_$_FBSession", referenced from:
      objc-class-ref in Parse(PFFacebookAuthenticationProvider.o)
  "_OBJC_CLASS_$_FBSessionTokenCachingStrategy", referenced from:
      _OBJC_CLASS_$_PFFacebookTokenCachingStrategy in Parse(PFFacebookTokenCachingStrategy.o)
  "_OBJC_CLASS_$_SKPayment", referenced from:
      objc-class-ref in Parse(PFPurchase.o)
  "_OBJC_CLASS_$_SKPaymentQueue", referenced from:
      objc-class-ref in Parse(PFPurchase.o)
      objc-class-ref in Parse(PFPaymentTransactionObserver.o)
  "_OBJC_CLASS_$_SKProductsRequest", referenced from:
      objc-class-ref in Parse(PFPurchase.o)
  "_OBJC_CLASS_$_SLComposeViewController", referenced from:
      objc-class-ref in Parse(PF_Twitter.o)
  "_OBJC_CLASS_$_SLRequest", referenced from:
      objc-class-ref in Parse(PF_Twitter.o)
  "_OBJC_METACLASS_$_FBSessionTokenCachingStrategy", referenced from:
      _OBJC_METACLASS_$_PFFacebookTokenCachingStrategy in Parse(PFFacebookTokenCachingStrategy.o)
  "_SCNetworkReachabilityCreateWithName", referenced from:
      +[PFInternalUtils(Reachability) isParseReachable] in Parse(PFInternalUtils.o)
      -[PFCommandCache init] in Parse(PFCommandCache.o)
  "_SCNetworkReachabilityGetFlags", referenced from:
      +[PFInternalUtils(Reachability) isParseReachable] in Parse(PFInternalUtils.o)
      ___22-[PFCommandCache init]_block_invoke in Parse(PFCommandCache.o)
  "_SCNetworkReachabilityScheduleWithRunLoop", referenced from:
      -[PFCommandCache init] in Parse(PFCommandCache.o)
  "_SCNetworkReachabilitySetCallback", referenced from:
      -[PFCommandCache init] in Parse(PFCommandCache.o)
  "_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from:
      -[PFCommandCache dealloc] in Parse(PFCommandCache.o)
  "_SLServiceTypeTwitter", referenced from:
      -[PF_Twitter getAccessTokenForReverseAuthAsync:localTwitterAccount:] in Parse(PF_Twitter.o)
      -[PF_Twitter getLocalTwitterAccountAsync] in Parse(PF_Twitter.o)
  "_SecItemAdd", referenced from:
      +[PFInternalUtils saveToKeychain:data:] in Parse(PFInternalUtils.o)
  "_SecItemCopyMatching", referenced from:
      +[PFInternalUtils loadFromKeychain:] in Parse(PFInternalUtils.o)
  "_SecItemDelete", referenced from:
      +[PFInternalUtils saveToKeychain:data:] in Parse(PFInternalUtils.o)
      +[PFInternalUtils deleteFromKeychain:] in Parse(PFInternalUtils.o)
  "_kCAGravityResizeAspect", referenced from:
      -[PF_EGORefreshTableHeaderView initWithFrame:] in Parse(PF_EGORefreshTableHeaderView.o)
  "_kCATransactionDisableActions", referenced from:
      -[PF_EGORefreshTableHeaderView setState:] in Parse(PF_EGORefreshTableHeaderView.o)
  "_kCFStreamPropertyFTPAttemptPersistentConnection", referenced from:
      -[PFHTTPCommand scheduleInCurrentThread] in Parse(PFHTTPCommand.o)
  "_kCFStreamPropertyHTTPAttemptPersistentConnection", referenced from:
      -[PFHTTPCommand scheduleInCurrentThread] in Parse(PFHTTPCommand.o)
  "_kSecAttrAccessible", referenced from:
      +[PFInternalUtils getKeychainQuery:] in Parse(PFInternalUtils.o)
  "_kSecAttrAccessibleAfterFirstUnlock", referenced from:
      +[PFInternalUtils getKeychainQuery:] in Parse(PFInternalUtils.o)
  "_kSecAttrAccount", referenced from:
      +[PFInternalUtils getKeychainQuery:] in Parse(PFInternalUtils.o)
  "_kSecAttrService", referenced from:
      +[PFInternalUtils getKeychainQuery:] in Parse(PFInternalUtils.o)
  "_kSecClass", referenced from:
      +[PFInternalUtils getKeychainQuery:] in Parse(PFInternalUtils.o)
  "_kSecClassGenericPassword", referenced from:
      +[PFInternalUtils getKeychainQuery:] in Parse(PFInternalUtils.o)
  "_kSecMatchLimit", referenced from:
      +[PFInternalUtils loadFromKeychain:] in Parse(PFInternalUtils.o)
  "_kSecMatchLimitOne", referenced from:
      +[PFInternalUtils loadFromKeychain:] in Parse(PFInternalUtils.o)
  "_kSecReturnData", referenced from:
      +[PFInternalUtils loadFromKeychain:] in Parse(PFInternalUtils.o)
  "_kSecValueData", referenced from:
      +[PFInternalUtils saveToKeychain:data:] in Parse(PFInternalUtils.o)
ld: symbol(s) not found for architecture i386

【问题讨论】:

您可能添加了链接器标志...确保您添加了所有必需的框架和 Facebook。 【参考方案1】:

您可能需要将 Social.framework 添加到您的项目中。

【讨论】:

谢谢 - 这让我找到了正确的方向来整理事情。 :) 我刚刚搜索了它似乎丢失的所有库并添加了它们。干杯。

以上是关于parse.com 推送通知框架不适用于 ionic 框架 Xcode 项目?的主要内容,如果未能解决你的问题,请参考以下文章

从 Parse.com 查询或保存传入的推送通知

Parse.com - 为单个用户设置推送通知

parse.com 上的 Apple 推送通知

Parse.com - 从 Parse.com 向 iOS 应用程序发送消息,不像推送通知

iOS VoIP 推送通知/PushKit 不适用于增强通知格式

Parse.com 禁用推送通知通知