针对iOS模拟器的IBM Bluemix推送服务构建失败

针对iOS模拟器的IBM Bluemix推送服务构建失败,ios,push-notification,ibm-cloud,ibm-mobile-services,Ios,Push Notification,Ibm Cloud,Ibm Mobile Services,我正在尝试构建我的Cordova应用程序,它使用iOS模拟器的IBM推送服务。 它失败,出现以下错误: Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_IMFPushClient", referenced from: _globalinit_33_39105BEEF401CB604E77C276DFBC7CAA_func0 in CDVMFPPush.o myApp.CDVMFPPush.__allo

我正在尝试构建我的Cordova应用程序,它使用iOS模拟器的IBM推送服务。 它失败,出现以下错误:

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_IMFPushClient", referenced from:
      _globalinit_33_39105BEEF401CB604E77C276DFBC7CAA_func0 in CDVMFPPush.o
      myApp.CDVMFPPush.__allocating_init () -> myApp.CDVMFPPush in CDVMFPPush.o
      myApp.CDVMFPPush.__allocating_init (webView : __ObjC.UIWebView!) -> myApp.CDVMFPPush! in CDVMFPPush.o
      myApp.CDVMFPPush.init () -> myApp.CDVMFPPush in CDVMFPPush.o
      @objc myApp.CDVMFPPush.init () -> myApp.CDVMFPPush in CDVMFPPush.o
      function signature specialization <Arg[0] = Owned To Guaranteed> of myApp.CDVMFPPush.init (webView : __ObjC.UIWebView!) -> myApp.CDVMFPPush! in CDVMFPPush.o
      l_get_field_types_CDVMFPPush in CDVMFPPush.o
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
架构x86_64的未定义符号: “_OBJC_CLASS_$_IMFPushClient”,引用自: _CDVMFPPush.o中的globalinit_33_39105; BEEF401CB604E77C276DFBC7CAA_功能0 myApp.CDVMFPPush.\u在CDVMFPPush.o中分配\u init()->myApp.CDVMFPPush myApp.CDVMFPPush.\u\u init(webView:\u ObjC.UIWebView!)->myApp.CDVMFPPush!在CDVMFPPush.o中 myApp.CDVMFPPush.init()->CDVMFPPush.o中的myApp.CDVMFPPush @objc myApp.CDVMFPPush.init()->CDVMFPPush.o中的myApp.CDVMFPPush myApp.CDVMFPPush.init的函数签名专门化(webView:uu ObjC.UIWebView!)->myApp.CDVMFPPush!在CDVMFPPush.o中 l\u获取\u字段\u类型\u CDVMFPPush中的CDVMFPPush ... ld:找不到架构x86_64的符号 叮当声:错误:链接器命令失败,退出代码为1(使用-v查看调用) 当我为真正的设备构建应用程序时,它可以毫无问题地工作


我知道推送通知在模拟器上不起作用,但我需要截图上传到应用商店。

推送通知只在iOS的实际设备上起作用

我建议您将iOS应用程序连接到Mac,并使用Quicktime捕捉屏幕


让我知道这是否适合你

在实际设备上拍摄屏幕截图没有问题(使用XCode您可以直接访问设备获取屏幕截图)。但我没有所有需要截图的真实设备(例如4.7英寸)。因此,使用模拟器将是完美的。而且-如前所述-我知道推送通知在模拟器上不起作用,但这不是问题,因为我需要应用程序其他部分的屏幕截图。我知道您可能会注释推送代码,并在模拟器中运行它,而不会出现问题,但让我与开发团队谈谈,以确定如果你有其他选择的话。我跟开发团队跟进,他们有相同的解决方案。要么捕获屏幕,为不同的设备执行一些photoshop,要么注释掉推送代码。