简体   繁体   中英

error: 'kInAppPurchaseProUpgradeProductId' undeclared (first use in this function)

I am new to inapp purchase and I am trying to implement in app purchase in my app I have created a provision profile also I had added the app to itunes but know when I am trying to deploy on my device it shows following error.

error: 'kInAppPurchaseManagerProductsFetchedNotification' undeclared (first use in this function)

error: 'kInAppPurchaseManagerProductsFetchedNotification' undeclared (first use in this function)

When you copy and paste code without understanding it you have to copy everything.

you forgot this line:

#define kInAppPurchaseManagerProductsFetchedNotification @"kInAppPurchaseManagerProductsFetchedNotification"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM