Error uploading to app store connect - contains bitcode
A
Aditya Purwa
Invalid Executable. The executable '/Frameworks/Shake.framework/Shake' contains bitcode.
On XCode 16
Log In
A
Alex Kuzmenok
Anyone looking for a fix: locate the following block in Podfile: post_install do |installer|
add next code:
## bitcode error in Shake
## see https://feedback.shakebugs.com/bugs/p/error-uploading-to-app-store-connect-contains-bitcode
bitcode_strip_path = `xcrun -sdk iphoneos --find bitcode_strip`.chop!
def strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path)
framework_path = File.join(Dir.pwd, framework_relative_path)
command = "#{bitcode_strip_path} #{framework_path} -r -o #{framework_path}"
puts "Stripping bitcode: #{command}"
system(command)
end
framework_paths = [
"Pods/Shake/Sources/Shake.xcframework/ios-arm64/Shake.framework/Shake",
"Pods/Shake/Sources/Shake.xcframework/ios-arm64_x86_64-simulator/Shake.framework/Shake"
]
framework_paths.each do |framework_relative_path|
strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path)
end
A
Alex Kuzmenok
Same here after updating to Sequoia 15.1.1 and latest xcode
T
Thoma Bigueres
Same issue here
Asset validation failed
Invalid Executable. The executable 'Runner.app/Frameworks/Shake.framework/Shake' contains bitcode. (ID: d9c4d5ec-fcde-4633-b8c0-f9e660082db5)
J
Julian Giesen
My Error Message looks like this:
Asset validation failed
Invalid Executable. The executable 'Runner.app/Frameworks/Shake.framework/Shake' contains bitcode.
The Flutter package is not working. Error Message is only shown when uploading to AppStoreConnect.