shakebugs / shake-ios

Bug and crash reporting SDK for iOS apps.
https://shakebugs.com
Other
30 stars 4 forks source link

Issue with Bitcode on TestFlight builds #38

Closed sho-matsu closed 2 weeks ago

sho-matsu commented 1 month ago

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

gezquinndesign commented 1 month ago

Also happening on iOS builds using @shakebugs/react-native-shake@17.0.0+.

almasios commented 1 month ago

Any estimate when this will be fixed?

stwonary commented 3 weeks ago

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!

mstanic-shake commented 2 weeks ago

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).