jitsi / jitsi-meet-flutter-sdk

Jitsi Meet plugin for Flutter
Apache License 2.0
44 stars 33 forks source link

Invalid Executable. The executable 'Runner.app/Frameworks/GiphyUISDK.framework/GiphyUISDK' contains bitcode. #89

Open saibotma opened 2 months ago

saibotma commented 2 months ago

Getting this error message when trying to upload an App using this package to the App Store. It seems like the GiphyUI SDK has bitcode enabled. Can this be disabled somehow?

saghul commented 2 months ago

What Xcode version are you using? Please share your Podfile.lock. This is odd, we have never run into this one!

ihkilz commented 1 month ago

I am also experiencing this issue. After researching, I found that it's because Xcode 16 no longer supports BITCODE. I see that the GiphyUISDK developers have released a new version to fix this.

In Podfile.lock

flutter doctor

[✓] Flutter (Channel stable, 3.24.3, on macOS 15.0 24A335 darwin-arm64, locale en-TH)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.3)

issue:

issue
saghul commented 1 month ago

Got to know!

We will update the SDK. In the meantime, use Xcode 15 as a workaround if possible.

saghul commented 1 month ago

Ping @Calinteodor

bhavins13 commented 1 month ago

I am also experiencing this issue. After researching, I found that it's because Xcode 16 no longer supports BITCODE. I see that the GiphyUISDK developers have released a new version to fix this.

In Podfile.lock

Giphy version in Podfile.lock is 2.2.4, while the latest is 2.2.11

saghul commented 1 month ago

Yes, we will be updating out dependency for the next version of the Jitsi Meet SDK.

muxtorovinomjon0227 commented 1 month ago

hello I have the same problem

saghul commented 1 month ago

We are going to release an updated SDK soon.

Munisbek777 commented 1 month ago

can you tell us when? can you release it today? we need it today please

saghul commented 1 month ago

No I can't. It's also quite rude to ask people to work for free for you, and more so on a Sunday.

You don't need it, use Xcode 15 to upload your app and the problem is avoided.

Lukaalishi commented 1 month ago

We are going to release an updated SDK soon.

when ?

muxtorovinomjon0227 commented 1 month ago

It is also very important for us. We would appreciate it if you could do this as soon as possible.

Calinteodor commented 1 month ago

No I can't. It's also quite rude to ask people to work for free for you, and more so on a Sunday.

You don't need it, use Xcode 15 to upload your app and the problem is avoided.

Please read this carefully and take it in consideration until a new release is available. There are many other important things that we are working on right now, that we also want to include. Thank you.

thaliachitziou99 commented 1 month ago

I found a solution that works for me. I had to add this on Podfile

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}"
    system(command)
  end

  framework_paths = [
    "Pods/Giphy/GiphySDK/GiphyUISDK.xcframework/ios-arm64_armv7/GiphyUISDK.framework/GiphyUISDK",
  ]

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

  installer.pods_project.targets.each do |target|
      flutter_additional_ios_build_settings(target)
    end
end
saghul commented 1 month ago

Good one!