i have a game for ipad. now i want to add tapjoy sdk. i add it and when i compile it gives me errors of duplicate symbols.how to resolve this issue. tapjoy and cocos2d problem please help me
Tapjoy integrating problem in my cocos2d game please help me
(7 posts) (3 voices)-
Posted 1 year ago #
-
Truth be told, if duplicate symbol errors are appearing it means that you have files that have same class names and such. The way to fix this would to rename those classes. Now I don't know what they are, maybe cocos2d and tapjoy have some similiar source code they both use. Try to find what it is.
Posted 1 year ago # -
but it is very hard to change the class name and change in the other classes too
Posted 1 year ago # -
This is why we should be aware of other API's when we build our own. Can you find the files that are duplicating? What are they? Also what version of Cocos2d are you using?
Xcode has tools for changing class names and such I am pretty sure. Somebody correct me if I am wrong.
Posted 1 year ago # -
JTAWidget.o and when i remove this file he shows another file. is there an easy way to change class name rather than manually and thanks for your help
Posted 1 year ago # -
As I said before I am not exactly sure what the tool is, but I think XCode has something built into it which allows you to change your class names and change the variables in other files. I would search google.
Posted 1 year ago # -
its called refactoring - at first glance I only see how to do it for a particular variable in a file. You can also use apple+shift+f to search through all files in your project for the specific file name.
Posted 1 year ago #
Reply
You must log in to post.