cleveradssolutions / CAS-Flutter

CAS.AI Flutter plugin for monetizing mobile applications.
https://cas.ai
Apache License 2.0
7 stars 3 forks source link

BannerView iOS: Fatal error: No bridge module #14

Open alex-relov opened 2 months ago

alex-relov commented 2 months ago

Hello, when i open screen on which the BannerView widget, my application exits with follow error:

CASIntegrationHelper [AudienceNetwork SDK ] AudienceNetwork SDK The `setAdvertiserTrackingEnabled` flag is not implemented. Please read the `Additional Meta AudienceNetwork steps` page on our wiki.
CASIntegrationHelper [Kidoz Adapter ] Kidoz Adapter Not integrated
CASIntegrationHelper [SuperAwesome Adapter ] SuperAwesome Adapter Not integrated
CASIntegrationHelper [StartIO Adapter ] StartIO Adapter Not integrated
CASIntegrationHelper [CrossPromo Adapter ] CrossPromo Adapter Not integrated
CASIntegrationHelper [HyprMX Adapter ] HyprMX Adapter Not integrated
CASIntegrationHelper [Smaato Adapter ] Smaato Adapter Not integrated
CASIntegrationHelper [Madex Adapter ] Madex Adapter Not integrated
CASIntegrationHelper [ App Tracking Transparency ]  App Tracking Transparency Denied
-[AMADatabaseIntegrityProcessor checkIntegrityIssuesForDatabase:report:]:50 DB integrity check found issues: (
)
-[AMADatabaseIntegrityProcessor checkIntegrityIssuesForDatabase:report:]:50 DB integrity check found issues: (
)
-[AMADatabaseIntegrityProcessor checkIntegrityIssuesForDatabase:report:]:50 DB integrity check found issues: (
)
+[AMACrashLoader purgeRawCrashReport:]:319 FAILED TO REMOVE REPORT: 33573147127054336
clever_ads_solutions/BannerView.swift:39: Fatal error: No bridge module!
Lost connection to device.

Exited.

flutter doctor

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.2, on macOS 14.5 23F79 darwin-arm64, locale en-TR)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.2)
[✓] VS Code (version 1.91.0)
[✓] Network resources

• No issues found!

banner widget

       BannerView(
          isAutoloadEnabled: true,
          refreshInterval: 20,
          listener: BannerListener(),
        )

pubspec

clever_ads_solutions: ^0.3.1

podfile

source 'https://cdn.cocoapods.org/'
source 'https://github.com/cleveradssolutions/CAS-Specs.git'

platform :ios, '13.0'
use_frameworks! :linkage => :static
$casVersion = '~> 3.7.3'

ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', {
  'Debug' => :debug,
  'Profile' => :release,
  'Release' => :release,
}

def flutter_root
  generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
  unless File.exist?(generated_xcode_build_settings_path)
    raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
  end

  File.foreach(generated_xcode_build_settings_path) do |line|
    matches = line.match(/FLUTTER_ROOT\=(.*)/)
    return matches[1].strip if matches
  end
  raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

target 'Runner' do
  use_frameworks! :linkage => :static
  use_modular_headers!
  pod 'CleverAdsSolutions-SDK/Optimal', $casVersion

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
  target 'RunnerTests' do
    inherit! :search_paths
  end
end

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

Hi @alex-relov, thank you for raising the issue.

In version 0.5.0, we implemented some improvements to address this issue. We remain committed to further enhancing our plugin in the future.