用于iOS模拟器的IBM-Bluemix Push Service构建失败

时间:2016-08-04 09:05:22

标签: ios push-notification ibm-cloud ibm-mobile-services

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

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)

当我为真实设备构建应用程序时,它可以正常运行。

我知道Push Notifications并不适用于模拟器,但我需要截取上传到App Store的截图。

1 个答案:

答案 0 :(得分:2)

推送通知仅适用于iOS的实际设备。

我建议将iOS应用程序连接到Mac并使用Quicktime捕获屏幕。

Here is a CNET article about this feature

请告诉我这是否适合您。