use of undeclared identifier UIDevice VerifyStoreReceipt.mm

RizbIT

Member
Hi,

After the recent update to GMS I can now not compile iphone apps on XCODE, keeps saying Build Failed


(tried to upload image here but kept saying file size too large till i reduced the file size till the writing was illegible which defeats the point of uploading it)

so theres some issue I asume with iOS IAP extensions

use of undeclared identifier UIDevice VerifyStoreReceipt.mm

So whats the solution?
 
Last edited:

rIKmAN

Member
(tried to upload image here but kept saying file size too large till i reduced the file size till the writing was illegible which defeats the point of uploading it)
Just upload it to imgur or some other free image hosting site and use the direct link to it.
 

RizbIT

Member
Found possible solution:

Objective-C:
#import "VerifyStoreReceipt.h"
#import <UIKit/UIKit.h>

// link with Foundation.framework, Security.framework, libssl and libCrypto (via -lssl -lcrypto in Other Linker Flags)
#import <Security/Security.h>
#include "pkcs7.h"
#include "objects.h"
#include "sha.h"
#include "x509.h"
#include "err.h"
Added #import <UIKit/UIKit.h> header in the file called VerifyStoreReceipt.mm

But I think this needs to be address by GMS as at present will have to manually add this to the extension.
 

Tornado

Member
Thank you very much for this solution!!!!!!!
We experienced the same problem in several extensions!!!
Import of
#import <UIKit/UIKit.h>
in those .mm and .h files solved it everywhere!

The last version where this was not broken was IDE v2.3.1.542 Runtime v2.3.1.409

Have you filed a bug report to Yoyo?
 
Top