Discussion Forums  >  Xcode, Errors, Installing, Configuring

Replies: 15    Views: 139

trailman
Aspiring developer
Profile
Posts: 280
Reg: Dec 10, 2010
Sedona, az
6,550
01/08/13 01:54 PM (13 years ago)

Ever see this error before?

I've got 10 of these errors but can not find the docs to fix them. Maybe it's a question for Xtify. duplicate symbol _OBJC_CLASS_$_SBJsonParser in: /Users/brucefraser/Library/Developer/Xcode/DerivedData/sedonatravelguide-cgzbjxpjuseooldtuwsbufbjtgkr/Build/Intermediates/sedonatravelguide.build/Debug-iphonesimulator/sedonatravelguide.build/Objects-normal/i386/SBJsonParser.o /Users/brucefraser/Dropbox/Sedona Travel Guide/sedonatravelguide-iOS-BTv2.0-EAA7350E0F610BA06B70E6D53/XtifyLib/XtifyPush.embeddedframework/XtifyPush.framework/XtifyPush(SBJsonParser.o)
 
Ed Goodall
Fusion Technology
Profile
Posts: 422
Reg: Oct 01, 2011
Wiltshire, UK
12,320
like
01/08/13 01:56 PM (13 years ago)
It is definitely to do with Xtify! I think you should just sign up for the BT membership and do your push notifications from there... easy and works! Ed <a href="http://www.egapp.co.uk" target="_blank" rel="nofollow">http://www.egapp.co.uk</a>
 
trailman
Aspiring developer
Profile
Posts: 280
Reg: Dec 10, 2010
Sedona, az
6,550
like
01/08/13 01:58 PM (13 years ago)
Do they do geo-location pushes? I don't think so. I want them automated as much as possible. I'm self hosted and a member... Thanks, Bruce
 
Ed Goodall
Fusion Technology
Profile
Posts: 422
Reg: Oct 01, 2011
Wiltshire, UK
12,320
like
01/08/13 01:59 PM (13 years ago)
Well in that case I will have to leave it to fellow developers... I dont use Xtify so I am no expert! Sorry! Ed www.egapp.co.uk
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
01/08/13 02:36 PM (13 years ago)
SBJsonParser duplicate- I run into this a lot when adding other SDK's if they include that file. it's pretty common in SDK's. That error is saying "duplicate" because SBJasonParser is already in your project - its in the BT_CORE JSON folder. No need to copy that file. But then again - what if XTIFY wants to use a newer SBJSON parser than the one already in BT Core? That's why these BT Core files are tricky....
 
trailman
Aspiring developer
Profile
Posts: 280
Reg: Dec 10, 2010
Sedona, az
6,550
like
01/08/13 02:45 PM (13 years ago)
I'm feeling kind of F^*cked right now. Is that the case? b
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
01/08/13 02:57 PM (13 years ago)
Tough to say, there's no versioning in BT stuff so how do we know what version that SBjasonparser in BT Core is. IIRC it was dated 2009 and i think a version is. but here's how I would test and find out... 1) RENAME the existing sbjsonparser files in BTCore and copy new ones in there. Don't delete the old ones - RENAME. I find changing the extension (.h or .m) to .hk .mk works quickly and tricks xcode into not compiling them beacause it doesn't like .k files. Try running the project and see what happens... Duplicate SBjasonparser cost me hours to track down in the past. That's why I know where to find that file. The new ones worked for me in my project.
 
tb
buzztouch Evangelist
Profile
Posts: 2050
Reg: Nov 03, 2011
Oxford
32,300
like
01/08/13 03:04 PM (13 years ago)
Blimey. That does look complex. I can only suggest what the others are saying, but you may want to try and clean out the app and re-download the source code.
 
trailman
Aspiring developer
Profile
Posts: 280
Reg: Dec 10, 2010
Sedona, az
6,550
like
01/08/13 03:38 PM (13 years ago)
I changed the names of the SBJsonParser.h, SBJsonParser.m, SBJsonWriter.m, SBJsonWriter.h. Added new files from my server. Got the same error. Did I do it right? b
 
