Skip to content
This repository has been archived by the owner on Jan 9, 2018. It is now read-only.

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

Open
datomnurdin opened this issue May 8, 2015 · 6 comments

Comments

@datomnurdin
Copy link

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
Copy link
Author

Please check my pull request. #13

@barthdamon
Copy link

^ Yeah, please add that

@ihomam
Copy link

ihomam commented Sep 29, 2015

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.

@Works-awesome
Copy link

yes it work

@matrixreload
Copy link

correct

@ManojSolanki
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants