我正在尝试使用针对iOS Simulator的IBM Push Service构建我的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)
当我为真实设备构建应用程序时,它可以正常工作。
我知道推送通知在模拟器上不起作用,但是我需要截图以上传到App Store。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句