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

Errors: (1) Expected ';' after method prototype and (2) Expected identifier in Obfuscator.h #3

Closed
askarimov opened this issue Nov 3, 2015 · 2 comments

Comments

@askarimov
Copy link

Getting errors:
(1) Expected ';' after method prototype
(2) Expected identifier

at two method declarations in Obfuscator.h file

  • (instancetype)newWithSalt:(Class)class, ... NS_REQUIRES_NIL_TERMINATION;
    and
  • (void)storeKey:(NSString *)key forSalt:(Class)class, ... NS_REQUIRES_NIL_TERMINATION;

Renaming class to some other name fixed the errors.

@pjebs
Copy link
Owner

pjebs commented Nov 3, 2015

Are you installing using cocoapods to install the library? I assume you aren't because you changed the code yourself.
Can you send me a small sample project that showcases the issue?

I don't get the issue at all. I'm using Xcode 7.1 but I developed this library when I was using Xcode 6.

@askarimov
Copy link
Author

I am installing using cocoapods and i am able to unlock the code to change it.

The project where I am trying to obfuscate strings was created using XCode 5 or 6. If I create a new project with XCode 7, the code compiles without any errors. The issue might be in some build settings differences. Therefore can't send you a sample. Cant find the solution.

Any suggestions?

@askarimov askarimov changed the title Fix (1) Expected ';' after method prototype and (2) Expected identifier in Obfuscator.h Errors: (1) Expected ';' after method prototype and (2) Expected identifier in Obfuscator.h Nov 5, 2015
rickytribbia added a commit to rickytribbia/Obfuscator-iOS that referenced this issue Nov 5, 2015
- Changed “class” params name on methods declarations and
implementations
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

2 participants