@@ -138,15 +138,17 @@ if [ $BUILD_MACOS ] ; then
138
138
139
139
# Fetch the ARX.framework from latest build into a location where Xcode will find it.
140
140
SDK_FILENAME=" artoolkitX.for.macOS.v${SDK_VERSION_PRETTY} .dmg"
141
- curl -f -o " ${SDK_FILENAME} " --location " ${SDK_URL_DIR} $( rawurlencode " ${SDK_FILENAME} " ) "
141
+ if [ ! -f " ${SDK_FILENAME} " ] ; then
142
+ curl -f -o " ${SDK_FILENAME} " --location " ${SDK_URL_DIR} $( rawurlencode " ${SDK_FILENAME} " ) "
143
+ fi
142
144
hdiutil attach " ${SDK_FILENAME} " -noautoopen -quiet -mountpoint " SDK"
143
145
rm -rf depends/macOS/Frameworks/ARX.framework
144
146
cp -af SDK/artoolkitX/SDK/Frameworks/ARX.framework depends/macOS/Frameworks
145
147
hdiutil detach " SDK" -quiet -force
146
148
147
149
# Make the version number available to Xcode.
148
150
cp macOS/user-config-in.xcconfig macOS/user-config.xcconfig
149
- sed -E -i " s/@VERSION@/${VERSION} /" macOS/user-config.xcconfig
151
+ sed -E -i " " -e " s/@VERSION@/${VERSION} /" macOS/user-config.xcconfig
150
152
151
153
(cd macOS
152
154
xcodebuild -target " artoolkitX Camera Calibration Utility" -configuration Release
@@ -159,7 +161,9 @@ if [ $BUILD_IOS ] ; then
159
161
160
162
# Fetch libARX from latest build into a location where Xcode will find it.
161
163
SDK_FILENAME=" artoolkitX.for.iOS.v${SDK_VERSION_PRETTY} .dmg"
162
- curl -f -o " ${SDK_FILENAME} " --location " ${SDK_URL_DIR} $( rawurlencode " ${SDK_FILENAME} " ) "
164
+ if [ ! -f " ${SDK_FILENAME} " ] ; then
165
+ curl -f -o " ${SDK_FILENAME} " --location " ${SDK_URL_DIR} $( rawurlencode " ${SDK_FILENAME} " ) "
166
+ fi
163
167
hdiutil attach " ${SDK_FILENAME} " -noautoopen -quiet -mountpoint " SDK"
164
168
rm -rf depends/iOS/include/ARX/
165
169
cp -af SDK/artoolkitX/SDK/include/ARX depends/iOS/include
@@ -169,7 +173,7 @@ if [ $BUILD_IOS ] ; then
169
173
170
174
# Make the version number available to Xcode.
171
175
cp iOS/user-config-in.xcconfig iOS/user-config.xcconfig
172
- sed -E -i " s/@VERSION@/${VERSION} /" iOS/user-config.xcconfig
176
+ sed -E -i " " -e " s/@VERSION@/${VERSION} /" iOS/user-config.xcconfig
173
177
174
178
(cd iOS
175
179
xcodebuild -target " artoolkitX Camera Calibration Utility" -configuration Release -destination generic/platform=iOS
0 commit comments