1

enter image description here

I'm trying to upload my iOS app to App Store Connect using Xcode 16, but I'm encountering the following validation error during distribution:

Invalid Executable. The executable '' contains bitcode.

I am using CocoaPods to manage dependencies, and I have already set Enable Bitcode = NO in both the project and target build settings. Despite this, I'm still getting the error.

Here are some of the frameworks mentioned in the error message:

  • HyperSDK.framework
  • JuspaySafeBrowser.framework
  • Salvator.framework
  • Unbxd.framework

Here’s a snippet of my Podfile:

# Uncomment the next line to define a global platform for your project
source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/unbxd/iOS-SDK-Pod.git'
 platform :ios, '12.0'

target 'Indya' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

    pod 'Alamofire'
    pod 'Toaster', '~> 2.0'
    pod 'KeychainSwift', '~> 8.0'
    pod 'FBSDKCoreKit'
    pod 'FBSDKLoginKit'
    pod 'GoogleSignIn'
    pod 'Firebase/Auth'
    pod 'Firebase/Core'
    pod 'Firebase/DynamicLinks'
    pod 'Firebase/Analytics'
    pod 'Firebase/RemoteConfig'
    pod 'Firebase/Crashlytics'
    pod 'SDWebImage'
    pod 'PhotoSlider'
    pod 'CleverTap-iOS-SDK'
    pod 'CocoaLumberjack/Swift'
    pod 'Unbxd'
    pod 'SkyFloatingLabelTextField', '~> 3.0'
    pod 'FCAlertView'
    pod 'HyperSDK'
    pod 'Branch'
    pod 'Cosmos'
    pod "youtube-ios-player-helper"


end


target 'IndyaNotifications' do
    use_frameworks!
    platform :ios, '10.0'
    pod 'CTNotificationService'
end


# post install
post_install do |installer|
  installer.aggregate_targets.each do |target|
      target.xcconfigs.each do |variant, xcconfig|
      xcconfig_path = target.client_root + target.xcconfig_relative_path(variant)
      IO.write(xcconfig_path, IO.read(xcconfig_path).gsub("DT_TOOLCHAIN_DIR", "TOOLCHAIN_DIR"))
      end
  end

  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
      if config.base_configuration_reference.is_a? Xcodeproj::Project::Object::PBXFileReference
          xcconfig_path = config.base_configuration_reference.real_path
          IO.write(xcconfig_path, IO.read(xcconfig_path).gsub("DT_TOOLCHAIN_DIR", "TOOLCHAIN_DIR"))
      end
    end
  end
end
2
  • Switch to SPM, Cocoapods are the past. Commented May 6 at 10:32
  • Have you tried disabling bitcode on the podfile's postinstall? Commented May 6 at 11:39

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.