Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
saibotma opened this issue Sep 24, 2024 · 15 comments

Comments

@saibotma
Copy link

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
Copy link
Member

saghul commented Sep 24, 2024

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

@ihkilz
Copy link

ihkilz commented Sep 25, 2024

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
  - JitsiMeetSDK (10.2.1):
    - Giphy (= 2.2.4)
    - JitsiWebRTC (~> 124.0)

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
Copy link
Member

saghul commented Sep 25, 2024

Got to know!

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

@saghul
Copy link
Member

saghul commented Sep 25, 2024

Ping @Calinteodor

@bhavins13
Copy link

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

  • JitsiMeetSDK (10.2.1):
    • Giphy (= 2.2.4)
    • JitsiWebRTC (~> 124.0)

@saghul
Copy link
Member

saghul commented Oct 1, 2024

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

@muxtorovinomjon0227
Copy link

hello
I have the same problem

@saghul
Copy link
Member

saghul commented Oct 5, 2024

We are going to release an updated SDK soon.

@Munisbek777
Copy link

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

@saghul
Copy link
Member

saghul commented Oct 6, 2024

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
Copy link

We are going to release an updated SDK soon.

when ?

@muxtorovinomjon0227
Copy link

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

@Calinteodor
Copy link
Contributor

Calinteodor commented Oct 11, 2024

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
Copy link

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
Copy link
Member

saghul commented Oct 16, 2024

Good one!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants