Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Barky opened this issue Apr 17, 2024 · 1 comment
Open

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

Barky opened this issue Apr 17, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Barky
Copy link

Barky commented Apr 17, 2024

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!
@Barky Barky added the bug Something isn't working label Apr 17, 2024
@gevorgyanmp
Copy link

gevorgyanmp commented Apr 30, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants