diff --git a/crypto777/m_ios b/crypto777/m_ios new file mode 100755 index 000000000..c579b9661 --- /dev/null +++ b/crypto777/m_ios @@ -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 diff --git a/iguana/m_ios b/iguana/m_ios new file mode 100755 index 000000000..e7f89f1dc --- /dev/null +++ b/iguana/m_ios @@ -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 diff --git a/ios/iOS_Readme.md b/ios/iOS_Readme.md new file mode 100644 index 000000000..49dd39cc3 --- /dev/null +++ b/ios/iOS_Readme.md @@ -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/ diff --git a/ios/lib/libcrypto.a b/ios/lib/libcrypto.a new file mode 100644 index 000000000..97cd4df7b Binary files /dev/null and b/ios/lib/libcrypto.a differ diff --git a/ios/lib/libcurl.a b/ios/lib/libcurl.a new file mode 100644 index 000000000..691063ced Binary files /dev/null and b/ios/lib/libcurl.a differ diff --git a/ios/lib/libssl.a b/ios/lib/libssl.a new file mode 100644 index 000000000..5951b85d9 Binary files /dev/null and b/ios/lib/libssl.a differ diff --git a/m_ios b/m_ios new file mode 100755 index 000000000..e31b7612d --- /dev/null +++ b/m_ios @@ -0,0 +1,2 @@ +git pull +cd iguana; ./m_ios; cd ..