79188621

Date: 2024-11-14 11:55:19
Score: 4
Natty:
Report link

How do you find your path, here is simple trick:

  1. first step when your archive build is successful then the modal will show where you validate the app.
  2. here if the erros comes like Invalid Executable. The executable '***.app/FBSDKCoreKit/FBSDKCoreKit.framework/hermes' contains bitcode. (ID: 37fb02b5-0173-4c01-8d79-88a9cf6a33d8) then you have to do, how you can handle this just do copy this from your error and placed in the below solution
framework_paths = [
      "Pods/FBSDKCoreKit/XCFrameworks/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/FBSDKCoreKit",
      "Pods/FBSDKShareKit/XCFrameworks/FBSDKShareKit.xcframework/ios-arm64/FBSDKShareKit.framework/FBSDKShareKit",
      "Pods/FBAEMKit/XCFrameworks/FBAEMKit.xcframework/ios-arm64/FBAEMKit.framework/FBAEMKit",
      "Pods/FBSDKCoreKit_Basics/XCFrameworks/FBSDKCoreKit_Basics.xcframework/ios-arm64/FBSDKCoreKit_Basics.framework/FBSDKCoreKit_Basics",
      "Pods/FBSDKGamingServicesKit/XCFrameworks/FBSDKGamingServicesKit.xcframework/ios-arm64/FBSDKGamingServicesKit.framework/FBSDKGamingServicesKit",
      "Pods/FBSDKLoginKit/XCFrameworks/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/FBSDKLoginKit",
    ]

All the lines in framework_paths are errors that come when I try to validate or upload the build. So most people face issue here that they don't know how to find the path of this framework, So you don't need to find it using commands.You can just use this template and if in your case different frameworks causing this bitCode error then just simply replace them. In my case if I receive the error of hermes-engine then what I will do I simply copy this from xcode and replace it

  "Pods/FBSDKCoreKit/XCFrameworks/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/FBSDKCoreKit",

  "Pods/hermes-engine/XCFrameworks/hermes-engine.xcframework/ios-arm64/hermes-engine.framework/hermes-engine",

here I replace FBSDKCoreKit ---> hermes-engine
FBSDKCoreKit.xcframework  ---> hermes-engine.xcframework
FBSDKCoreKit.framework  ---> hermes-engine.framework
FBSDKCoreKit  ---> hermes-engine

In this way you can solve this error. So finally what you have to write in pod file

replace this code portion

react_native_post_install(
   installer,
   # Set `mac_catalyst_enabled` to `true` in order to apply patches
   # necessary for Mac Catalyst builds
   :mac_catalyst_enabled => false
 )
 __apply_Xcode_12_5_M1_post_install_workaround(installer)

with--------------------->

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/FBSDKCoreKit/XCFrameworks/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/FBSDKCoreKit",
      "Pods/FBSDKShareKit/XCFrameworks/FBSDKShareKit.xcframework/ios-arm64/FBSDKShareKit.framework/FBSDKShareKit",
      "Pods/FBAEMKit/XCFrameworks/FBAEMKit.xcframework/ios-arm64/FBAEMKit.framework/FBAEMKit",
      "Pods/FBSDKCoreKit_Basics/XCFrameworks/FBSDKCoreKit_Basics.xcframework/ios-arm64/FBSDKCoreKit_Basics.framework/FBSDKCoreKit_Basics",
      "Pods/FBSDKGamingServicesKit/XCFrameworks/FBSDKGamingServicesKit.xcframework/ios-arm64/FBSDKGamingServicesKit.framework/FBSDKGamingServicesKit",
      "Pods/FBSDKLoginKit/XCFrameworks/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/FBSDKLoginKit",
    ]

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

Thats it

Reasons:
  • Blacklisted phrase (1): How do you
  • Whitelisted phrase (-1): in your case
  • RegEx Blacklisted phrase (1): I receive the error
  • RegEx Blacklisted phrase (2.5): do you find your
  • Long answer (-1):
  • Has code block (-0.5):
  • Starts with a question (0.5): How do you find you
  • Filler text (0.5): ---------------------
  • Low reputation (1):
Posted by: ali raza