Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
1
Question by adamlofting · Apr 26, 2017 at 07:31 PM · build-errormacosxwarninginapp purchase

Switching development from PC to Mac, missing assembly references related to UnityPurchasing

Hi all,

I'm having trouble opening a Unity project that I've been developing on my PC now that I'm switching over to a Mac to finalise the iOS build. I just need to test in app purchases, and build for iOS and then I can ship this game, so it's infuriatingly close to being finished :) Any help or ideas would be greatfully received!

The issue I get is 7 missing assembly references in the format:

 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?

The missing references are: ProductCatalog, IAppleExtensions, IMoolahExtension, ISamsungAppsExtensions, IMicrosoftExtensions, LoginResultState, FastRegisterError.

My current guess it that these are related to the Unity In App Purchasing Services integrated 'plugin', but I may be wrong.

Basic setup info:

  • I'm running Unity 5.3.3f1 on both machines

  • Source control is using Git, and ignores Library and Temp

This is what I've tried so far:

  • Switching between build targets, Android, iOS, desktop

  • When I disable the IAP service I get a 9 additional missing references in the same IAPDemo.cs file but these dissappear when I re-enable

  • Re-importing Unity IAP via the services menu ("Unity IAP is up to date")

  • Disabling and enabling Unity Ads via Services

  • Assets > Reimport All

  • Various things discussed here: https://forum.unity3d.com/threads/services-menu-under-services-tab-is-not-loading.401419/

  • Updating MacOS (currently running Sierra 10.12.4)

  • Logging out of my Unity Account, switching to offline mode, reconnecting to the project ID

  • Turning it off and on again

I'm out of ideas... have you seen anything like this before?

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image adamlofting · Apr 26, 2017 at 08:20 PM 0
Share

It turns out this issue is not due to running on a $$anonymous$$ac, it's something more generic about opening the project on a new machine. I've been able to recreate the issue on another PC following the same steps above.

Still, if anyone has clues about those missing references I'd be really grateful :)

2 Replies

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by adamlofting · Apr 28, 2017 at 08:36 PM

I was sick this week but finally got back to this issue tonight and managed to solve it.

It wasn't anything to do with this being on a mac. It was Unity nuking a number of DLLs from my project during the initial project import process after cloning to a new machine / location. These DLLs in `\Assets\Plugins\UnityPurchasing\Bin` are part of my project in Git but for some reason they get deleted by the initial project import.

I've managed to fix this by reimporting the Unity IAP Services/Billing package from the Asset Store (not just via the services menu).

And after that, everything works again. Phew.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by gcrozariol · Feb 05, 2019 at 07:30 PM

Unfortunately, that solution did not work for me.

However, I found out that if you go to IAPButton under Assets/Plugins/UnityPurchasing/script/IAPButton and comment the very first and the very last line of the class, Unity finds the button and it starts to work again.

Also, when I commented the same lines for the IAPListener class under the same folder, this listener started to work again.

Let me know if this helps too!

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

102 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Build crashes or screen goes black after configuration screen 1 Answer

Mac Build doesn't open after download 0 Answers

Build error: Couldn't open unitypurchasing error, no suitable image found 0 Answers

HELPPPPP Please :( CommandInvolkationFailure 0 Answers

What are the possible reasons behind my Build Failing? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges