SarahS
Lost but trying
Profile
Posts: 39
Reg: Apr 11, 2013
Des Moines
4,040
04/30/13 08:55 AM (12 years ago)

Error in My Code

Hey everyone! Im trying to create and app for my Dental Office, I tried to add the plug in that would direct them to a website. When I put it into Xcode it came up as an error. Can anyone help me with this?
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/30/13 09:00 AM (12 years ago)
What kind of error are you getting?
 
SarahS
Lost but trying
Profile
Posts: 39
Reg: Apr 11, 2013
Des Moines
4,040
like
04/30/13 09:12 AM (12 years ago)
I've never made one of these before, but when i put it into Xcode it comes up as an error it says that the "JSON.h" file not found, whatever that means :)
 
SarahS
Lost but trying
Profile
Posts: 39
Reg: Apr 11, 2013
Des Moines
4,040
like
04/30/13 09:14 AM (12 years ago)
it says Lexical or Preprocessor Issue 'JSON.h' file not found
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/30/13 09:16 AM (12 years ago)
Did you drag in the BT_Plugins folder into XCode?
 
SarahS
Lost but trying
Profile
Posts: 39
Reg: Apr 11, 2013
Des Moines
4,040
like
04/30/13 09:19 AM (12 years ago)
yep, then when it tried to load it came up with that error
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/30/13 09:20 AM (12 years ago)
Can you provide a screenshot of XCode with the error?
 
SarahS
Lost but trying
Profile
Posts: 39
Reg: Apr 11, 2013
Des Moines
4,040
like
04/30/13 09:24 AM (12 years ago)
when i hit play to simulate the app, it instantly comes up as an error, When I just had the plug ins for Email, Directions, phone, and Email, it worked just fine. It loaded, let me do the simulation but when i added in the websites it comes up as an error
 
SarahS
Lost but trying
Profile
Posts: 39
Reg: Apr 11, 2013
Des Moines
4,040
like
04/30/13 09:24 AM (12 years ago)
/Users/kyle/Desktop/Screen Shot 2013-04-30 at 11.09.43 AM.png
 
SarahS
Lost but trying
Profile
Posts: 39
Reg: Apr 11, 2013
Des Moines
4,040
like
04/30/13 09:24 AM (12 years ago)
does that work?
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/30/13 09:25 AM (12 years ago)
Actually, you'll need to send the image to a site like dropbox and get the link for it. Or, send it to me in an email at [email protected]
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
04/30/13 09:57 AM (12 years ago)
Hi Sarah, Did you drag the entire BT_Plugins folder into Xcode, or just a few select plugins? It's best to drag the entire thing, even if there are plugins you aren't using. Also make sure to drag in BT_Art, BT_Images, BT_Audio, and any others that came with your download package. Mark
 
SarahS
Lost but trying
Profile
Posts: 39
Reg: Apr 11, 2013
Des Moines
4,040
like
04/30/13 11:05 AM (12 years ago)
does that work?
 
SarahS
Lost but trying
Profile
Posts: 39
Reg: Apr 11, 2013
Des Moines
4,040
like
04/30/13 11:05 AM (12 years ago)
ok, Ill try that, Thanks Mark:)
 
SarahS
Lost but trying
Profile
Posts: 39
Reg: Apr 11, 2013
Des Moines
4,040
like
04/30/13 11:08 AM (12 years ago)
OK, i tried that, and now im getting 20 errors :(
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
04/30/13 11:11 AM (12 years ago)
Hi Sarah, If you're getting errors, or anything preventing you from compiling your program, it's helpful to be as descriptive as possible. Screenshots are super good, because we can see what's going on. Output pasted from the debug console is also super helpful. Without it...we'll, there's no way for us to help, because it could literally be one of a million different things! Mark
 
SarahS
Lost but trying
Profile
Posts: 39
Reg: Apr 11, 2013
Des Moines
4,040
like
04/30/13 11:16 AM (12 years ago)
Im very new at this, if you have time to explain it to me, i would really appreciate it. What information do you need and what screen shots would be helpful? how to I upload a screen shot to this forum?
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/30/13 11:20 AM (12 years ago)
Sarah, do you have a Dropbox account? If not, consider signing up - it's free. You can upload the screenshots there and then get a link to 'share' the file. Paste that link in this forum. Here's an example: https://www.dropbox.com/s/pn16lg58m4lxxe2/Screen%20Shot%202013-04-30%20at%201.18.01%20PM.png
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/30/13 11:21 AM (12 years ago)
You'll notice at the bottom of that picture, is a bunch of strange-looking output. The last line of that section in my picture is: 2013-04-30 12:31:29.874 edmondsvet[18340:c07] Cr_menu_advanced: viewDidAppear in BT_viewController BASE CLASS If you could copy and paste what is in that section, it would be very helpful.
 
SarahS
Lost but trying
Profile
Posts: 39
Reg: Apr 11, 2013
Des Moines
4,040
like
04/30/13 11:24 AM (12 years ago)
is that in Xcode or on buzztouch? im sorry. Im trying :) Im downloading the dropbox now
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/30/13 11:25 AM (12 years ago)
it's in XCode
 
