Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-[NSConcreteData base64EncodedStringWithSeparateLines:]: unrecognized selector sent to instance #14

Closed
almo2001 opened this issue Nov 12, 2013 · 8 comments

Comments

@almo2001
Copy link

@almo2001 almo2001 commented Nov 12, 2013

When I call

[[StoreController getInstance] initializeWithStoreAssets:[[IAPAssets alloc] init] andCustomSecret:@"hahaha-made-you-look"];

Line 132 of FBEncryptorAES.m:

return [data base64EncodedStringWithSeparateLines:separateLines];

Gives the error in the title. I have verified that NSData-Base64.m is in the SoomlaiOSStore target, and that this library is included as a requirement for building my project.

@refaelos
Copy link
Contributor

@refaelos refaelos commented Nov 12, 2013

If the library is added and the projects build without errors than it should work.

You're not using it as an external library right ?

@almo2001
Copy link
Author

@almo2001 almo2001 commented Nov 12, 2013

I have the soomla xproj added to mine as a reference, with the library being required in the Build Phases Link Binary With Libraries. Do I need to copy everything directly into my project? I hesitate to do that since it's easier to update an external library to its latest version if it's a reference to the project.

Linking to it like this worked in the first test project I made, but that was with a version of Soomla from a few months ago. But it doesn't look like anything big has changed since then. Must be something weird going on with Xcode.

@almo2001
Copy link
Author

@almo2001 almo2001 commented Nov 12, 2013

Copying the files into my project fixes it. I have no idea why though. If you don't intend us to include the project as a link to a library, go ahead and close this issue. :)

@refaelos
Copy link
Contributor

@refaelos refaelos commented Nov 12, 2013

you can reference the project and just add the -ObjC flag to the Linker Flags.

@almo2001
Copy link
Author

@almo2001 almo2001 commented Nov 13, 2013

Ah, thanks a bunch. :D

@garudaonekh
Copy link

@garudaonekh garudaonekh commented Dec 9, 2013

after adding -ObjC, another problem occur. NSURLSession. I think it's because I use Xcode 4.5 for ios6. NSURLSession only available in ios7.

Any suggestion?

@refaelos
Copy link
Contributor

@refaelos refaelos commented Dec 10, 2013

NSURLSession is introduced in iOS 7 and is much better to use. We use AFNetworking and they explain everything here: http://nshipster.com/afnetworking-2/

I suggest that you move to iOS 7. Most of your users are already there anyway.

@refaelos
Copy link
Contributor

@refaelos refaelos commented Dec 10, 2013

What exactly to you see with NSURLSession. Is it a compilation error ?

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

No branches or pull requests

3 participants