IAP and Unity Cloud Build
Hi, I'm having problems getting Unity Cloud build to work after adding in the Unity IAP plugin. I'm using unity 5.5.0f3
I'm getting
1962: [Unity] Assets/Plugins/UnityPurchasing/script/IAPButton.cs(114,12): error CS0246: The type or namespace name `ProductCatalog' could not be found. Are you missing an assembly reference?
1963: [Unity] Assets/Plugins/UnityPurchasing/script/IAPDemo.cs(28,10): error CS0246: The type or namespace name `IAppleExtensions' could not be found. Are you missing an assembly reference?
1964: [Unity] Assets/Plugins/UnityPurchasing/script/IAPDemo.cs(29,10): error CS0246: The type or namespace name `IMoolahExtension' could not be found. Are you missing an assembly reference?
1965: [Unity] Assets/Plugins/UnityPurchasing/script/IAPDemo.cs(30,10): error CS0246: The type or namespace name `ISamsungAppsExtensions' could not be found. Are you missing an assembly reference?
1966: [Unity] Assets/Plugins/UnityPurchasing/script/IAPDemo.cs(462,27): error CS0246: The type or namespace name `LoginResultState' could not be found. Are you missing an assembly reference?
1967: [Unity] Assets/Plugins/UnityPurchasing/script/IAPDemo.cs(481,30): error CS0246: The type or namespace name `FastRegisterError' could not be found. Are you missing an assembly reference?
Which is stopping the build from taking place. My initial idea to fix this was to remove these scripts entirely. IAPDemo i guessed was a helper script to showcase how IAP works?
I'm curious if theres something that i need to add or change in the settings of the cloud build to get these guys to play nice..?
Many thankyou's. Ben
Answer by kunst-stoff · Mar 02, 2017 at 01:32 PM
I got the same error.
First, go to Window->Services->In-App Purchasing and reimport the latest version. My last import was somehow incomplete.
Secondly, it turned out the line #**/*[Bb]in/ in the file .gitignore caused that the content of the folder /Assets/Plugin was not committed to the git repository.
This worked for me. Although note that I had to turn IAP off and then re-enable IAP. Simply "Reimporting" didn't work for me.
Thanks! This also helped me and saved me many hours of investigation. Wonder why the [Bb]in/
rule is so prevalent in .gitignores...
Reimporting or reenabling the In App Purchasing didnt work for me. In my case the person who initially enabled the service added the Bin/Assets/Plugin directory to their git and pushed it and I pulled it.
Your answer
Follow this Question
Related Questions
Unity Web Player Not Working and Solutions Not Working Either! 1 Answer
unity3d cloud build not working. 0 Answers
Why does the unity cloud build not work but local build does? 0 Answers
Info.plist must contain an NSPhotoLibraryUsageDescription key 1 Answer
Cloud Build - Why my ios build size is 156mb and android size 28? 1 Answer