Error message:
'PFAnalytics.Type' does not have a member named 'trackAppOpenedWithLaunchOptions'
All other similar functions work, e.g. trackAppOpenedWithLaunchOptionsInBackground. It looks like that it just simply disappears from the list of available functions.
But in my PFAnalytics.h header file, trackAppOpenedWithLaunchOptions
is clearly listed as shown below:
+ (BFTask *)trackAppOpenedWithLaunchOptions:(NSDictionary *)launchOptions;
What might have been wrong? Please help! I am using swift
No need for bridging headers since release 1.0. To fix the issue, just add,
import Bolts
at the top of yourAppDelegate
as such:Try
instead of
The method is declared to return a
BFTask *
object, which is part of the Bolts framework. Make sure your project is linking the Bolts framework, and then addto your bridging header.
This solved a few "missing" APIs in Swift for me (this one, as well as
PFObject.saveInBackground
mentioned here: PFObject does not have a member named 'saveInBackground' in Xcode 6.0.1, Yosemite GM3