SarahS
Lost but trying
Profile
Posts: 39
Reg: Apr 11, 2013
Des Moines
4,040
like
04/30/13 11:25 AM (12 years ago)
They make this sound so easy in the tutorials ;)
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/30/13 11:26 AM (12 years ago)
haha - yeah. It get's easier after you do it once. :)
 
SarahS
Lost but trying
Profile
Posts: 39
Reg: Apr 11, 2013
Des Moines
4,040
like
04/30/13 11:29 AM (12 years ago)
still downloading......... can i just paste all of the code into that drop box? would that help?
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/30/13 11:29 AM (12 years ago)
you can paste that code into this forum post actually
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/30/13 11:32 AM (12 years ago)
I just got your email - that error would indicate you're missing one of the core files for the Buzztouch app. First try this: Go to the "Product" menu at the very top of your screen in XCode (where it says "XCode - File - Edit - View - Navigate - etc"). Then click on "clean". Try and run again to see if that fixes it. If not, you may need to download your source code again and start the project over.
 
SarahS
Lost but trying
Profile
Posts: 39
Reg: Apr 11, 2013
Des Moines
4,040
like
04/30/13 11:43 AM (12 years ago)
ok, I will try that, if that doesn't work, what and how do I put into dropbox
 
SarahS
Lost but trying
Profile
Posts: 39
Reg: Apr 11, 2013
Des Moines
4,040
like
04/30/13 11:45 AM (12 years ago)
that let me go through a lot more of it but its still telling me 16 errors
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/30/13 11:45 AM (12 years ago)
Take a screenshot of the entire XCode screen, like I did in the picture I linked to above. To put it into dropbox, you can go to www.dropbox.com, log into your account, and press the upload button at the top to upload your picture. Once it's uploaded, you can create a 'share link' and paste it in here.
 
SarahS
Lost but trying
Profile
Posts: 39
Reg: Apr 11, 2013
Des Moines
4,040
like
04/30/13 11:54 AM (12 years ago)
I re-download the source code and cleaned it before i tried running it and it worked! only problem now is it only is showing 2 of my 6 screens..... this is frustrating :(
 
SarahS
Lost but trying
Profile
Posts: 39
Reg: Apr 11, 2013
Des Moines
4,040
like
04/30/13 11:55 AM (12 years ago)
I re-download the source code and cleaned it before i tried running it and it worked! only problem now is it only is showing 2 of my 6 screens..... this is frustrating :(
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/30/13 11:56 AM (12 years ago)
What happens if you hit the refresh button on your app? Do your screens appear?
 
SarahS
Lost but trying
Profile
Posts: 39
Reg: Apr 11, 2013
Des Moines
4,040
like
04/30/13 11:57 AM (12 years ago)
it only allows you to email and show our location. I also put a plug-in to log into our patient info system and our website and phone number. non of those are showing up on the app simulator
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/30/13 11:58 AM (12 years ago)
Are those screens linked to your main menu screen?
 
SarahS
Lost but trying
Profile
Posts: 39
Reg: Apr 11, 2013
Des Moines
4,040
like
04/30/13 12:00 PM (12 years ago)
it only allows you to email and show our location. I also put a plug-in to log into our patient info system and our website and phone number. non of those are showing up on the app simulator
 
SarahS
Lost but trying
Profile
Posts: 39
Reg: Apr 11, 2013
Des Moines
4,040
like
04/30/13 12:01 PM (12 years ago)
it only allows you to email and show our location. I also put a plug-in to log into our patient info system and our website and phone number. non of those are showing up on the app simulator
 
SarahS
Lost but trying
Profile
Posts: 39
Reg: Apr 11, 2013
Des Moines
4,040
like
04/30/13 12:10 PM (12 years ago)
im pretty sure they are i just added plugins. Thank you for your patience. Is there something i need to select when i created the plug in that will make it show up on my home screen? i guess i thought it automatically did that when you created it.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
04/30/13 12:12 PM (12 years ago)
Welcome @SarahS, I promise it does get easier..lol. You are in great hands with @chris1 and @GoNorthWest! LA
 
SarahS
Lost but trying
Profile
Posts: 39
Reg: Apr 11, 2013
Des Moines
4,040
like
04/30/13 12:12 PM (12 years ago)
Never mind. I just figured out that part :)
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/30/13 12:13 PM (12 years ago)
nope - it's a 2 step process. The first is to add the screen to your control panel. The second is to make it show up as a link in one of your other screens. (otherwise, users would have no way of getting to the screen). The standard way to do this is to make it one of the items on your main menu. Likely, you are using the "Menu with Image" or "Menu Simple" or "Button Menu" screen as your home screen. If you open that up, you should be able to add a new "row" that points to your screen.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/30/13 12:13 PM (12 years ago)
okay great! Ignore my last post then ;)
 
SarahS
Lost but trying
Profile
Posts: 39
Reg: Apr 11, 2013
Des Moines
4,040
like
04/30/13 12:25 PM (12 years ago)
I got it working!!! thank you soo much Chris!!!!
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/30/13 12:26 PM (12 years ago)
You're welcome! Glad you figured it out. You did all the right things - you had patience, kept asking questions, and refused to give up. That's all it takes to create some great looking apps on here. :)
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
04/30/13 12:27 PM (12 years ago)
Awesome @SarahS and chris1! LA
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
04/30/13 01:16 PM (12 years ago)
Great work everybody! Glad you got it working! Mark
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
04/30/13 01:39 PM (12 years ago)
awesome show of determination @SarahS!
 
SarahS
Lost but trying
Profile
Posts: 39
Reg: Apr 11, 2013
Des Moines
4,040
like
04/30/13 02:05 PM (12 years ago)
Chris, now will you tell me how to make it look cool? cause right now its really lame, and can i do that once i've uploaded into xcode?
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/30/13 02:09 PM (12 years ago)
lol - well that is the million dollar question, huh? What plugins are you using? If you use the "menu with image" plugin for your home screen, you can spruce it up by adding icons to the rows, rounding the corners on the menu, and adding a background image for the screen (an image of a texture works really well for this). Here's an example of what I mean. This is an app I'm doing as a favor to a friend. Actually, he doesn't even know it yet :) https://www.dropbox.com/s/tua2sgm1aktmy36/Screen%20Shot%202013-04-30%20at%204.06.56%20PM.png
 
SarahS
Lost but trying
Profile
Posts: 39
Reg: Apr 11, 2013
Des Moines
4,040
like
04/30/13 03:48 PM (12 years ago)
Haha! Yes it is That sounds awesome! It doesn't have to be that great but I would like it to reflect well on the office. If I add the plug in and edit it, is all I have to do is refresh it in the app simulator or would I have to add that code into Xcode?
 
SarahS
Lost but trying
Profile
Posts: 39
Reg: Apr 11, 2013
Des Moines
4,040
like
04/30/13 03:49 PM (12 years ago)
That app looks fantastic by the way :-)
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/30/13 03:50 PM (12 years ago)
nope - just need to add it to your online control panel, and it will do the rest. Unless of course you're trying to add images that aren't previously there - then you'll need to add those into XCode and recompile.
 
SarahS
Lost but trying
Profile
Posts: 39
Reg: Apr 11, 2013
Des Moines
4,040
like
04/30/13 03:52 PM (12 years ago)
Do they have images to choose from? I would like the banner on the top of the screen to be our logo. I know you can import photos into buzz touch, would that work?0
 
SarahS
Lost but trying
Profile
Posts: 39
Reg: Apr 11, 2013
Des Moines
4,040
like
04/30/13 03:53 PM (12 years ago)
I'm not at my computer right now so I can't look at it right now
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/30/13 03:59 PM (12 years ago)
You can always point to the images online via the imageURL properties, which would work if you uploaded the images to your control panel. BUT: that really slows down the app, especially if they're big images. It's always better to load images directly in XCode if you can.
 
SarahS
Lost but trying
Profile
Posts: 39
Reg: Apr 11, 2013
Des Moines
4,040
like
04/30/13 06:02 PM (12 years ago)
I'll give it a try!
 

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.