Bugs

Error uploading to app store connect - contains bitcode

2y agoCompleted

Invalid Executable. The executable '/Frameworks/Shake.framework/Shake' contains bitcode.

On XCode 16

5 comments

  1. This should be fixed since 17.0.2 version, is this issue still happening?

  2. 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…

    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

    ```

  3. Same here after updating to Sequoia 15.1.1 and latest xcode

  4. Same issue here

    Asset validation failed

    Invalid Executable. The executable 'Runner.app/Frameworks/Shake.framework/Shake' contains bitcode. (ID: d9c4d5ec-fcde-4633-b8c0-f9e660082db5)

  5. 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.