mirror of
https://github.com/OpenVPN/openvpn3.git
synced 2024-09-20 20:13:05 +02:00
b88790efef
* Updated to Xcode 4.5 and tested client build on iOS6. * Note that it is no longer necessary to copy the private SystemConfiguration header files for the VPN API into the Xcode tree. The OpenVPN Xcode project file will now reference them directly from the ovpn3 tree. * Note that in Xcode 4.5, the iPhoneOSProductTypes.xcspec file that must be edited to allow bundle signing is now a binary plist. Use the Mac plutil tool to convert it to JSON so it can be edited then convert back to binary: $ cp iPhoneOSProductTypes.xcspec iPhoneOSProductTypes.xcspec.backup $ plutil -convert json -r iPhoneOSProductTypes.xcspec [ edit iPhoneOSProductTypes.xcspec according to instructions in ovpn3/doc/Build_VPN_App_and_Plugin.pdf ] $ plutil -convert binary1 iPhoneOSProductTypes.xcspec * The ARM assembler provided in Xcode 4.5 is no longer able to assemble the Minicrypto ASM algorithms. As a workaround, before updating to Xcode 4.5, preserve the previous clang binary by copying it to ~/clang3/clang -- the build-minicrypto script will expect it to exist. This is the version of clang that must be used: $ ~/clang3/clang --version Apple clang version 3.0 (tags/Apple/clang-211.10.1) (based on LLVM 3.0svn) Target: x86_64-apple-darwin11.4.2 Thread model: posix * Make sure to update your PATH to include the new Xcode 4.5 clang and rebuild all libraries. I found that updating to Xcode 4.5 left the old clang in /usr/bin. The Xcode 4.5 clang should show this version info: $ clang --version Apple clang version 4.1 (tags/Apple/clang-421.11.65) (based on LLVM 3.1svn) Target: x86_64-apple-darwin11.4.2 Thread model: posix * Added $O3/scripts/mac/build-all script to build all Mac/iOS dependencies.
10 lines
427 B
Plaintext
10 lines
427 B
Plaintext
export PLATFORM=iossim
|
|
export APPLE_FAMILY=1
|
|
export GPP_CMD=clang++
|
|
export GCC_CMD=clang
|
|
export IOS_SDK="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk"
|
|
export PLATFORM_FLAGS="-arch i386 -miphoneos-version-min=5.0 -isysroot $IOS_SDK"
|
|
export OTHER_COMPILER_FLAGS="-fvisibility=hidden -fvisibility-inlines-hidden"
|
|
export LIB_OPT_LEVEL="-O3"
|
|
export LIB_FPIC=""
|