Topic: iOS build with libwebsockets
Hi,
I'm trying to build wolfSSL and libwebsockets for iOS. For that I extended IDE/XCODE/user_settings.h with
#define OPENSSL_EXTRA
#define WOLFSSL_LIBWEBSOCKETS
and adjusted build script
WORKSPACE=$(eval "pwd")
PROJ=wolfssl.xcodeproj
CONFIG=Release
SCHEME=wolfssl_ios
CONF_BUILD_DIR=${WORKSPACE}/simulator
xcodebuild clean build -project ${PROJ} -configuration ${CONFIG} \
-scheme ${SCHEME} -destination generic/platform=iOS \
BITCODE_GENERATION_MODE=bitcode \
CONFIGURATION_BUILD_DIR=${CONF_BUILD_DIR}
Build was successful and I have IDE/XCODE/simulator/libwolfssl_ios.a
But this way wolfssl/options.h is not generated and cannot be found by libwebsockets. Is it the same as user_settings.h?
Or should I better use autotools? I compiled wolfSSL for Mac with these switches:
CFLAGS='-target x86_64-apple-macos10.12'
./configure --build=arm64-apple-darwin20.3.0 --target=x86_64-apple-darwin20.3.0 --host=x86_64-apple-darwin20.3.0 --prefix=${PWD}/inst --enable-opensslextra --enable-libwebsockets
But I doubt just changing x86_64 to armv7 will give me iOS library ...