Skip to content

Update openssl library to 3.5.1#45

Closed
m1ga wants to merge 1 commit into
masterfrom
opensslUpdate
Closed

Update openssl library to 3.5.1#45
m1ga wants to merge 1 commit into
masterfrom
opensslUpdate

Conversation

@m1ga
Copy link
Copy Markdown

@m1ga m1ga commented Sep 13, 2025

⚠️ currently for testing

Current library shows two errors in Xcode:

contains an arm64e slice with the ios 15.4 SDK.

does not support the minimum OS Version specified in the Info.plist.

xcframework from https://github.com/passepartoutvpn/openssl-apple/releases

Code change:

  • removing ERR_load_PKCS7_strings(); and ERR_load_X509_strings();. as they are not available anymore

ti.storekit-iphone-6.0.0.zip

@m1ga m1ga changed the title Update opensll library to 3.5.1 Update openssl library to 3.5.1 Sep 13, 2025
@m1ga
Copy link
Copy Markdown
Author

m1ga commented Sep 13, 2025

closing this one as it will show

Validation failed
Invalid architecture. The ios 26 SDK or later is required for an arm64e slice. The bundle executable in "GGZ.app/Frameworks/openssl.framework" contains an arm64e slice with the ios 18.4 SDK.

@m1ga m1ga closed this Sep 13, 2025
@m1ga
Copy link
Copy Markdown
Author

m1ga commented Sep 13, 2025

Notes by Douglas who made a working version:

I removed the arm64e slice from your new openssl.xcframework in order to make it work.
This is how I did it:

# Go to this folder:
cd {MODULE_FOLDER}/platforms/openssl.framework/ios-arm64_arm64e/openssl.framework/

# Remove the slice only:
lipo -remove arm64e openssl -output openssl_new

# Replace the original file
mv openssl_new openssl

# Go back to XCFramework folder
cd ../..

# Rename the folder to its correct architecture
mv ios-arm64_arm64e ios-arm64

# Test if it worked
lipo -info ios-arm64/openssl.framework/openssl

# Now we need to update the modules info.plist
sed -i '' 's/ios-arm64_arm64e/ios-arm64/g' Info.plist 
sed -i '' '/<string>arm64e<\/string>/d' Info.plist

@hansemannn
Copy link
Copy Markdown
Contributor

That does not sound like a future-proof change. The module should rather adapt to the newest openssl package or - even better - find a more modern replacement that is less low-level.

@m1ga
Copy link
Copy Markdown
Author

m1ga commented Sep 13, 2025

this is the latest openssl package in that repo (release Jul 24). I'm just not sure if I didn't a mistake building it for iOS 26 or the module itself is not build with the correct version. But I'm not that savvy in building iOS modules 😄

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

Successfully merging this pull request may close these issues.

2 participants