iOS App Upload Failed – OpenSSL Contains Bitcode

I’m trying to upload my iOS app, but I keep getting this error during validation:

Invalid Executable. The executable 'AppName.app/Frameworks/OpenSSL.framework/OpenSSL' contains bitcode. 🔍 What I’ve Tried Set "Enable Bitcode" = NO in both the project and target build settings

Tried different Xcode versions and OpenSSL builds

Added a script in the post_install section of the Podfile to strip bitcode manually:

post_install do |installer| bitcode_strip_path = xcrun -find bitcode_strip`.chomp!

def strip_bitcode(bitcode_strip_path, framework_path)
    path = File.join(Dir.pwd, framework_path)
    system("#{bitcode_strip_path} #{path} -r -o #{path}")
end

[
    "Pods/YourPathTo/OpenSSL.framework/OpenSSL"
].each do |path|
    strip_bitcode(bitcode_strip_path, path)
end

end` But the bitcode error still appears during archive validation.

Answered by DTS Engineer in 842676022

Please check out this prior thread.

— Ed Ford,  DTS Engineer

Please check out this prior thread.

— Ed Ford,  DTS Engineer

iOS App Upload Failed – OpenSSL Contains Bitcode
 
 
Q