Tubaad
Aspiring developer
Profile
Posts: 35
Reg: May 29, 2012
RANHEIM
2,000
03/21/14 10:53 AM (10 years ago)

Error: Unused function 'radians'

Hello, In Xcode I am getting and error: /BT_Core/BT_imageTools.m:37:22: Unused function 'radians' Screen shot: http://puu.sh/7DZaB.png Any ideas?
 
DavidEdgertonJr
Aspiring developer
Profile
Posts: 37
Reg: May 21, 2013
Cottage Grove, ...
3,970
like
03/21/14 11:15 AM (10 years ago)
This is a line in your code where you introduce this term. I would do a search on the term 'radians' to find where it is and determine if you need that line of the code. Hope that helps. Thanks. David
 
Tubaad
Aspiring developer
Profile
Posts: 35
Reg: May 29, 2012
RANHEIM
2,000
like
03/21/14 12:00 PM (10 years ago)
I find it in the Xcode, but I never actually introduced the term, just downloaded a project from bt and opened it in Xcode. As far as I know I never used any settings to call for radians Strange
 
NCbuzz
Code is Art
Profile
Posts: 575
Reg: Sep 11, 2013
Lillington, NC
11,100
like
03/21/14 06:35 PM (10 years ago)
It is in BT_imageTools.m line 37 As was pointed out to me on some other items- it is just a "warning" not an error ;) I don't think it is "currently" referenced by any BT code, but the experts would need to weigh-in on that...
 
Tubaad
Aspiring developer
Profile
Posts: 35
Reg: May 29, 2012
RANHEIM
2,000
like
03/21/14 07:16 PM (10 years ago)
Thanks for that. So such warnings will not prevent my app from being approved by the Apple reviewers?
 
PaddyO
Lost but trying
Profile
Posts: 189
Reg: Sep 11, 2013
Geelong
5,190
like
03/24/14 11:18 PM (10 years ago)
I'd be interested if anyone else has found this - I just installed and upgraded Xcode to 5.1 (I really, really broke something earlier, deep in my Library folder. Oops.) and it was the second error/warning that appeared. Something in 5.1 just doesn't like this line of BT code. At least it's just a warning. Tubaad, let us know if it does affect your app approval. Cheers Paddy
 
Tubaad
Aspiring developer
Profile
Posts: 35
Reg: May 29, 2012
RANHEIM
2,000
like
03/25/14 01:11 AM (10 years ago)
I will let you know. So far I have just bravely deleted the line with the radians reference and hope for the best.
 
DavidEdgertonJr
Aspiring developer
Profile
Posts: 37
Reg: May 21, 2013
Cottage Grove, ...
3,970
like
03/25/14 05:33 AM (10 years ago)
I have also deleted the line when it came up in my app. I have experienced no issues. Thanks. David
 
CampGirl
Lost but trying
Profile
Posts: 144
Reg: Jan 10, 2013
Here and Now
7,240
like
03/25/14 02:14 PM (10 years ago)
Hey all, I also experienced this, but my issue is now the app won't install in the simulator. I'm thinking these two things are not related, though, because the same thing happens when I delete the line. I also upgraded Xcode recently. Thoughts? I'm off to figure out why the sim won't install it now. =)
 
Tubaad
Aspiring developer
Profile
Posts: 35
Reg: May 29, 2012
RANHEIM
2,000
like
03/25/14 02:17 PM (10 years ago)
Normally when I can't run in simulator it is because of red error messages. Like missing plugins etc etc Do you have any such errors?
 
CampGirl
Lost but trying
Profile
Posts: 144
Reg: Jan 10, 2013
Here and Now
7,240
like
03/25/14 02:28 PM (10 years ago)
Me too, but no red errors right now. I've brought in plugins, files, etc., and the build succeeds, just gives me the warning triangle that the app could not be installed in the simulator...
 
Tubaad
Aspiring developer
Profile
Posts: 35
Reg: May 29, 2012
RANHEIM
2,000
like
03/25/14 02:30 PM (10 years ago)
It is a risk that the blind is leading the blind here :=), but I've had that problem, and rather that looking for the solution I simply downloaded the entire code from BT again. If you haven't made many manual changes to the code that might be fastest.
 
CampGirl
Lost but trying
Profile
Posts: 144
Reg: Jan 10, 2013
Here and Now
7,240
like
03/25/14 02:45 PM (10 years ago)
Cool, thanks, I will try that
 
peterj
Apple Fan
Profile
Posts: 113
Reg: Jun 19, 2011
location unknow...
6,630
like
05/20/14 05:44 AM (10 years ago)
I see this error too...perhaps the function is only used by certain plug-ins? That would mean if you downloaded all plug-ins (even ones that you don't actually use), this error might go away...even if that's the case, it's a lot of extra code in your project for an error that doesn't affect the actual building and running of your app. As I understand it, Xcode is just doing you a favor by saying, "Hey you wrote this function, but you're not actually using it anywhere, and that's wasteful, so you should use it somewhere, or get rid of it." This is probably why deleting the code or commenting it out makes Xcode happier. Instead of deleting, I often comment the code out (put two forward slashes in front)...this way, if in the future you update your app and then it complains that this function is missing, you just have to un-comment it (remove the slashes).
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.