cancel
Showing results for 
Search instead for 
Did you mean: 

SMP101, error with simulator and device iOS

0 Kudos

I have issue, my SMP is 2.3.2, xcode 4.6.3 and iOS 6.1.

If I use simulator 6.1, the user is logged ok but I have error "onHttpComunicationEror: errorCode = 63" when click Synchronize.

If use ipad device 6.1 it was not possible to build because of "Apple Mach-O Linker Error".

I cann`t run the application in any way.

anyone can help me, please.

Best Regards

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello Hector,

The "Apple Mach-O Linker Error" is an architecture error, it can happen when:

1)You try to run the app and don't have the necessary Libraries or Frameworks imported.

2)You try to run the app in an architecture that is not supported by the Libraries or Frameworks.

I remember that it also happened to me when i tried to create a static variable name, that was already created in another class, im not really sure though

Cases for SUP:

1) You are trying to run the app on the device, with the library path pointing at simulator libraries, instead of the physical device libraries.

2) You have imported the simulator libraries in the project, and trying to run the app pointing at the physical device libraries.

Try to import the device physical libraries (of debug mode) and point at them at the debug build (if you are running developer mode), or release version for distribution.

The HTTP Stream error code 63 is caused by:

Unable to connect a socket

Probable cause

The network layer was unable to connect a socket. Check the following:
1) The machine is connected to the network.
2) The socket layer is properly initialized.
3) The correct host machine and port were specified.
4) The host server is running normally and listening on the correct port.
5) The host machine is listening for the proper socket type (TCP/IP vs. UDP).
6) If the client_port option was used, verify that there are no firewall restrictions on the use of the port.
7) If the device has a limit on the number of open sockets, verify that the limit has not been reached.
😎 There are enough system resources available. Free up system resources if they are running low.

Please reward points to answers if they are correct of useful. That way you can get more help

Regards,

Daniel


Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hector Ferruses

just check it once

http://scn.sap.com/thread/3439040

Rgrds,

Jitendra

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Hector,

please confirm

1. Is it native app?

2.when you tried on simulator, what is the status of registered user in scc ?online?

3 . what is backend you are connecting to

could you share more details related to the logs

Rgrds,

Jitendra

0 Kudos

Hi Jitendra,

1.- Yes

2.- The status is online. The user registration is correct.

3.- The tutorial SMP101 is sample database sybase

Log user registration with simulator iOS:

2013-10-16 13:12:30.351 SMP101[1568:6e03] ================================================

2013-10-16 13:12:30.351 SMP101[1568:6e03] ================================================

2013-10-16 13:12:30.352 SMP101[1568:6e03] onApplicationSettingsChanged: names = [Default - 1]

2013-10-16 13:12:30.352 SMP101[1568:6e03] ================================================

2013-10-16 13:12:30.352 SMP101[1568:6e03] =================================================

2013-10-16 13:12:30.352 SMP101[1568:6e03] onRegistrationStatusChanged: status = 203, code = 0, message = (null)

2013-10-16 13:12:30.353 SMP101[1568:6e03] =================================================

2013-10-16 13:12:30.889 SMP101[1568:6e03] ================================================

2013-10-16 13:12:30.890 SMP101[1568:6e03] onApplicationSettingsChanged: names = [Default - 1]

2013-10-16 13:12:30.890 SMP101[1568:6e03] ================================================

2013-10-16 13:12:31.511 SMP101[1568:6e03] =================================================

2013-10-16 13:12:31.512 SMP101[1568:6e03] onConnectionStatusChanged: status = 105, code = 0, message =

2013-10-16 13:12:31.512 SMP101[1568:6e03] =================================================

2013-10-16 13:12:31.533 SMP101[1568:6f03] =================================================

2013-10-16 13:12:31.533 SMP101[1568:6f03] onConnectionStatusChanged: status = 105, code = 0, message =

2013-10-16 13:12:31.534 SMP101[1568:6f03] =================================================

2013-10-16 13:12:32.078 SMP101[1568:6a0b] =================================================

2013-10-16 13:12:32.079 SMP101[1568:6a0b] onConnectionStatusChanged: status = 105, code = 0, message =

2013-10-16 13:12:32.079 SMP101[1568:6a0b] =================================================

2013-10-16 13:12:32.641 SMP101[1568:6f07] =================================================

2013-10-16 13:12:32.652 SMP101[1568:6f07] onConnectionStatusChanged: status = 103, code = 0, message =

2013-10-16 13:12:32.652 SMP101[1568:6f07] =================================================

2013-10-16 13:12:33.736 SMP101[1568:6f07] ================================================

2013-10-16 13:12:33.738 SMP101[1568:6f07] onApplicationSettingsChanged: names = [Default - 1]

2013-10-16 13:12:33.738 SMP101[1568:6f07] ================================================

2013-10-16 13:12:34.242 SMP101[1568:6f07] ================================================

2013-10-16 13:12:34.242 SMP101[1568:6f07] onApplicationSettingsChanged: names = [Default - 1]

2013-10-16 13:12:34.242 SMP101[1568:6f07] ================================================

2013-10-16 13:12:34.243 SMP101[1568:6f07] =================================================

2013-10-16 13:12:34.243 SMP101[1568:6f07] onRegistrationStatusChanged: status = 203, code = 0, message = (null)

2013-10-16 13:12:34.243 SMP101[1568:6f07] =================================================

2013-10-16 13:12:35.269 SMP101[1568:6f07] =================================================

2013-10-16 13:12:35.270 SMP101[1568:6f07] onConnectionStatusChanged: status = 105, code = 0, message =

2013-10-16 13:12:35.271 SMP101[1568:6f07] =================================================

2013-10-16 13:12:35.341 SMP101[1568:7607] =================================================

2013-10-16 13:12:35.342 SMP101[1568:7607] onConnectionStatusChanged: status = 105, code = 0, message =

2013-10-16 13:12:35.342 SMP101[1568:7607] =================================================

2013-10-16 13:12:36.133 SMP101[1568:6a0f] =================================================

2013-10-16 13:12:36.134 SMP101[1568:6a0f] onConnectionStatusChanged: status = 105, code = 0, message =

2013-10-16 13:12:36.134 SMP101[1568:6a0f] =================================================

2013-10-16 13:12:36.695 SMP101[1568:760b] =================================================

2013-10-16 13:12:36.696 SMP101[1568:760b] onConnectionStatusChanged: status = 103, code = 0, message =

2013-10-16 13:12:36.697 SMP101[1568:760b] =================================================

2013-10-16 13:12:37.761 SMP101[1568:760b] ================================================

2013-10-16 13:12:37.765 SMP101[1568:760b] onApplicationSettingsChanged: names = [Default - 1]

2013-10-16 13:12:37.766 SMP101[1568:760b] ================================================

2013-10-16 13:12:38.234 SMP101[1568:760b] ================================================

2013-10-16 13:12:38.235 SMP101[1568:760b] onApplicationSettingsChanged: names = [Default - 1]

2013-10-16 13:12:38.236 SMP101[1568:760b] ================================================

2013-10-16 13:12:38.666 SMP101[1568:760b] ================================================

2013-10-16 13:12:38.667 SMP101[1568:760b] onApplicationSettingsChanged: names = [Default - 1]

2013-10-16 13:12:38.668 SMP101[1568:760b] ================================================

Log when push buttom "Synchronize"


2013-10-16 13:12:52.076 SMP101[1568:c07] =================================================

2013-10-16 13:12:52.077 SMP101[1568:c07] onHttpCommunicationError: errorCode = 63

2013-10-16 13:12:52.077 SMP101[1568:c07] =================================================

2013-10-16 13:12:52.101 SMP101[1568:c07] [ERROR] [SubscribeController.m:72] SUPPersistenceException: Sync failed: -1305 (MOBILINK_COMMUNICATIONS_ERROR) %1:63 %2: %3:2;Parameter 1:63;Parameter 2:;Parameter 3:2

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Hector,

Can you please cross check what is host address you have given in host file?

I mean it should work with Ip address of smp server.

If you have already given host name as server name, try with ip address.

Is smp server in same network?

Rgrds,

Jitendra

0 Kudos

Hi Jitendra,

I try with both options, ip number and host name. But not run with any way.

I try with SMP in the same network and another SMP with vpn. Not run with any way.

Any idea more? please

Regards

midhun_vp
Active Contributor
0 Kudos

Are you subscribing before making a synchronize call ? while sync you have to use the port 2480.

0 Kudos

Hi Midhun,

Yes the user is online and simulation register. I have to put the port 2480 in some field or is default in the example SMP101.

Now, I have the same error in simulator and device:

2013-10-22 16:15:33.804 SMP101[146:907] =================================================

2013-10-22 16:15:33.806 SMP101[146:907] onHttpCommunicationError: errorCode = 63

2013-10-22 16:15:33.808 SMP101[146:907] =================================================

2013-10-22 16:15:33.810 SMP101[146:907] [ERROR] [SubscribeController.m:72] SUPPersistenceException: SUPPersistenceException from synchronize: -- SUPSynchronizeException: Sync failed: -1305 (MOBILINK_COMMUNICATIONS_ERROR) %1:63 %2: %3:2Details:

StreamErrorCode = 63

StreamErrorMessage =

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Hector,

I have tested the same SMP101 app on Android .it worked for me. you can check below link if it can help you.

http://scn.sap.com/docs/DOC-46101

If user is online in SCC, it means request is reaching to smp server successfully.

make sure you are using smp mobile sdk 2.3.2 ios object api in xcode.

Rgrds,

Jitendra

0 Kudos

Hi Jitendra,

I`m sure. I choose the right example.

I`m try with SUP 2.2.4 and another with SMP 2.3.2.

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

I`m try with SUP 2.2.4 and another with SMP 2.3.2.

iOS object libraries API should be different in both cases 2.2.4 and 2.3.2

Please check it once again.

midhun_vp
Active Contributor
0 Kudos

Use the SCC user name and password to register (ex: supAdmin,s3pAdmin) and sync. Is your DB is SAP ? if yes keep an external breakpoint in the RFC (related to MBO) and sync the RFC triggers. Is there load parameter involved ? Give more information on the MBO design