cancel
Showing results for 
Search instead for 
Did you mean: 

Couldn't found synchronizeWithListener and getCredentialsFromApplication functions

Former Member
0 Kudos

Hi everyone,

I'm trying to run SUP101 project on this tutorial.  I implemented everthing on tutorial step by step. But when i run project , it crashed.

It could not find  [[self getSynchronizationProfile] getCredentialsFromApplication]; in SUP101SUP101DB.m class and   [SUP101SUP101DB  synchronizeWithListener:self]; in SucscribeController.m class.

i'm working with SUP 2.1.3 and xcode 4.3.1.

Thanks in advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Busra,

have you found a solution yet?

Regards, Patrick

tahir_z
Contributor
0 Kudos

Hi Busra,

Have you import libraries and code in a way that documents says ? I suggest you to follow the link below :

http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc01217.0213/doc/pdf/sup_devguide_iOS_...

Kind Regards

Tahir

Former Member
0 Kudos

Hi Tahir,

I followed link you sent but i took same error.

I added Generated Code, Libraries, frameworks and set Header Search Paths, Library Search Paths such as tutorial. I could build project successfully .

When i run project, i enter password and I can see my device online on Sybase Control Center .But when i clicked "Synchronize" button , i took "unrecognized selector sent to instance" 

error for synchronizeWithListener function.

My Generated Code folder like this :

Generated Code

  • includes

           *  common

           *  SUP101       

  • src

           *  common

           *  SUP101

But Generated Code folder in tutorial :

Generated Code

  • includes

           *  common         

           *  SUP101   

                    -internal   

  • src

           *  common

           *  SUP101

                    -internal

I can not generate internal folder , it can be error's reason ??

Thanks,

Busra

Former Member
0 Kudos

I had the same issue and you should add the <SUBSyncStatusListner> delegatie in the SubscribeController.h :

It should somewhere look like this :

@interface ViewController : UIViewController<SUPSyncStatusListener>{

    UIButton *button;

}