cancel
Showing results for 
Search instead for 
Did you mean: 

iOS conflict with libSDMConnectivity.a and Reachability.h

Former Member
0 Kudos

Hi,

We are creating an iOS app with uses a Netweaver Gateway Data Model and the Xcode project is created using the SAP Xcode project generator tool.

We want to actively check if there is an internet connection, therefore we used the Reachability.h and Reachability.m classes, however we get this error when we try build the project

"

   SDMLibs/libraries/Release-universal/libSDMConnectivity.a(Reachability.o)

   3 duplicate symbols for architecture i386

"

This could be because the library file libSDMConnectivity already contains the Reachability classes. Do we need to use the classes like SDMConnectivityHelper.m to check for an internet connection? Also how would we do this?

If you have any questions please let me know.

Thank you for your help.

Regards

Jing Jing Tao

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You are correct that the Reachability class is part of the libSDMConnectivity so there is no need to add the files on your own, but just to add an import to the Reachability.h.

You don't need to use the SDMConnectivityHelper class if you just want to check if there is an internet connection, you can use the Reachability API directly.

Regards,

Guy

Former Member
0 Kudos

Hi Guy,

Thank you for your reply, what you said helped.

So I just used this,

#import <SDMConnectivity/Reachability.h>

Regards
Jing Jing Tao

Answers (0)