Adam Pritchard 7908122477 Swift glue in progress. Still fixing umbrella framework config. 9 лет назад
..
OpenSSL-for-iPhone 4844f308d9 Clean git ignored files in openssl build script 9 лет назад
PsiphonTunnelController 7908122477 Swift glue in progress. Still fixing umbrella framework config. 9 лет назад
.gitignore de70e48c77 build script fixes, umbrella framework project reorganized, gomobile version bump 9 лет назад
README.md 7908122477 Swift glue in progress. Still fixing umbrella framework config. 9 лет назад
build-psiphon-framework.sh de70e48c77 build script fixes, umbrella framework project reorganized, gomobile version bump 9 лет назад

README.md

##Psiphon iOS Library README

###Overview

Psiphon Library for iOS enables you to easily embed Psiphon in your iOS app. The Psiphon Library for iOS is implemented in Go and follows the standard conventions for using a Go library in an iOS app.

###Building

####Prerequisites

  • xcode xcode-select --install
  • git
  • homebrew
    • Install from terminal: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • golang
    • Install from terminal: brew install go

####Build Steps

  • run build-psiphon-framework.sh

###Using the Library and Sample Apps

Coming soon

  • $(PROJECT_DIR)/PsiphonTunnelController.framework (or wherever the framework is located) must be added to the project's "Framework Search Paths" setting.
  • Add framework as Embedded Binary in General settings.
  • New user-defined value in project settings: STRIP_BITCODE_FROM_COPIED_FILES: NO.

###Acknowledgements

Psiphon iOS Library uses:

####OpenSSL-for-iPhone Changes

build-libssl.sh rebuilds openssl on every run. Modifications were made to not run unless required, they are:

  • Check if libssl.a and libcrypto.a are built and compare the version strings found in files to the VERSION variable in build-libssl.sh.

  • A new variable FORCE_BUILD is set to force a build. Set this to true as necessary.