Skip to content

Commit

Permalink
Some more fixes for the iOS build in sys/ios-sdk.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Feb 7, 2019
1 parent 1e65206 commit f33db3e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions sys/ios-sdk.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# You can modify these variables
PREFIX="/usr"
Expand All @@ -22,6 +22,9 @@ export IOSVER=9.0
export IOSINC=`pwd`/sys/ios-include
export USE_IOS_STATIC=0

echo "If xcrun --sdk iphoneos cant find the profile use this line:"
echo " sudo xcode-select -switch /Applications/Xcode.app"

PLUGINS_CFG=plugins.ios-store.cfg
#PLUGINS_CFG=plugins.ios.cfg

Expand All @@ -41,7 +44,7 @@ iosConfigure() {

iosClean() {
make clean
rm -rf libr/.libr libr/libr.a libr/libr.dylib
rm -rf libr/.libr libr/.libr2 libr/libr.a libr/libr.dylib shlr/libr_shlr.a
}

iosBuild() {
Expand Down Expand Up @@ -237,11 +240,12 @@ if [ "${USE_SIMULATOR}" = 1 ]; then
fi

# check if arm archs were selected and if so build radare2 for them
# XXX this is a bashism
if [ "${#ARCHS}" -gt 0 ]; then
iosClean
iosConfigure
if [ "$?" = 0 ]; then
export CPU=$ARCHS
export CPU="$ARCHS"
export SDK=iphoneos
echo "Building for $CPU"
sleep 1
Expand Down

0 comments on commit f33db3e

Please sign in to comment.