[SOLVED]IOS Cloud Build warning : Unity IAP is not enabled

Description of issue: Using Unity Editor 2019.4.16.f1 to make a game. Set up Unity Cloud Build source control to grab my project files from a remote git repository. Unity cloud build successfully builds my game for IOS devices. When testing the build, the In app purchases don’t work. I have used the same game files to build an android version of the game via Unity Editor, and In app purchases worked properly. When checking the logs on Unity Cloud Build, it gives me this warning : [Unity] Assets/Plugins/UnityPurchasing/script/PurchasingCheck.cs(2,10): warning CS1030: #warning: '"Unity IAP plugin is installed, but Unity IAP is not enabled. Please enable Unity IAP in the Services window."' I have checked and confirmed that Unity IAP is enabled in the Services window.

Unity Cloud Build Version : Unity 2020.2.5f1

XCode version: Xcode 12.2.0

Source control: BitBucket remote repository

Local build platform: using Unity Editor 2019.4.16.f1

Build target: IOS

Relevant plugins being used: Unity Ads, Unity In App Purchasing, Unity Analytics

Project name: Rocket Stonks

Build log (relevant chunk): [Unity] Assets/Plugins/UnityPurchasing/script/PurchasingCheck.cs(2,10): warning CS1030: #warning: '"Unity IAP plugin is installed, but Unity IAP is not enabled. Please enable Unity IAP in the Services window."'

Added “UNITY_PURCHASING” under Custom Defines, and it solved the problem. Unity Cloud Build successfully builds the project, and doesn’t give the IAP error.
6899069--807443--unity.PNG