appodeal / Appodeal-Flutter-Plugin

Official Flutter Plugin that adds Appodeal SDK support to your Flutter application.
https://pub.dev/packages/stack_appodeal_flutter
Apache License 2.0
20 stars 3 forks source link

Xcode 16 archive contains bitcode #89

Open mmaksteterin opened 1 week ago

mmaksteterin commented 1 week ago

Error: Asset validation failed Invalid Executable. The executable 'Runner.app/Frameworks/OMSDK_Appodeal.framework/OMSDK_Appodeal' contains bitcode. (ID: 2777fbb0-f07a-497b-8528-c8abdf316386)

Description: After switching to Xcode 16, an error occurs when uploading the archive to App Store Connect. The build successfully runs on the emulator and is archived without issues.

Version: 3.3.3

Pods pod 'Appodeal', '3.3.2' pod 'APDAppLovinAdapter', '3.3.2.0' pod 'APDAppLovinMAXAdapter', '3.3.2.0' pod 'APDBidMachineAdapter', '3.3.2.0' pod 'APDBidonAdapter', '3.3.2.0' pod 'APDBigoAdsAdapter', '3.3.2.0' pod 'APDDTExchangeAdapter', '3.3.2.0' pod 'APDGoogleAdMobAdapter', '3.3.2.0' pod 'APDIABAdapter', '3.3.2.0' pod 'APDInMobiAdapter', '3.3.2.0' pod 'APDIronSourceAdapter', '3.3.2.0' pod 'APDMetaAudienceNetworkAdapter', '3.3.2.0' pod 'APDMintegralAdapter', '3.3.2.0' pod 'APDPangleAdapter', '3.3.2.0' pod 'APDUnityAdapter', '3.3.2.0' pod 'APDVungleAdapter', '3.3.2.0' pod 'APDYandexAdapter', '3.3.2.0' pod 'AmazonPublisherServicesSDK', '4.9.2' pod 'AppLovinMediationAmazonAdMarketplaceAdapter', '4.9.2.0' pod 'AppLovinMediationBidMachineAdapter', '2.6.0.0' pod 'AppLovinMediationFacebookAdapter', '6.15.0.0' pod 'AppLovinMediationFyberAdapter', '8.3.1.0' pod 'AppLovinMediationGoogleAdManagerAdapter', '11.5.0.0' pod 'AppLovinMediationGoogleAdapter', '11.5.0.0' pod 'AppLovinMediationInMobiAdapter', '10.7.2.0' pod 'AppLovinMediationIronSourceAdapter', '8.1.0.0.1' pod 'AppLovinMediationMintegralAdapter', '7.6.1.0.0' pod 'AppLovinMediationUnityAdsAdapter', '4.11.3.2' pod 'AppLovinMediationVungleAdapter', '7.3.0.0' pod 'AppLovinMediationYandexAdapter', '5.2.1.0' pod 'BidMachineAmazonAdapter', '2.6.0.1' pod 'BidMachineMetaAudienceAdapter', '2.6.0.0' pod 'BidMachineMintegralAdapter', '2.6.0.0' pod 'BidMachinePangleAdapter', '2.6.0.0' pod 'BidMachineVungleAdapter', '2.6.0.0' pod 'BidonAdapterAmazon', '0.6.0.0' pod 'BidonAdapterAppLovin', '0.6.0.0' pod 'BidonAdapterBidMachine', '0.6.0.0' pod 'BidonAdapterBigoAds', '0.6.0.0' pod 'BidonAdapterDTExchange', '0.6.0.0' pod 'BidonAdapterGoogleAdManager', '0.6.0.0' pod 'BidonAdapterGoogleMobileAds', '0.6.0.0' pod 'BidonAdapterInMobi', '0.6.0.0' pod 'BidonAdapterMetaAudienceNetwork', '0.6.0.0' pod 'BidonAdapterMintegral', '0.6.0.0' pod 'BidonAdapterUnityAds', '0.6.0.0' pod 'BidonAdapterVungle', '0.6.0.0'


Flutter (Channel stable, 3.22.2, on macOS 15.0 24A335 darwin-arm64, locale en-KZ) • Flutter version 3.22.2 on channel stable • Upstream repository https://github.com/flutter/flutter.git • Framework revision 761747bfc5 (4 months ago), 2024-06-05 22:15:13 +0200 • Engine revision edd8546116 • Dart version 3.4.3 • DevTools version 2.34.3

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK ✗ cmdline-tools component is missing Run path/to/sdkmanager --install "cmdline-tools;latest" See https://developer.android.com/studio/command-line for more details. ✗ Android license status unknown. Run flutter doctor --android-licenses to accept the SDK licenses. See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[✓] Xcode - develop for iOS and macOS (Xcode 16.0) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 16A242d • CocoaPods version 1.15.2

[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] VS Code (version 1.92.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.62.0

[✓] Connected device (4 available) • iPhone (Максим) (mobile) • 00008101-000154580A43003A • ios • iOS 18.0 22A3354 • macOS (desktop) • macos • darwin-arm64 • macOS 15.0 24A335 darwin-arm64 • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 15.0 24A335 darwin-arm64 • Chrome (web) • chrome • web-javascript • Google Chrome 111.0.5563.146

[✓] Network resources • All expected network resources are available.

! Doctor found issues in 1 category.

da2gl commented 1 week ago

@mmaksteterin Hi, our iOS team is already preparing for the release of 3.3.3 where all problems with iOS 18 and Xcode 16 should be resolved. Stay in touch.

Now I can suggest a workaround for your problem:

for OMSDK_Appodeal You can add post-install hook to the project Podfile, which strips bitcode from OMSDK_Appodeal binary

post_install do |installer|
  xcframework_path = "#{installer.sandbox.root}/OMSDK_Appodeal"

  Dir.glob("#{xcframework_path}/**/*.framework/OMSDK_Appodeal").each do |binary|
    if File.exist?(binary)
      puts "Stripping bitcode from: #{binary}"
      system("xcrun bitcode_strip #{binary} -r -o #{binary}")
    end
  end
end`

for OMSDK_Smaato You can add post-install hook to the project Podfile, which strips bitcode from OMSDK_Smaato binary

post_install do |installer|
  xcframework_path = "#{installer.sandbox.root}/smaato-ios-sdk/vendor"

  Dir.glob("#{xcframework_path}/**/*.framework/OMSDK_Smaato").each do |binary|
    if File.exist?(binary)
      puts "Stripping bitcode from: #{binary}"
      system("xcrun bitcode_strip #{binary} -r -o #{binary}")
    end
  end
end

Thanks for your request!