-
Notifications
You must be signed in to change notification settings - Fork 132
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
Got error while build for tvOS Simulator #72
Comments
Hi @kvzn - It should have failed earlier with the
I was able to get a successful compile with: OPENSSL="3.0.13" # https://www.openssl.org/source/
LIBCURL="8.7.1" # https://curl.haxx.se/download.html
NGHTTP2="1.60.0" # https://nghttp2.org/
./build.sh -m -e Did you remove the arm7 targets? |
Got the same error even I do like this:
I didn't remove |
Hi @kvzn - I noticed this:
I'm running this version on all my Macs:
I'll try to download that version to test. Are you able to upgrade to 15.3? |
Same here, using version 3.3.2: Xcode 16.0 |
Removing -fembed-bitcode fixed the issue for me. |
Thanks @BubbleTrouble14, can you submit a PR or list which edits you made to the script? |
I actually tried looking further into the problem and it seems to be an issue with how the patching is working for TVOs for newer openssl versions. I tried some different ways to fix the patching, but wasn't able to get it working sadly. Maybe this error log will help.
|
I see the issue. I haven't tested the script with that version. It currently only works for the 3.0 series which is the Long Term Support (LTS) version and is supported until 7th September 2026 (see link). It is possible that 3.2.x will work, but I haven't had luck with the non-LTS versions in the past. They tend to change a lot between minor revs which breaks the script. Specifically, the reason you are getting the Build-OpenSSL-cURL/openssl/openssl-build-phase1.sh Lines 315 to 322 in 2da2146
You could change the condition to just run the tvOS fixes for anything above 3.x: if [[ "$OPENSSL_VERSION" = "openssl-3"* ]]; then If that works, we can update it. I should probably add code to warn someone if they set the version to a non-LTS version. |
Yes it fixed the build issue for tvOS. But i now get an error for armv7 iPhoneOS:
Which is due to the bitcode. Tried running the script with "-b": ./build.sh -b -o 3.2.2 Which didnt seem to have any effect |
You will need to edit: Build-OpenSSL-cURL/openssl/openssl-build-phase1.sh Lines 210 to 214 in 2da2146
to this as well if [[ "$OPENSSL_VERSION" = "openssl-3"* ]]; then |
And if all of this works, let me know and we can update the project so it works with 3.2.2 |
@jasonacox Yes compiles now for me. |
Awesome! Thanks @ronickg, do you want to submit this as a PR to get contribution credit? ...otherwise I will make the change. |
I updated the script to use the updated logic ( |
@jasonacox Sorry for the late reply. Thx for the fix and help. |
Got error while build for tvOS-Simulator
The text was updated successfully, but these errors were encountered: