I'm trying to build my Cordova-app that's using the IBM-Push Service for the iOS Simulator. It fails with the following error:
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)
When I build the app for a real device, it works without problems.
I am aware that Push Notifications aren't working on the simulator, but I need to take screenshots for the upload to the App Store.
Push Notifications will only work on an actual device for iOS.
I would advise connecting your iOS app to your Mac and using Quicktime to capture your screen.
Here is a CNET article about this feature.
Let me know if this will work for you.