Validation failed
Invalid Executable. The executable 'App.app/Frameworks/KontaktSDK.framework/KontaktSDK'
contains bitcode. (ID: c749437a-d0eb-4d72-9666-65e8499303bf)
Ionic project/
├── android
├── ios/
│ └── App/
│ ├── Podfile
│ └── ...
├── src
└── ...
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