shake-ios icon indicating copy to clipboard operation
shake-ios copied to clipboard

Issue with Bitcode on TestFlight builds

Open sho-matsu opened this issue 1 year ago • 1 comments

When building with Xcode 16 on Bitrise, the following error occurred, causing the upload to TestFlight to fail.

[!] Error uploading ipa file: [Application Loader Error Output]: [ContentDelivery.Uploader.6000004081C0] Asset validation failed (90482) Invalid Executable. The executable ‘cocoreview.app/Frameworks/Shake.framework/Shake’ contains bitcode. (ID: XXXX) [Application Loader Error Output]: Error uploading ‘/var/folders/b8/9zt_tx3s1y37nzh_cs991xyc0000gn/T/74e73391-8bf2-436f-99ea-3670afa2ee10.ipa’. (exit code: 1)

This issue was resolved by removing the bitcode from the Shake Framework.

Since we are using CocoaPods, we added the following workaround to the Podfile.

post_install do |installer|
  installer.pods_project.targets.each do |target|
    if target.name == 'Shake'
      `xcrun -sdk iphoneos bitcode_strip -r Pods/Shake/Sources/Shake.xcframework/ios-arm64/Shake.framework/Shake -o Pods/Shake/Sources/Shake.xcframework/ios-arm64/Shake.framework/Shake`
    end
  end
end

Using Shake 16.2.5 Installed using CocoaPods Xcode Version: 16.0

sho-matsu avatar Sep 19 '24 09:09 sho-matsu

Also happening on iOS builds using @shakebugs/[email protected]+.

gezquinndesign avatar Sep 27 '24 14:09 gezquinndesign

Any estimate when this will be fixed?

almasios avatar Oct 08 '24 16:10 almasios

I’m facing the same issue with the ShakeBugs Flutter SDK when uploading to TestFlight. The workaround you provided works for me as well. Thanks for sharing it!

stwonary avatar Oct 24 '24 16:10 stwonary

Hi everyone, sorry for delayed response.

This should be fixed now in 17.0.2 version. Let us know if it works for you without workarounds now.

For RN/Flutter SDK, you can still use any 17.0.x version, just make sure to refetch dependencies and rebuild the app (This will automatically pull latest native version).

mstanic-shake avatar Oct 28 '24 12:10 mstanic-shake