Satinder Grewal
9 years ago
7 changed files with 50 additions and 0 deletions
@ -0,0 +1,5 @@ |
|||
CC="$(xcrun --sdk iphoneos --find clang) -isysroot $(xcrun --sdk iphoneos --show-sdk-path) -arch armv7 -arch arm64 -arch armv7s -ONLY_ACTIVE_ARCH=YES" |
|||
AR="$(xcrun --sdk iphones --find ar)" |
|||
|
|||
$CC -c -O2 *.c jpeg/*.c jpeg/unix/*.c |
|||
rm -f ../agents/libcrypto777.a; $AR -rcs ../agents/libcrypto777.a *.o |
@ -0,0 +1,4 @@ |
|||
CC="$(xcrun --sdk iphoneos --find clang) -isysroot $(xcrun --sdk iphoneos --show-sdk-path) -arch armv7 -arch arm64 -arch armv7s -ONLY_ACTIVE_ARCH=YES" |
|||
|
|||
git pull |
|||
$CC -o ../agents/iguana -O2 *.c ../agents/libcrypto777.a ../ios/lib/libcurl.a ../ios/lib/libssl.a ../ios/lib/libcrypto.a -lpthread -lm |
@ -0,0 +1,39 @@ |
|||
## Quick iOS Development Environment setup instructions |
|||
|
|||
- Install xcode from Apple App Store. |
|||
- Execute command `xcode-select --install` from Terminal. Install Command line tools |
|||
- Install Git for command line. Get installer from here: http://git-scm.com/download/mac |
|||
|
|||
## Compile iguana for iOS |
|||
|
|||
- Get SuperNET repository clonned on your machine with command |
|||
|
|||
`git clone https://github.com/jl777/SuperNET` |
|||
|
|||
- Change your directory to the clonned SuperNET and execute the following commands: |
|||
|
|||
`./m_onetime m_ios` |
|||
|
|||
`./m_ios` |
|||
|
|||
- You'll find `libcrypto777.a` and `iguana` for iOS in agents directory inside SuperNET repo clonned dir. |
|||
- To check if the files are for iOS platform, you can execute the folowing command which will show a result something like this: |
|||
|
|||
`cd agents` |
|||
|
|||
`lipo -info iguana` |
|||
|
|||
Expected result: |
|||
|
|||
`Architectures in the fat file: agents/iguana are: armv7 armv7s arm64` |
|||
|
|||
|
|||
## Info on iOS libraries ## |
|||
The iOS libraries libcrypto.a, libssl.a, and libcurl.a are picked from the following github repositories: |
|||
https://github.com/sinofool/build-libcurl-ios |
|||
https://github.com/sinofool/build-libcurl-ios |
|||
|
|||
|
|||
NOTE: This build of iguana iOS has not been tested with any iOS device due to the limitations of iOS App has to execute system commands in iOS devices. A task is created in developer channel to help testing this iguana iOS compile. Please head over to this link for more detail: https://phabricator.supernet.org/T398 |
|||
|
|||
More detailed instructions you may visit the developer wiki at https://phabricator.supernet.org/w/iguana/development/ios/ |
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,2 @@ |
|||
git pull |
|||
cd iguana; ./m_ios; cd .. |
Loading…
Reference in new issue