Skip to content

Instantly share code, notes, and snippets.

@parollon
Last active June 17, 2025 08:47
Show Gist options
  • Select an option

  • Save parollon/63d2733710109002f239f6bf573564fe to your computer and use it in GitHub Desktop.

Select an option

Save parollon/63d2733710109002f239f6bf573564fe to your computer and use it in GitHub Desktop.
Validation failed Invalid Executable. The executable 'Framework' contains bitcode.

Validation failed Invalid Executable. The executable 'Framework' contains bitcode.

Validation failed
Invalid Executable. The executable 'App.app/Frameworks/KontaktSDK.framework/KontaktSDK' 
contains bitcode. (ID: c749437a-d0eb-4d72-9666-65e8499303bf)

Projecte

Ionic project/
├── android
├── ios/
│   └── App/
│       ├── Podfile
│       └── ...
├── src
└── ...

Solució

canvia el Podfile

 # Podfile original
post_install do |installer|
  assertDeploymentTarget(installer) 
end
 # Podfile original
post_install do |installer|
  assertDeploymentTarget(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/KontaktSDK/Cocoapods/KontaktSDK/iOS/KontaktSDK.xcframework/ios-arm64_armv7/KontaktSDK.framework/KontaktSDK"
     # Altres frameworks que donen el mateix problema
  ]
  framework_paths.each do |framework_relative_path|
    strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path)
  end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment