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 Pranoy-Parimal · Sep 09, 2014 at 06:33 PM · javascriptiostwitter

Unable to access the function of Category class inside the iOS library in Unity

I have a made an iOS library which contains the functionality of sharing using twitter. Every function is working fine. I can call native functions defined inside the library & in return I can call the functions of C# script of Unity. I am able to log in the twitter using some account. When Twitter login is successful, I am trying to post some text using that particular twitter account. In the process of posting there's one function defined inside a category class. When it is called, the application crashes saying unrecognised selector being called. The error is as followed.

+[NSString stringWithNewUUID] Unrecognised selector sent to instance.

I will elaborate this further. The iOS Library that I have made is "TwitterShare". In this Twitter share there is a category class NSString+UUID.h & NSString+UUID.m. There is function inside this class which is

#import "MGTwitterEngineGlobalHeader.h" @interface NSString (UUID) + (NSString*)stringWithNewUUID; @end #import "NSString+UUID.h" @implementation NSString (UUID) + (NSString*)stringWithNewUUID { // Create a new UUID NSLog(@"NewUUID Called"); CFUUIDRef uuidObj = CFUUIDCreate(nil); // Get the string representation of the UUID NSString *newUUID = (NSString*)CFUUIDCreateString(nil, uuidObj); CFRelease(uuidObj); return [newUUID autorelease]; } @end

I have copied the required classes to be used as library inside Unity. From one of the scripts inside Unity I am calling a function defined inside the library that which shows a user interface where a user can login into his twitter account. After successful login the text sent while calling the login function in library is posted using

[[TwitterHelper sharedInstance] postStatus:self._mTwitterMessage];

In the process of calling the posting function the application crashes with message +[NSString stringWithNewUUID] Unrecognised selector sent to instance.. Actually from Unity the function inside the category class present in the native iOS library, not getting called.

I will really appreciate anyones help to solve this problem as I am on the verge of building a successful iOS library for the first time.

Comment
Add comment
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

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

2 People are following this question.

avatar image avatar image

Related Questions

A node in a childnode? 1 Answer

making a trail that destroys enemies 1 Answer

[HELP] BCE0022: Cannot convert 'UnityEngine.Vector3' to 'UnityEngine.GameObject'. 1 Answer

Twitter button 1 Answer

What should i learn for unity C# or UnityScript? 4 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