AESCrypt-ObjC icon indicating copy to clipboard operation
AESCrypt-ObjC copied to clipboard

Definition of 'NSData' must be imported from module 'Foundation.NSData' before it is required

Open datomnurdin opened this issue 9 years ago • 6 comments

I got this error message

/Users/MNurdin/Documents/iOS/RevivalxSwiftAESCrypt/RevivalxSwiftAESCrypt/AESCrypt/NSString+Base64.m:28:14: Definition of 'NSData' must be imported from module 'Foundation.NSData' before it is required

Code

lentext = [data length]; 

Please advice. Thank you.

datomnurdin avatar May 08 '15 17:05 datomnurdin

Please check my pull request. https://github.com/Gurpartap/AESCrypt-ObjC/pull/13

datomnurdin avatar May 08 '15 18:05 datomnurdin

^ Yeah, please add that

barthdamon avatar Jun 15 '15 00:06 barthdamon

guys just change the header file NSString+Base64.h change from #import <Foundation/NSString.h > to #import <Foundation/Foundation.h> then everything works like a charm.

ihomam avatar Sep 29 '15 16:09 ihomam

yes it work

Works-awesome avatar Sep 27 '16 06:09 Works-awesome

correct

matrixreload avatar Jul 13 '17 03:07 matrixreload

I want to decrypt text by openssl. Please help me.

I am using the following command but could not able to decrypt it: $ openssl enc -d -aes256 -in text.txt -out decrypt.txt

It is working fine on IOS end but not working with openssl.

ManojSolanki avatar Nov 14 '17 09:11 ManojSolanki