Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 10    Views: 46

Tyroner
Aspiring developer
Profile
Posts: 175
Reg: Dec 26, 2012
Johannesburg, S...
4,200
05/11/14 11:38 PM (10 years ago)

Stop Watch Plugin

I am getting the following error in Xcode when I try to run my app: Lexical or Preprocessor issue: 'stopwatch_appDelegate.h' file not found Any ideas on how to fix this? Tyrone
 
trouty
I hate code!
Profile
Posts: 338
Reg: Mar 26, 2013
London Outskirt...
4,830
like
05/12/14 12:51 AM (10 years ago)
Check your plugins folder in xcode, does that file exist? Did you copy the BT_plugins folder across?
 
Tyroner
Aspiring developer
Profile
Posts: 175
Reg: Dec 26, 2012
Johannesburg, S...
4,200
like
05/12/14 01:09 AM (10 years ago)
Yes I did copy the BT_plugin folder to project. I checked in the downloaded folder and there is no such file in the folder. I'm not sure whether the file was perhaps accidentally named wrongly.
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
05/12/14 01:40 AM (10 years ago)
HI, maybe you added that plugin on your control panel after you downloaded the project? If thats the case then the plugin was not included in the download package. Miguel
 
trouty
I hate code!
Profile
Posts: 338
Reg: Mar 26, 2013
London Outskirt...
4,830
like
05/12/14 01:56 AM (10 years ago)
You know what? It's looking for the app delegate file, which i would expect to be: yourappname_appDelegate.h But, xcode is looking for: Lexical or Preprocessor issue: 'stopwatch_appDelegate.h' file not found so go into the stopwatch plugin, look at the .m file and search stopwatch_appDelegate.h; and replace it with your appDelegate name instead
 
Tyroner
Aspiring developer
Profile
Posts: 175
Reg: Dec 26, 2012
Johannesburg, S...
4,200
like
05/12/14 03:54 AM (10 years ago)
Miguel - Yes I did download it. trouty - Your solution worked perfectly! Thanks a stack!! Here is the solution for others who have the same issue: 1. In AN_ChatRoom.m file delete: #import "stopwatch_appDelegate.h". 2. Replace it with: #import "yourappname_appDelegate.h" 3. On line 65 replace stopwatch_appDelegate with yourappname_appDelegate. 4. Clean your project and problem solved!
 
trouty
I hate code!
Profile
Posts: 338
Reg: Mar 26, 2013
London Outskirt...
4,830
like
05/12/14 04:08 AM (10 years ago)
excellent! I tend to copy plugins from one project to another so often gt similar issues.
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
05/12/14 08:00 AM (10 years ago)
Wow, questions answered before I could even see them... gotta love it. Thanks Trouty. @Tyroner: Are you sure thats in the AN_ChatRoom.m file? I made the stop watch plugin long before the Chat Room plugin, so even when copying and pasting chunks of code, there shouldn't be any chat room plugin references in the stopwatch plugin. I'll see if it's something I overlooked and submit an update to the stopwatch plugin. I'm surprised nobody has reported it until now.
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
05/12/14 08:09 AM (10 years ago)
Update just submitted which will fix the issue :) Thanks for pointing it out
 
Tyroner
Aspiring developer
Profile
Posts: 175
Reg: Dec 26, 2012
Johannesburg, S...
4,200
like
05/12/14 09:45 AM (10 years ago)
My apologies! It is AN_Stopwatch.m file. Confused with your other plugin! Thanks for fixing. Will redownload this evening.
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
05/12/14 09:54 AM (10 years ago)
Cool. It's the exact same edit that you already made, so no need to redownload your project, as it will simply do the same thing that you already manually did. When the project is created, it replaces any instance in a plugin from "BT_appDelegate" to "YourAppName_appDelegate". When I was creating the local project to test the stopwatch plugin during development, I just forgot to go back and replace "stopwatch_appDelegate" with "BT_appDelegate" before uploading, so that the BT servers would know to add your own project name into it.
 

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.