AppLovin / AppLovin-MAX-SDK-iOS

84 stars 69 forks source link

Build IOS error #307

Open IgorLifeKife opened 1 month ago

IgorLifeKife commented 1 month ago

MAX SDK Version

12.3.§

Device/Platform Info

IOS

Current Behavior

When I run the build on an iPhone, the build is built successfully, but when I start the application I get an error. Frameworks/UnityFramework.framework/UnityFramework, 0x0109): Library not loaded: @rpath/FBAEMKit.framework/FBAEMKit I add through “framework, libraries, and embedded content” FBAEMKit also x code wants libraries FBSDKCoreKit, FBSDKCoreKit_Basics, FBSDKGamingServicesKit, FBSDKShareKit, FBSDKLoginKit... After adding these libraries, the application starts and works properly. But when the archive is launched I get an error. “0D43A9F9-2A23-386C-9568-E0D28099B3D5.bcsymbolmap” couldn’t be copied to “BCSymbolMaps” because an item with the same name already exists. Without libraries, the archive is uploaded to test flight, but the application does not work.

Expected Behavior

No response

How to Reproduce

run the build. launch archive.

Additional Info

No response

thomasmso commented 1 month ago

@IgorLifeKife - First of all, what MAX Unity Plugin version are you on? The latest is 6.3.1 and you can check this through our Integration Manager. Secondly, you can try adding or removing "FBAEMKit.xcframework" from Assets/MaxSdk/Scripts/Editor/MaxPostProcessBuildiOS.cs's DynamicLibrariestoEmbed list.

IgorLifeKife commented 1 month ago

MAX Unity Plugin version 6.3.1. libraries added to DynamicLibrariestoEmbed list. Even adding one FBAEMKit library to xcode causes the archive to fail.

JonathanLiuApp commented 1 month ago

I wasn't able to reproduce the error you encountered. Could you send a project where this is reproducible so we can investigate further?

IgorLifeKife commented 1 month ago

I managed to solve the problem. I didn’t have to add libraries, I changed it to the file, now it looks like this. `source 'https://cdn.cocoapods.org/'

platform :ios, '11.0'

target 'UnityFramework' do pod 'Firebase', :modular_headers => true pod 'FirebaseCoreInternal', :modular_headers => true pod 'GoogleUtilities', :modular_headers => true pod 'FirebaseCore', :modular_headers => true pod 'AppLovinMediationChartboostAdapter' pod 'AppLovinMediationFacebookAdapter' pod 'AppLovinMediationFyberAdapter' pod 'AppLovinMediationGoogleAdapter' pod 'AppLovinMediationInMobiAdapter' pod 'AppLovinMediationIronSourceAdapter' pod 'AppLovinMediationMintegralAdapter' pod 'AppLovinMediationUnityAdsAdapter' pod 'AppLovinMediationVerveAdapter' pod 'AppLovinMediationVungleAdapter' pod 'AppLovinSDK' pod 'FBAudienceNetwork' pod 'FBSDKCoreKit' pod 'FBSDKCoreKit_Basics' pod 'FBSDKGamingServicesKit' pod 'FBSDKLoginKit' pod 'FBSDKShareKit' pod 'Firebase/Analytics' pod 'Firebase/Core' pod 'GoogleUserMessagingPlatform'

end target 'Unity-iPhone' do end `