miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
02/15/15 02:49 AM (9 years ago)

Parse iOS errors

Since Push Notifications don't work for me in Live mode, I tried with Parse: 1. downloaded last SDK 2. put parse.framework in project 3. added libraries to "Link binary with Libraries" 4. in appDelegate.m added #import <Parse/Parse.h> 5. added [Parse setApplicationId:@"XXXXXXXXXXXXX" clientKey:@"YYYYYYYYYYY"]; [PFAnalytics trackAppOpenedWithLaunchOptions:launchOptions]; [application registerForRemoteNotificationTypes:UIRemoteNotificationTypeBadge| UIRemoteNotificationTypeAlert| UIRemoteNotificationTypeSound]; which made errors Apple mach-O Linker error, see link: https://www.dropbox.com/s/ysheh9m6bykmww9/parse1.jpg?dl=0 What should I change to make this working?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/15/15 04:03 AM (9 years ago)
use the instructions found on this page: https://www.parse.com/apps/quickstart#parse_push/ios/existing Perform these steps in your appName_appDelegate.m file the first blue box statement (#import...) goes with the other import statements. the second and third blue box should be pasted towards the end of your didFinishLaunchingWithOptions method, but before [[self.window.rootViewController navigationController] setNavigationBarHidden:TRUE]; //make the window active [self.window makeKeyAndVisible]; and finally, the fourth blue box methods should 'replace' the existing methods. Don't 'add' them to the method, replace the method. otherwise follow the instructions as normal. Cheers! -- Smug
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
02/15/15 05:31 AM (9 years ago)
After adding 1st blue box, everything is good, but as soon as I add 2nd and 3rd blue box, I got same error: see link https://www.dropbox.com/s/dm660q2uh4dlr4f/parse2.jpg?dl=0
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/15/15 06:16 AM (9 years ago)
Sorry, but that screenshot doesn't help much. I did forget to mention some items that were first brought to light by Chris1 as seen here: http://www.buzztouch.com/forum/thread.php?tid=DA308929DBC29D1DB83B7A8&sortColumn=FT.id&sortUpDown=DESC&currentPage=1 Try reading this document and seeing if it helps any. https://dl.dropboxusercontent.com/u/115208762/ParseBT.pdf Be sure to have completed the other Parse requirements; I only outline the 'BT Specific' things. Cheers! -- Smug
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
02/15/15 06:49 AM (9 years ago)
Thanks, seems I am little closer: I changed BT_loadConfigDataViewController.m and tried to put blue boxes on right places. Error is now different: in //didReceiveRemoteNotification.., link: https://www.dropbox.com/s/zdt8prk3l5l10p7/parse3.jpg?dl=0
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/15/15 03:27 PM (9 years ago)
I don't want to point out the obvious, but a 'duplicate' means two. this error means you have two of the same statements in your code. Look at the part where it says 'replace' the code, and keep the new code, and comment out or delete the old code. Cheers! -- Smug
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
02/16/15 03:25 AM (9 years ago)
Thanks Smug, I deleted whole: //didReceiveRemoteNotification.. method and now Parse works. Now I will try Android, but this is another story, I hope it will work.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/16/15 04:25 AM (9 years ago)
Cool. Glad you got it going! :) Good luck in Android, I haven't ventured that far yet. I always get sidetracked with other projects before I can get my first one finished. I may be asking you for help on that when the time comes. :) Cheers! -- Smug
 

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.