AppLovin / AppLovin-MAX-SDK-iOS

84 stars 69 forks source link

Build errors after upgrading sdk to 12.4.1 on iOS Unity project #317

Open Barky opened 3 weeks ago

Barky commented 3 weeks ago

MAX SDK Version

12.4.1

Device/Platform Info

Xcode 15.3, Unity 2022.3.11f1

Current Behavior

We recently updated the MAX SDK in our iOS Unity project from version 12.3.1 to 12.4.1 just because Apple wants us to. The project previously compiled without issues, but since the update, we encounter multiple build errors when archiving in Xcode.

Immediately upon attempting to archive, Xcode throws multiple errors indicating that "Multiple commands produce" certain framework directories. Here are the errors received:

Multiple commands produce /Volumes/DRIVE/Library/Xcode/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/Roll Machine.app/Frameworks/FBAEMKit.framework
Multiple commands produce /Volumes/DRIVE/Library/Xcode/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/Roll Machine.app/Frameworks/FBSDKGamingServicesKit.framework
Multiple commands produce /Volumes/DRIVE/Library/Xcode/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/Roll Machine.app/Frameworks/FBSDKCoreKit.framework
Multiple commands produce /Volumes/DRIVE/Library/Xcode/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/Roll Machine.app/Frameworks/FBSDKCoreKit_Basics.framework
Multiple commands produce /Volumes/DRIVE/Library/Xcode/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/Roll Machine.app/Frameworks/AppLovinSDK.framework
Multiple commands produce /Volumes/DRIVE/Library/Xcode/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/Roll Machine.app/Frameworks/FBSDKShareKit.framework
Multiple commands produce /Volumes/DRIVE/Library/Xcode/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/Roll Machine.app/Frameworks/FBSDKLoginKit.framework

Expected Behavior

The project should archive without errors, as it did with MAX SDK version 12.3.1.

How to Reproduce

  1. Complete the iOS build process in Unity.
  2. Navigate to the iOS build folder and execute pod install --repo-update in the terminal.
  3. Open the .xcworkspace file in Xcode.
  4. Attempt to archive the project via Product > Archive in Xcode.

Additional Info

Podfile:

platform :ios, '12.0'

target 'UnityFramework' do
  pod 'Adapty', '2.7.0'
  pod 'AppLovinMediationByteDanceAdapter', '5.8.0.8.1'
  pod 'AppLovinMediationChartboostAdapter', '9.7.0.0'
  pod 'AppLovinMediationFacebookAdapter', '6.15.0.0'
  pod 'AppLovinMediationGoogleAdManagerAdapter', '11.3.0.0'
  pod 'AppLovinMediationInMobiAdapter', '10.7.1.0'
  pod 'AppLovinMediationIronSourceAdapter', '7.9.1.0.0'
  pod 'AppLovinMediationMintegralAdapter', '7.6.2.0.0'
  pod 'AppLovinMediationUnityAdsAdapter', '4.10.0.0'
  pod 'AppLovinMediationVungleAdapter', '7.3.1.0'
  pod 'AppLovinSDK', '12.4.1'
  pod 'FBSDKCoreKit', '~> 16.0.1'
  pod 'FBSDKCoreKit_Basics', '~> 16.0.1'
  pod 'FBSDKGamingServicesKit', '~> 16.0.1'
  pod 'FBSDKLoginKit', '~> 16.0.1'
  pod 'FBSDKShareKit', '~> 16.0.1'
  pod 'Firebase/Analytics', '10.15.0'
  pod 'Firebase/Core', '10.15.0'
  pod 'Firebase/Crashlytics', '10.15.0'
  pod 'Firebase/Messaging', '10.15.0'
  pod 'Firebase/RemoteConfig', '10.15.0'
  pod 'GoogleUserMessagingPlatform', '2.1.0'
end
target 'Unity-iPhone' do
end
#use_frameworks! :linkage => :static
use_modular_headers!
gevorgyanmp commented 2 weeks ago

We have the same problem. We are using Unity 2022.3.25f1 UPD. I resolved this problem by updating Facebook plugin to version 17.0.0