Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
avatar image
0
Question by taxvi · Dec 23, 2014 at 12:11 PM · ioswebplayerprime31

Error verifying Prime31Editor

I'm building an iOS game and using Prime31 plugin for GameCenter integration. All is smooth on iOS but I need to submit a web demo to a third party and when I build for web this exception pops up:

 VerificationException: Error verifying Prime31Editor.MetroPostProcessBuild:onPostProcessBuildPlayer (UnityEditor.BuildTarget,string): Object not compatible with constrained type at 0x0030
 UnityEditor.HostView:OnGUI()

the build, however succeeds but the object containing an old GUI scripts (yes I'm lazy) displays nothing. now I'm absolutely sure I'm using the "#if UNITY_IPHONE" everywhere I call Prime functions. still the problem is just annoying crap out of me.

This is not crucial problem, I can find a way around it but for the sake of all that is geeky, what can be the reason of this problem? here is my GUI script:

 void OnGUI()
     {
         GUI.DrawTexture (new Rect (0, -Screen.height * 0.05f, Screen.width * 1.2f, Screen.height * 1.2f), t2DBackground);
         GUI.Box(new Rect(0, 0, Screen.width, Screen.width * (t2DHeader.width / t2DHeader.height)), t2DHeader, GUIStyle.none);
 
 
         
         //buttons
         if(GUI.Button(new Rect((Screen.width - butWidth) / 2, Screen.height * 7 / 22, butWidth, butHeight), "PLAY", mySkin.button)){
             PlayerPrefs.SetInt("GameMode", (int)GameMode.Play);
 #if UNITY_IPHONE
             XCodeBinding.AdFooterLoad (false);
 #endif
             Application.LoadLevel(1);
         }
         if(GUI.Button(new Rect((Screen.width - butWidth) / 2, Screen.height * 7 / 22 + butHeight, butWidth, butHeight), "SCORES", mySkin.button)){
 #if UNITY_IPHONE
             GameCenterBinding.showLeaderboardWithTimeScopeAndLeaderboard(GameCenterLeaderboardTimeScope.AllTime, "com.lemondo.CylinderGame.Leaderboard");
 #endif
         }
         if(GUI.Button(new Rect((Screen.width - butWidth) / 2, Screen.height * 7 / 22 + butHeight * 2, butWidth, butHeight), "REMOVE ADS", mySkin.button)){
 #if UNITY_IPHONE
             //remove ads
 #endif
         }
         if(GUI.Button(new Rect((Screen.width - butWidth) / 2, Screen.height * 7 / 22 + + butHeight * 3, butWidth, butHeight), "MORE SHIT", mySkin.button)){
 #if UNITY_IPHONE
             //more games
             XCodeBinding.GoToMores();
 #endif
         }
     }


Comment
Add comment · Show 5
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 taxvi · Dec 23, 2014 at 12:46 PM 0
Share

It's building fine on standalone platforms, it's only bugging up on web

avatar image JeremyGalxyz · Dec 24, 2014 at 01:53 AM 1
Share

I'm having the same problem, latest P31 fails to build on web because of these errors:

VerificationException: Error verifying Prime31Editor.$$anonymous$$etroPostProcessBuild:onPostProcessBuildPlayer

VerificationException: Error verifying Prime31Editor.WinPhonePostProcessBuild:onPostProcessBuildPlayer

avatar image Vizas · Feb 10, 2015 at 07:07 PM 0
Share

Same problem here.

VerificationException: Error verifying Prime31Editor.$$anonymous$$etroPostProcessBuild:onPostProcessBuildPlayer (UnityEditor.BuildTarget,string): Object not compatible with constrained type at 0x0030

avatar image JeremyGalxyz · Feb 10, 2015 at 07:09 PM 1
Share

$$anonymous$$y fix was to just delete the P31 plugin from the project before building for webplayer, since it's not used anyways.

avatar image Vizas · Feb 10, 2015 at 07:18 PM 0
Share

That worked perfectly!

I've just removed the file "Assets/Editor/Prime31/P31PostProcessor.pyc" for it to work.

Thanks a lot!

0 Replies

· Add your reply
  • Sort: 

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

28 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

Related Questions

Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers

Any caching options available for things dynamically loaded by WebPlayer? 0 Answers

Webplayer Question : Are prefabs downloaded seperately? 1 Answer

Split webplayer build into smaller files? 1 Answer

how do setup WebPlayer Installer on an https? Esp. Facebook. 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