简体   繁体   中英

Building OpenSSL dylibs for iOS Simulator

I'm using the build script from:

https://github.com/x2on/OpenSSL-for-iPhone

At this point, I'm solely interested in building the dylibs for iOS Simulator, because I'm using Delphi, for which it appears the compiler for iOS Simulator does not support static binding to the .a files.

I've "hacked" into build-libssl.sh to call:

./config shared

before the "make depend" calls, and it builds the libcrypto dylib, but not the libssl dylib.

Using the "file" command on the dylib reports that it's for i386; is there a difference in those that can be used in the simulator, or is supposed to be the same?

The easiest suggestion I have for you is that instead of doing 'xcrun -sdk iphoneos ...' you should run 'xcrun -sdk iphonesimulator ...'

You might also want to check out my answer in cross compile libgcrypt static lib for use on iOS

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM