skip to Main Content

Asset validation failed 26 Sep 2024 at 6:49 PM 26 Sep 2024 at 6:50 PM Invalid Executable. The executable 'DFA-Advice.app/Frameworks/TwilioVideo.framework/ TwilloVideo contains bitcode. (ID: €8-00831-efce-4379-99a0-581f10df9219)

This is the error i’m getting after i click on the distribute button

enter image description here

This link i tried but it won’t worked for me asset validation failed invalid executable. the executable 'myapp.app/frameworks/cardio.framework/cardio' contains bitcode

2

Answers


  1. I had the same issue with Intercom framework. In my case I just upgrade library version.

    Login or Signup to reply.
  2. I was getting the same issue after upgraded to Xcode 16 and iOS 18.

    You can solve this issue by following this.

    1. Open Podfile

    2. Search for word post_install

    3. If post_install not found then just directly paste the below code just before the last end keyword

       post_install do |installer|
      
       bitcode_strip_path = `xcrun --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/LogRocket/LogRocket.xcframework/ios-arm64/LogRocket.framework/LogRocket",
           "Pods/hermes-engine/destroot/Library/Frameworks/macosx/hermes.framework/hermes",
           "Pods/hermes-engine/destroot/Library/Frameworks/macosx/hermes.framework/Versions/Current/hermes",
           "Pods/hermes-engine/destroot/Library/Frameworks/universal/hermes.xcframework/ios-arm64/hermes.framework/hermes",
           "Pods/hermes-engine/destroot/Library/Frameworks/universal/hermes.xcframework/ios-arm64_x86_64-maccatalyst/hermes.framework/hermes"
         ]
      
         framework_paths.each do |framework_relative_path|
           strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path)
         end
      
    4. In case you have already post_install has been used then copy and past the below script inside that.

         bitcode_strip_path = `xcrun --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/LogRocket/LogRocket.xcframework/ios-arm64/LogRocket.framework/LogRocket",
           "Pods/hermes-engine/destroot/Library/Frameworks/macosx/hermes.framework/hermes",
           "Pods/hermes-engine/destroot/Library/Frameworks/macosx/hermes.framework/Versions/Current/hermes",
           "Pods/hermes-engine/destroot/Library/Frameworks/universal/hermes.xcframework/ios-arm64/hermes.framework/hermes",
           "Pods/hermes-engine/destroot/Library/Frameworks/universal/hermes.xcframework/ios-arm64_x86_64-maccatalyst/hermes.framework/hermes"
         ]
      
         framework_paths.each do |framework_relative_path|
           strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path)
         end
      
    5. Do pod install

    6. Do archive again and try upload

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search