AppLovin / AppLovin-MAX-Unity-Plugin

123 stars 33 forks source link

iOS Build Issues #205

Open joshua-matchala opened 1 year ago

joshua-matchala commented 1 year ago

Since updating to the latest unity sdk version 5.5.5, the project now fails to compile and install pods for ios.

image

Which results in this error while building:

image

Using unity version

image

Xcode Version

image
santoshbagadi commented 1 year ago

Hi @joshua-matchala , this seems like a CocoaPods issue. Could you please try updating your CocoPods and see if that fixes your issue: https://github.com/CocoaPods/CocoaPods/issues/10604

joshua-matchala commented 1 year ago

Sorry forgot to mention. Using the latest version of cocopods as well.

On Thu, 20 Oct 2022, 12:30 pm Santosh Bagadi, @.***> wrote:

Hi @joshua-matchala https://github.com/joshua-matchala , this seems like a CocoaPods issue. Could you please try updating your CocoPods and see if that fixes your issue: CocoaPods/CocoaPods#10604 https://github.com/CocoaPods/CocoaPods/issues/10604

— Reply to this email directly, view it on GitHub https://github.com/AppLovin/AppLovin-MAX-Unity-Plugin/issues/205#issuecomment-1284699686, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASDQ77ZA64ZWMIHJTXYLDBDWECABPANCNFSM6AAAAAARJSLSJ4 . You are receiving this because you were mentioned.Message ID: @.***>

santoshbagadi commented 1 year ago

In the thread, they mentioned that if you are on the latest CocoPods version, you can try the following: https://github.com/CocoaPods/CocoaPods/issues/10604#issuecomment-831001475

If your cocoapod is on latest version and you also did gem update xcodeproj and still face this issue, just uninstall and install the xcodeproj again and it will work like a charm, this is mainly due to permission issue from the gem level and this happens mostly after you upgrade your xcode or iOS sdk version.

gem uninstall xcodeproj gem install xcodeproj

Also, to make sure this is specific to AppLovin, could you try removing AppLovin and see if the issue goes away?

matejse commented 1 year ago

We have the same issue after updating to the latest version of MaxSDK. My output of pod install is:

CocoaPods could not find compatible versions for pod "FBAudienceNetwork": In Podfile: AppLovinMediationFacebookAdapter (= 6.12.0.0) was resolved to 6.12.0.0, which depends on FBAudienceNetwork (= 6.12.0)

FBAudienceNetwork (= 6.11.2)

santoshbagadi commented 1 year ago

@matejse , as mentioned in the error, it seems like you may have conflicting versions of Facebook SDK. If you are using a Facebook Unity plugin separately, please make sure that both the AppLovin Facebook adapter and Facebook unity plugin are on the same version.

matejse commented 1 year ago

@santoshbagadi It helped, thanks 👍