0

I'm getting the following error while integrating the ccavenue payment gateway.

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

check the image here

pavithra
  • 47
  • 1
  • 10
  • try this ans http://stackoverflow.com/a/18916600/4831524 – Antony Raphel Mar 21 '17 at 09:50
  • thanks for the reply i am not having any red color files in build phases also i cleaned my project many times and checked but it not works for me .. – pavithra Mar 21 '17 at 10:01
  • You should check two classes with same name added in your Xcode project or Isn't you import .m file?? – Antony Raphel Mar 21 '17 at 10:21
  • the problem is i just running the ccavenue payment gateway sample .In that i don't no how to add library search path and header search path .In that some how i added the library search path but i didn't add the header search so that only the problem coming i think so.can u pls explain me how to add the following both paths in the project . – pavithra Mar 21 '17 at 10:40
  • http://stackoverflow.com/a/19131578/4831524 – Antony Raphel Mar 21 '17 at 11:06

1 Answers1

0

enter image description hereHI just follow this simple steps:

1.create a new folder in ur source folder name as: openssl

2.in side openssl create a another folder name as lib

3.add all .h files of ccavenue files to ur open ssl

4.add all the .a lib files in lib folder

4.1. create new group in ur project in Xcode and name as openssl copy all the files in the openssl what u created in the previous.

4.2. create another new group in openssl name as lib copy all the lib files in to it.

5.in your project under the target in build settings type linker: u can find OtherLinkerFlags add(reference if its required)

-ObjC
-framework
-lc++
$(inherited)

6.next search for search paths: (in search)

in lib search paths add

$(PROJECT_DIR)
$(inherited)
$(PROJECT_DIR)/openssl/lib

finish lets clean the project (win + shift+k)

run it.

NAVEEN KUMAR
  • 669
  • 6
  • 25
  • thanks for ur reply, still i am getting the same error i followed all ur steps mentioned above,also i added the images for ur reference. – pavithra Mar 23 '17 at 11:02
  • ok maybe u given wrong path of ur lib files. can u take screenshot of ur projects path what u given and where u crated the files – NAVEEN KUMAR Mar 23 '17 at 11:14
  • i added the image pls check it – pavithra Mar 23 '17 at 11:47
  • what is the mistake? – pavithra Mar 23 '17 at 12:27
  • that is my resources folder inside I have my project name and workspace here u need to add openssl folder – NAVEEN KUMAR Mar 23 '17 at 12:30
  • i am getting the following error after following your steps. 1) Unknown type name 'XSym' . 2) Expected identifier or '(' 3) '@end' must appear in an Objective-C context can u pls suggest me how to rectify that error – pavithra Mar 27 '17 at 10:26