Skip to content

When archiving iOS and pushing to App Store I get bitcode issue on version 4.1.0 #133

@Gambitboy

Description

@Gambitboy

After running the archive and trying to push the build to the app store I get the following error:

ITMS-90482: Invalid Executable - The executable 
'AppName.app/Frameworks/KontaktSDK.framework/KontaktSDK' contains bitcode.

I've hadd to addthis in my podfile to fix it manually:

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}"
      if File.exist?(framework_path)
        system(command)
      else
        puts "Warning: Framework not found at #{framework_path}"
      end
    end

    framework_paths = [
      "../node_modules/react-native-kontaktio/ios/KontaktSDK.framework/KontaktSDK"
    ]

    framework_paths.each do |framework_relative_path|
      strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path)
    end
  end

Additionally I get these warnings:

Upload Symbols Failed
The archive did not include a dSYM for the KontaktSDK.framework with the UUIDs [CF53FEB9-7892-331C-9184-DD1CF30B6EEE].
Ensure that the archive's dSYM folder includes a DWARF file for KontaktSDK.framework with the expected UUIDs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions