Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 28    Views: 144

Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
04/10/13 08:29 AM (12 years ago)

Build Fails with SmugMSLoc Plugin

I installed this plugin into my application, downloaded the new plugin package and everytime I Fail to build. Im getting 4 Failed errors. Errors: 1. SW_smugmsglog cannot use "super" because it is a root class (3) 2. Property screendata not found on objectof type SW_smugmsglog (1)
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
04/10/13 10:10 AM (12 years ago)
Apple or Android? No such error for me in Xcode. Tim
 
jvalley
Aspiring developer
Profile
Posts: 456
Reg: Feb 16, 2013
Green Bay,Wi
9,360
like
04/10/13 10:11 AM (12 years ago)
i received the error in xcode just now also.. Deleted the folder and it built fine
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
04/10/13 10:24 AM (12 years ago)
Tried deleting in Xcode, downloaded new plugin package, and still getting fail errors. Am i doing something wrong? There is no additional frameworks required is there?
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
04/10/13 10:27 AM (12 years ago)
Self Hosted?
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
04/10/13 10:30 AM (12 years ago)
The plugin package gets installed into your Buzztouch or self hosted control panel, then your app should be repackaged and downloaded. Drag the plugins, images, docs, sound, video into your Xcode project. Clean ---> build. You should be good to go if you've done that.
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
04/10/13 11:00 AM (12 years ago)
This and the new Weather Plugins are driving me crazy. I cleaned, built, still no love! I even reloaded a whole new package and that did not help. Buzz Hosted
 
jvalley
Aspiring developer
Profile
Posts: 456
Reg: Feb 16, 2013
Green Bay,Wi
9,360
like
04/10/13 11:08 AM (12 years ago)
Im BT hosted. the weather plugin works fine its the MSloc that has errors
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
04/10/13 11:11 AM (12 years ago)
JValley, Do you have a sample api that you are using from Wunderground? I dunno if the api link i am using is correct.
 
jvalley
Aspiring developer
Profile
Posts: 456
Reg: Feb 16, 2013
Green Bay,Wi
9,360
like
04/10/13 11:14 AM (12 years ago)
are you getting a error with the weather plugin. or is it just not showing up in the sim? I signed up and just put the api in the control panel
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
04/10/13 11:15 AM (12 years ago)
Im am getting Null in the Sim.Whats your api call look like?
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
04/10/13 11:56 AM (12 years ago)
What version of self hosted?
 
jvalley
Aspiring developer
Profile
Posts: 456
Reg: Feb 16, 2013
Green Bay,Wi
9,360
like
04/10/13 11:59 AM (12 years ago)
be0773934xxxxxxx
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
04/10/13 12:08 PM (12 years ago)
Well, not sure if this is just a typo in this post or something weird happened otherwise but; 1. SW_smugmsglog cannot use "super" because it is a root class (3) 2. Property screendata not found on objectof type SW_smugmsglog (1) is what you wrote earlier. The "SW" should be "sw" and the last letter of "SW_smugmsglog" should be "c" not "g". Check the import and implementation statements in the .m file for the right definition. Tim
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
04/10/13 02:42 PM (12 years ago)
@Rad Doc - if you're getting "nul" you most likely don't have a correct API key. It's just a series of what looks like random letters and numbers.
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
04/10/13 02:55 PM (12 years ago)
Here's a screenshot showing where you find the API when you are logged in at wunderground.com https://dl.dropboxusercontent.com/u/76141353/Screen%20Shot%202013-04-10%20at%202.42.56%20PM.png
 
BandO
I hate code!
Profile
Posts: 153
Reg: Jan 23, 2012
Manhattan
1,530
like
04/11/13 02:39 AM (12 years ago)
Dont kill yourselves anymore. Its the "Capital" S in the implementation.. @implementation sw_smugmsgloc It should look like that.
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
04/11/13 07:04 AM (12 years ago)
I would like to thank everyone for their help while i try to fix my issue. @ GoBlue, Thanks for the clarification. I got the Weather Plugin to work, but only if i enter a location to search weather. When i leave the fields blank and hit ok when propted to use my location, i get the Null again.Is this because i am trying from a Simulator? When i enter the address of my location it works fine? @BandO & @Tim, Thanks for the help. I got it to build by changing the Capitl S, but when i click the screen from my menu, my app pauses and i get a SIGARBT ERROR. I attached a few screenshots. Ley me know what you think. https://dl.dropboxusercontent.com/u/35241128/Sample%20Screenshot/error1.png https://dl.dropboxusercontent.com/u/35241128/Sample%20Screenshot/Error%20.png
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
04/11/13 07:12 AM (12 years ago)
Your simulator may not be registering a location. When you have the Simulator open, click on the Debug Menu at the top and then Location. Try either setting a lat/lon in the custom field or selecting one of the defaults. We ran into a similar issue with someone outside the US. Should work fine in an actual device.
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
04/11/13 07:18 AM (12 years ago)
Interesting, but the capital S shouldn't have been there in the first place. Wasn't in my package. Weird. MGoBlue is probably right. I ran mine on a device, not a sim.
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
04/12/13 01:47 AM (12 years ago)
Ok, So i have a few questions/Concerns. 1. Why is it that every time i download a package with the Smug Plugin, I get a capital S in Sw? I change it, clean, build and when i click to view that screen with the plugin attached it pauses and i have to re-run. I am still yet to try this plugin out in any of my apps. 2. Could this be caused by me using Xcode Version 4.5.1, instead of the latest version? Any thoughts. This is what the output console message reads when i click on the Smug Plugin: 2013-04-12 04:36:36.722 applife[511:1e503] BT_viewControllerManager: the parent screen nickname: "Menu" itemId: 36F7C9666B492335B9ABA8F itemType: BTA_design_menu 2013-04-12 04:36:36.722 applife[511:1e503] BT_viewControllerManager: the menu/button tapped is itemId: B938EEADE181A955FD9BABB 2013-04-12 04:36:36.723 applife[511:1e503] BT_viewControllerManager: the screen to load is nickname: "Meet Me" itemId: EFDBB84AB9FB63C4B3C9190 itemType: sw_smugmsgloc 2013-04-12 04:36:36.724 applife[511:1e503] BT_viewControllerManager: initViewControllerForScreen nickname: "Meet Me" itemId: EFDBB84AB9FB63C4B3C9190 type: sw_smugmsgloc 2013-04-12 04:36:36.725 applife[511:1e503] sw_smugmsgloc: INIT 2013-04-12 04:36:36.725 applife[511:1e503] BT_navigationController: pushViewController 2013-04-12 04:36:36.725 applife[511:1e503] BT_navigationController: pushViewController for screen: EFDBB84AB9FB63C4B3C9190 2013-04-12 04:36:36.726 applife[511:1e503] +[BT_debugger showIt::]: unrecognized selector sent to class 0x317904 2013-04-12 04:36:36.748 applife[511:1e503] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[BT_debugger showIt::]: unrecognized selector sent to class 0x317904' *** First throw call stack: (0x3299012 0x30bee7e 0x33242ad 0x3288bbc 0x328894e 0x19b2ed 0x1883817 0x1883882 0x1883b2a 0x189aef5 0x189afdb 0x189b286 0x189b381 0x189beab 0x189c4a3 0x189c098 0xc460 0x11fe7 0xd70b1 0x18518d5 0x1851b3d 0x1356e83 0x3258376 0x3257e06 0x323fa82 0x323ef44 0x323ee1b 0x37157e3 0x3715668 0x17a265c 0x4a686 0x2e85) libc++abi.dylib: terminate called throwing an exception (lldb)
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
04/12/13 02:34 AM (12 years ago)
UPDATE: INSTALLED 4.6.1 AND APP STILL TERMINATES WHEN I CLICK THE SMUG PLUGIN SCREEN
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
04/12/13 08:01 PM (12 years ago)
I'll assist when I return home Wednesday. Unfortunately I'm off island with limited access. Apologies! -- Smug
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
04/14/13 02:32 PM (12 years ago)
I also can't get the SmugMSLoc Plugin to work. I finally got it to build by changing the following: Sw_smugmsgloc.m to sw_smugmsgloc.m and #import "Sw_smugmsgloc.h" to #import "sw_smugmsgloc.h" and @implementation Sw_smugmsgloc to @implementation sw_smugmsgloc When it is built and I run the plugin screen it freezes and goes back to xcode and is paused. I'm getting: semantic issues, autosynthesized property Thanks -Shane
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
04/14/13 06:02 PM (12 years ago)
ALL files and references should be lower case. If they are not, then something slipped through the cracks. i'll review and resubmit when I get back (about 5 days. Sorry). Cheers! -- Smug
 
mishgolf
Aspiring developer
Profile
Posts: 98
Reg: Nov 02, 2012
Sunshine Coast,...
980
like
05/16/13 10:13 PM (12 years ago)
i had the same problem. so after reading above i looked in BT_Plugins and then found sw_smugmsgloc and noticed that one of the files had a capital 'S' like was mentioned above. so i changed it, worked!!! thanks for the help:)
 
Pablo Picasso
I hate code!
Profile
Posts: 1
Reg: Jun 22, 2011
Santa Barbara
310
like
05/22/13 03:34 PM (12 years ago)
I also am having a ton of problems with smugmug! This is kind of lame. I paid for the plugin and now I can't run xcode. Getting SW_smugmsglog cannot use "super" because it is a root class
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
05/22/13 03:50 PM (12 years ago)
It just got updated, fixed all the problems as far as I can tell. Install the update.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
05/22/13 04:26 PM (12 years ago)
There are some issues with the version that's in the BT Control Panel, versus the Self Hosted version. I'm coordinating with David and Susan to get that fixed. In the interim, if it's in a downloaded project, your best bet would be to download the self hosted version, replace the files currently in your project, and make the appropriate search/replace for BT_appDelegate and change them to <yourprojectname>_appDelegate. If you have issues, let me know; I'm happy to help. Cheers! -- Smug If you've not worked with a 'raw' self hosted plugin, the package will be named the plugin name, and inside will be separate directories for iOS, Android, Screenshots, etcetera. When putting them into your iOS project, move only the files within the 'iOS' directory, not the entire plugin directory. If you delete the sw_smugmsgloc plugin directory in your project, you'll want to recreate that, copy the files from the iOS directory into that directory. Ensure that those files are 'added' to your project. Then make the appDelegate changes. Again, let me know if you have issues.
 

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.