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

Issue in Uploading to Test Flight #328

Closed
ghost opened this issue Jun 12, 2021 · 3 comments
Closed

Issue in Uploading to Test Flight #328

ghost opened this issue Jun 12, 2021 · 3 comments

Comments

@ghost
Copy link

ghost commented Jun 12, 2021

Hi Team
I am using this library but while working on XCode 11.4 Version when I am trying to upload the app to test flight its throws an error - ERROR ITMS-90725: "SDK Version Issue. This app was built with the iOS 13.4 SDK. All iOS apps submitted to the App Store must be built with the iOS 14 SDK or later, included in Xcode 12 or later."
So when I am Trying to Update Xcode With 12.4 it throws another error while Uploading -
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()
Screenshot 2021-06-12 at 3 59 14 PM

@ghost
Copy link
Author

ghost commented Jun 14, 2021

Hi Team
I have Resolved this Issue by Using UnsafeMutableRawPointer
so just replace line with this and it will Worked for Xcode 12+
try CCCryptorFinal(cryptor, (&outBytes + outLength) as UnsafeMutableRawPointer, outBytes.count, &outLength).check()
Thanks

@ghost ghost closed this as completed Jun 22, 2021
@skywinder
Copy link
Collaborator

skywinder commented Jun 27, 2021

@ShashankOodles1 thank you for the update and bug report!
Would you mind making PR with this fix?
I will create you a bounty for this improvment.

@ghost
Copy link
Author

ghost commented Oct 13, 2021

Hi @skywinder i would like to make PR as issue is working in ios 13 and On Mac App and M1 chip which I have resolved in web3swift Pod Aes file.

This issue was closed.
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

1 participant