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

Not able to compile on Xcode version 12.2 #293

Closed
ravi-ranjan-oodles opened this issue Dec 2, 2020 · 5 comments
Closed

Not able to compile on Xcode version 12.2 #293

ravi-ranjan-oodles opened this issue Dec 2, 2020 · 5 comments
Labels
wontfix This will not be worked on

Comments

@ravi-ranjan-oodles
Copy link

ravi-ranjan-oodles commented Dec 2, 2020

The issue is coming on the AES.swift file which is :
"Inout expression creates a temporary pointer, but argument #1 should be a pointer that outlives the call to '+'"

try CCCryptorFinal(cryptor, **&outBytes + outLength**, outBytes.count, &outLength).check()

In Xcode 11.7 it was just a warning but in Xcode 12 it becomes an error if we use
try CCCryptorFinal(cryptor, &outBytes, outBytes.count, &outLength).check()

Everything works fine but unable to get the private key.

@Panerly
Copy link

Panerly commented Dec 24, 2020

Do you have any good solutions?

@ravi-ranjan-oodles
Copy link
Author

ravi-ranjan-oodles commented Dec 24, 2020

I tried lot but unfortunatly the only current solution is to rollback on Xcode 11.7

@Panerly
Copy link

Panerly commented Dec 24, 2020

OK, thanks

@skywinder
Copy link
Collaborator

@ravi-ranjan-oodles thanks for the update.
I will close this since looks like it's but in code, not the library.

Feel free to update it if you will find any solution with the new version of Xcode

@RaviRanjan-11
Copy link
Contributor

#293

try CCCryptorFinal(cryptor, (&outBytes + outLength) as unsafemutablerawpointer, outBytes.count, &outLength).check()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants