【发布时间】:2016-08-04 09:05:21
【问题描述】:
我正在尝试构建我的 Cordova 应用程序,该应用程序将 IBM-Push 服务用于 iOS 模拟器。 它失败并出现以下错误:
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)
当我为真实设备构建应用程序时,它可以正常运行。
我知道推送通知在模拟器上不起作用,但我需要截屏以上传到 App Store。
【问题讨论】:
标签: ios push-notification ibm-cloud ibm-mobile-services