trailman
Aspiring developer
Profile
Posts: 280
Reg: Dec 10, 2010
Sedona, az
6,550
like
01/08/13 03:39 PM (13 years ago)
I noticed the .o files are created when I compile.
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
01/08/13 06:27 PM (13 years ago)
Sorry @trailman, home parenting and away from command central- but did want to clarify a bit, I know you're cranking on these SDK's and have spent a few hrs there. maybe someone else might chime in. If I;m reading the error correctly, the gist of it is that Xtify (or other) SDK's want to copy some sbjson parser class files into your project. but you can't have duplicate files tho.... and the whole sbjson class is already in the BT project. so look at the files in the SDK and make a list of duplicates. then take one of these approaches 1) try pulling the duplicated sbjson files out of the sdk. (it can use the ones already in your project, xcode just searches the 'bundle') 2) rename the existing files in your bt_core json folder in the project. now you can copy the new files from the SDK into your project and should not be duplicate conflicts. New SBjson files from an SDK like xtify might work fine with BT. David didn't modify/write the ones in bt_core, he just copied them to BT Core. SBjason is a standard class. So unless there is some depreciated code or methods that conflict, updated sbjason files might work with the existing bt code. you might have to go into xcode copy bundle resources and remove files manually too. clean and build as well. Perhaps tomorrow I can try adding xtify to a sample app and help more, but I'm toast for today... also I feel like xtify charged for location based pushes? I was looking into it and seems like it was $erious upgrade for them?
 
trailman
Aspiring developer
Profile
Posts: 280
Reg: Dec 10, 2010
Sedona, az
6,550
like
01/08/13 06:35 PM (13 years ago)
Dude, thanks for your time, do your thing. You've helped me quite a bit. I'll poke around like you said and see what happens. I know they charge for it, but if I want to go that way I'm setup to go there. It could be real slick for a travel app. I could have it trigger traffic issues, 30 seconds before they come around the turn entering Sedona I could have a "Welcome" message. When I see a person has really gotten around town shopping I could push them an extra coupon for dinner or something. All that can be done automatically. The possibilities are endless. Thanks for your time, Bruce
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
01/09/13 09:05 AM (13 years ago)
any luck? That is the perfect use of that feature. Exactly what it's for. AT&T had a slick video on their site a while back touting this as part of their new mobile developer API. They wanted major $$$ too for it. So there's something about these services having access to your device location in real time that they must be charging for. In that commercial, they showed a jogger passing by a shop and 10 seconds later - they were sending her a coupon. To me that has a bit of the creep/stalker factor to it. Kinda like someone else knowing where I am without me wanting to know. I struggle with adding PN to an app and then realizing most users turn it off because they may feel the same. How about Appoxee? Have you played with that yet? I'm building an app with this currently to handle PN and use that inbox feature to send coupons, etc..
 
trailman
Aspiring developer
Profile
Posts: 280
Reg: Dec 10, 2010
Sedona, az
6,550
like
01/09/13 09:34 AM (13 years ago)
No luck, I ran out of steam. Had a long day. Where would I look for these duplicates? I've watched some videos about how to use push. I want to use it for truly helpful info 90% of the time. I'll throw coupons, drink specials or restaurant deals in very sparingly. Otherwise I would be stalking them and the'll get pissed. I'm hoping with a travel app people will keep stuff turned on. Hopefully behavior changes while travelling. I won't know til I try. I've heard of Appoxee, but I don't know if I can stomach another SDK. I'm getting weary and want to be done. This is supposed to be a MVP. Bruce
 
trailman
Aspiring developer
Profile
Posts: 280
Reg: Dec 10, 2010
Sedona, az
6,550
like
01/09/13 10:13 AM (13 years ago)
 
trailman
Aspiring developer
Profile
Posts: 280
Reg: Dec 10, 2010
Sedona, az
6,550
like
01/09/13 11:12 AM (13 years ago)
I don't know what I did but I got rid of 6 errors. All I have left are 4 of these: duplicate symbol _OBJC_IVAR_$_Reachability.reachabilityRef in: /Users/brucefraser/Library/Developer/Xcode/DerivedData/sedonatravelguide-cgzbjxpjuseooldtuwsbufbjtgkr/Build/Intermediates/sedonatravelguide.build/Debug-iphonesimulator/sedonatravelguide.build/Objects-normal/i386/BT_reachability.o /Users/brucefraser/Dropbox/Sedona Travel Guide/sedonatravelguide-iOS-BTv2.0-EAA7350E0F610BA06B70E6D53/XtifyLib/XtifyPush.embeddedframework/XtifyPush.framework/XtifyPush(Reachability.o) Those .o files are created on the fly. I can see the ios ones being created but the xtify ones I can't see.
 

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.