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
18 stars 3 forks source link

Can't build project for iPhone simulator #31

Closed SleepyMrPanda closed 1 year ago

SleepyMrPanda commented 1 year ago

Hello Plugin works fine on the real device, but I get error every time when I try to run app on the iPhone simulator:

Xcode's output:
↳
    Writing result bundle at path:
        /var/folders/v_/23c6t_x548b1vnjrg4f43pxw0000gn/T/flutter_tools.fweyMY/flutter_ios_build_temp_dir0vwbdM/temporary_xcresult_bundle

    warning: [CP] BDMPangleAdapter.xcframework: Unable to find matching slice in 'ios-x86_64-simulator ios-arm64_armv7' for the current build architectures (arm64 x86_64) and platform
    (-iphonesimulator).
    ld: library not found for -lBDMPangleAdapter
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
//----------------------------------

Error (Xcode): Library not found for -lBDMPangleAdapter

Could not build the application for the simulator.
Error launching application on iPhone 14 Pro Max.

I tried to build my own project and app from example folder. Both of them throw same error. I have already tried to clean cache and update pods like this:

rm -rf "${HOME}/Library/Caches/CocoaPods"
rm -rf "`pwd`/Pods/"
pod update
sergei201613 commented 1 year ago

Same issue, pls help.

da2gl commented 1 year ago

@SleepyMrPanda @sergei201613 Hello. You can work around the problem on the emulator using dependency configurations in the Podfile:

# Following pods are not contains
# arm64-simulator architecture slice
# and can not be launched on
# a simulator without Rosetta.
pod 'BDMPangleAdapter', '~> 1.9.4', :configuration => 'Release'
pod 'Ads-Global', :configuration => 'Release'
pod 'OneKit-Pangle', '1.1.21-pangle', :configuration => 'Release'
pod 'RangersAPM-Pangle', '2.3.2-pangle', :configuration => 'Release'

pod 'APDIronSourceAdapter', '3.0.1.1', :configuration => 'Release'
pod 'IronSourceSDK', :configuration => 'Release'

Full Podfile example here

SleepyMrPanda commented 1 year ago

@da2gl it's working, thanks

SleepyMrPanda commented 1 year ago

@sergei201613, I will close this issue. If you also have problems with BDMPangleAdapter, this should help:

pod 'BDMPangleAdapter', '~> 1.9.5', :configuration => 'Release'