xcode - libcrypto.a symbol(s) not found for architecture i386 -


xcode 6.3 beta

i'm using libcrypto.a in project.

my app can compile , run on ipod touch5 (armv7).

but when try run app on iphone5 simulator, i'm getting error:

  "_closedir$unix2003", referenced from:       _openssl_dir_end in libcrypto.a(o_dir.o)    "_fputs$unix2003", referenced from:       _write_string in libcrypto.a(ui_openssl.o)       _read_string in libcrypto.a(ui_openssl.o)    "_opendir$inode64$unix2003", referenced from:       _openssl_dir_read in libcrypto.a(o_dir.o)    "_readdir$inode64", referenced from:       _openssl_dir_read in libcrypto.a(o_dir.o) ld: symbol(s) not found architecture i386 

then checked architectures libcrypto.a i'm using support using command:

lipo -info libcrypto.a 

and result:

architectures in fat file: libcrypto.a are: i386 armv7 armv7s arm64  

any advice appreciated, :)

create new m file anywhere. , define missing function here:

#include <stdio.h>   #include <unistd.h>   #include <string.h>  #include <stdlib.h>  #include <dirent.h>  #include <fnmatch.h>    file *fopen$unix2003( const char *filename, const char *mode )  {      return fopen(filename, mode);  }    int fputs$unix2003(const char *res1, file *res2){      return fputs(res1,res2);  }    int nanosleep$unix2003(int val){      return usleep(val);  }    char* strerror$unix2003(int errornum){      return strerror(errornum);  }    double strtod$unix2003(const char *nptr, char **endptr){      return strtod(nptr, endptr);  }    size_t fwrite$unix2003( const void *a, size_t b, size_t c, file *d )  {      return fwrite(a, b, c, d);  }    dir * opendir$inode64( char * dirname )  {      return opendir( dirname );  }    struct dirent * readdir$inode64( dir * dir )  {      return readdir( dir );  }


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -