AppLovin / AppLovin-MAX-Swift-Package

AppLovin-MAX-Swift-Package
8 stars 10 forks source link

App upload issues after updating to SDK v12.3.0 in XCode 15.3 #6

Closed kamalk2 closed 6 months ago

kamalk2 commented 7 months ago

Updated to Xcode 15.3 and AppLovin SDK 12.3.0. Getting the error in screenshot attached, while trying to upload the build to AppStore. Tried clearing package cache and resetting too. Info.Plist file contains all the fields mentioned in the error and no other code changes have been done before the Xcode and SDK updates. The code runs on Simulator with no issues.

Screenshot 2024-03-08 at 7 37 39 PM

thomasmso commented 7 months ago

Hey @kamalk2 - Thanks for bringing this up to us. We'll check it out and get back to you here next week.

kamalk2 commented 6 months ago

@thomasmso I have an update. The same AppLovin SDK v12.3.0 functions with no errors on XCode 15.0.1 and also on Xcode 15.2. So issue is specific to XCode 15.3 + AppLovin 12.3.0

ritamsarmah commented 6 months ago

Hi @kamalk2, thanks for sharing that. I can confirm that this issue seems specific to some change in Xcode 15.3.

We're looking into fixing it soon; in the meantime, the best workaround will be to use Xcode 15.2.

ritamsarmah commented 6 months ago

Could you also share any other dependencies you've included in your project? Seems the Xcode 15.3 changes have also affected Firebase and other packages, so you may need to update those as well to fully resolve those errors.

kamalk2 commented 6 months ago

@ritamsarmah thanks for the update. I am using XCode 15.2 temporarily to create and upload Archives. I have attached the list of Dependencies I have in my project and Firebase is already updated to the latest recommended version which contains the fix.

Screenshot 2024-03-12 at 9 10 30 AM

ritamsarmah commented 6 months ago

Thanks @kamalk2. One last question—what's the current minimum OS version you're targeting for your project? As of SDK 12.0.0, we've got a minimum requirement of iOS 11.

kamalk2 commented 6 months ago

@ritamsarmah I'm supporting only iOS 16+ ( and watchOS 9+)

ritamsarmah commented 6 months ago

@kamalk2 we'll be pushing an SDK with some fixes for this soon. In the meantime you can workaround this by adding the missing Info.plist items manually:

  1. Under Package Dependencies, right-click the "AppLovinSDK" package and click "Show in Finder".
  2. Go up one directory to the parent (SourcePackages/)
  3. Navigate to artifacts/applovin-max-swift-package.
  4. Update the file at ./AppLovinSDK/AppLovinSDK.xcframework/ios-arm64/AppLovinSDK.framework/Info.plist to include the following:
<key>CFBundleShortVersionString</key>
<string>12.3.0</string>
<key>CFBundleVersion</key>
<string>12030099</string>

Xcode 15.3 also seems to have a bug with the minimum OS version validation. This is affecting other SPM packages as well and is something we'll have to wait for Apple to fix separately. The current workaround is to modify the MinimumOSVersion in the same Info.plist from above to some really high value:

<key>MinimumOSVersion</key>
<string>100</string>

Let me know if the solution works for you and if you have any further questions.

kamalk2 commented 6 months ago

@ritamsarmah I followed your instructions and edited the Info.Plist file. Then I tried twice to upload the archives and still getting the same issues. Please refer to the attached screenshots. The GoogleAppMeasurement errors are gone now after updating to Firebase's latest SDK. I'll wait for your SDK update. Thanks.

Screenshot 2024-03-18 at 9 48 56 AM

Screenshot 2024-03-13 at 10 29 12 AM

ritamsarmah commented 6 months ago

@kamalk2, it seems the issue might've been due to editing the incorrect Info.plist. That looks like the one directly in AppLovinSDK.xcframework; however, there are additional Info.plist files under the separate architecture directories, e.g., ios-arm64/AppLovinSDK.framework/Info.plist is the one you need to modify.

thomasmso commented 6 months ago

We just pushed iOS SDK v12.3.1 which fixes this issue.

kamalk2 commented 6 months ago

@thomasmso and @ritamsarmah there is still 1 issue about minimum app version. Please refer to the attached screenshot.

Do I have to follow the steps suggested by @ritamsarmah again to fix this ?

Screenshot 2024-03-18 at 9 44 52 AM

Screenshot 2024-03-18 at 9 52 20 AM

thomasmso commented 6 months ago

@kamalk2 - What's your app'a min OS version?

ritamsarmah commented 6 months ago

Hi @kamalk2, yes, though only this change is required:

<key>MinimumOSVersion</key>
<string>100</string>

The "minimum OS version" error seems to be an Apple bug, since they should allow third-party SDKs to support a lower minimum OS version than the app's. Currently, Xcode 15.3 requires the SDK's minimum OS version to equal (or exceed) the app's, which is an impractical requirement (i.e., since your app targets 16+, we'd need to have 16.0 in our plist).

Hopefully it will be resolved in the next Xcode patch release.