AppLovin/AppLovin-MAX-React-Native

After upgrade to 6.0.2 breaks the project on iOS

dunapanta opened this issue · 8 comments

MAX Module Version

12.0.0

React Native Version

0.72.4

Device/Platform Info

iOS 17

Current Behavior

After upgrade to version 6.0.2 and AppLovinSDK 12.0.0

npx pod-install

Captura de pantalla 2023-11-20 a la(s) 22 39 55

After run npx react-native run-ios

Captura de pantalla 2023-11-20 a la(s) 22 47 45

Expected Behavior

It was working with version 6.0.1

After run npx react-native run-ios

compile the project successfully

How to Reproduce

upgrade to version 6.0.2

npx pod-install

Run iOS npx react-native run-ios

Additional Info

No response

@dunapanta, thanks for raising the issue. Since 6.0.2 also updates our platform SDK, you need to clean the build before building it with the new SDK. If you have not do that, please run these commands.

% pod deintegrate
% pod install --repo-update

@alhiwatan The build phase work for the applovin quality service setup fails in our production pipelines. I discovered that the issue is that the content of the folder AppLovinQualityService is not committed because it own .gitignore file.
This folder missing causes this error during the Xcodebuild when the build phase script is launched:

error: There is no XCFramework found at '.../_appcircle_temp/Repository/apps/taringa-mobile/ios/AppLovinQualityService/AppLovinQualityService.xcframework'. (in target 'TaringaMobileProduction' from project 'TaringaMobile')

I had to manually add a job to our build pipeline to launch the AppLovinQualityServiceSetup-ios.rb:

ruby ./ios/AppLovinQualityServiceSetup-ios.rb install -targetname MyTarget

Is it ok to have to add the script manually? Why the build phase script have a file that has not already built as dependency?

Thank you!

@alhiwatan Thank you for your response. I tried the commands you mentioned, but unfortunately, they didn’t work. My project still fails to compile.

In an attempt to isolate the issue, I created a new project solely to test version 6.0.2 with iOS I use this repository for this https://github.com/dunapanta/AppLovin-Max-6.0.2-Test. I can confirm that the new project runs successfully (attached is a screenshot for reference).
Captura de pantalla 2023-11-22 a la(s) 22 57 32
Captura de pantalla 2023-11-22 a la(s) 22 57 44

I proceeded to install version 6.0.2 and executed the command ruby AppLovinQualityServiceSetup-ios.rb
yarn add react-native-applovin-max
npx pod-install
Captura de pantalla 2023-11-22 a la(s) 22 59 30

ruby AppLovinQualityServiceSetup-ios.rb
Captura de pantalla 2023-11-22 a la(s) 23 04 00

However, even after these steps, I encountered the same compilation problem. It appears that this issue persists despite creating a fresh project and performing the necessary setup steps.

Captura de pantalla 2023-11-22 a la(s) 23 07 55

I also try to run pod deintegrate and pod install --repo-update but the issue persist

Could you provide further guidance or suggestions on how to proceed? I greatly appreciate your assistance in troubleshooting this issue.

@dunapanta, your screenshot is missing the part where the real error is. It should be a few lines above the first visible on your screenshot; you should find error: your error, can you do another one and send, I want to see if it is the same error I have.

@andreaSimonePorceddu I executed again and this is the screenshot of the error

Captura de pantalla 2023-11-24 a la(s) 00 30 38

At the end I decided to use 6.0.1 vesion I am testing this version and it seems it works as expected so far

@dunapanta, thanks for following up on the issue. It looks like you have some issues with building AppLovinQualityService.
Re-running AppLovinQualityServiceSetup-ios.rb updates itself and usually solves issues. Anyway, I created a new project and followed your steps:

% npx react-native@latest init RnIssue277
% cd RnIssue277/
% npm install react-native-applovin-max
% cd ios
% ruby AppLovinQualityServiceSetup-ios.rb
% open RnIssue277.xcworkspace

I don't have any compilation errors. I used Xcode to build for set up the bundle id and Info.

react-native: 0.72.7
react-native-applovin-max: 6.0.2  (with AppLovinSDK: 12.0.0)
AppLovinQualityService: 7.0.2

Can you re-run AppLovinQualityServiceSetup-ios.rb? I'm also wondering if you have some permission issues with your file path and directories.

i have a quession about /Users/ios2/Library/Developer/Xcode/DerivedData/Unity-iPhone-gljpmuciijmbipbyewmflojrpxwd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphonesimulator/Unity-iPhone.build/Script-D6C863355C2F1F97FDEE3CA6.sh: line 2: AppLovinQualityService/AppLovinQualityServicePlugin.app/Contents/MacOS/AppLovinQualityServicePlugin: Permission denied need help