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

标签 ios cordova parse-platform ionic-framework

我希望通过 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

最佳答案

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

关于ios - parse.com 推送通知框架不适用于 ionic 框架 Xcode 项目?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24194540/

相关文章:

ios - 将具有静态框架的 pod 作为 podspec 中的依赖项连接到另一个 pod

ios - NSOperation completionBlock 被调用了两次

android - 如何解决Cordova应用突然崩溃的问题?

android - 手动设置 parseObject 的 objectId

ios - 在 iOS App 中的多个 Storyboard之间导航

ios - 标签栏( View Controller )中调用多次ios的通知中心方法方法?如何删除观察者?

android - 提示 : Apache Cordova and Android: Unable to instantiate activity ComponentInfo

javascript - Phonegap 2.2.0 - 检测方向

javascript - Parse.com 安全 : can I save an object and claim it's another user's?

objective-c - Parse.com includeKey 与 PFFile