<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 13. Sep 2021, at 17:25, Dirk Hohndel <<a href="mailto:dirk@hohndel.org" class="">dirk@hohndel.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On Sep 13, 2021, at 2:01 AM, Robert Helling <<a href="mailto:helling@atdotde.de" class="">helling@atdotde.de</a>> wrote:</div><div class=""><div class="" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><br class=""></div></div></blockquote></div><div class=""><br class=""><blockquote type="cite" class=""><div class=""><div class="" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div class=""><blockquote type="cite" class=""><div class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div class=""><br class=""></div><div class=""><font face="Courier New" class="">git clone<span class="Apple-converted-space"> </span><a href="git://github" class="">git://github</a>.com/subsurface/subsurface</font></div><div class=""><font face="Courier New" class="">ln -s PATHTOQTFORIOS ./Qt</font></div><div class=""><div class=""><br class=""></div><div class="">Then run essentially the following in as a script:</div><div class=""><br class=""></div><div class=""><font face="Courier New" class="">QT_PATH="$(cd Qt ; ls -d 5.*/ios/include/QtCore/5* | tr '.' '_')"</font></div><div class=""><font face="Courier New" class="">QT_VERSION=${QT_PATH##*/}</font></div><div class=""><font face="Courier New" class=""><br class=""></font></div><div class=""><font face="Courier New" class="">if [ ! -d build-Subsurface-mobile-Qt_${QT_VERSION}_for_iOS-Release ] ; then</font></div><div class=""><font face="Courier New" class="">        echo "cannot find the build folder build-Subsurface-mobile-Qt_${QT_VERSION}_for_iOS-Release"</font></div><div class=""><font face="Courier New" class="">        echo "creating a new one"</font></div><div class=""><font face="Courier New" class="">fi</font></div><div class=""><font face="Courier New" class="">mkdir -p build-Subsurface-mobile-Qt_${QT_VERSION}_for_iOS-Release</font></div><div class=""><font face="Courier New" class=""><br class=""></font></div><div class=""><font face="Courier New" class="">TOP=$(pwd)</font></div><div class=""><font face="Courier New" class="">cd subsurface</font></div><div class=""><font face="Courier New" class="">bash packaging/ios/build.sh</font></div><div class=""><br class=""></div></div></div></div></blockquote><div class=""><br class=""></div><div class="">This brings me back to yesterday’s error with the architecture confusion.</div></div></div></div></blockquote><div class=""><br class=""></div><div class="">So that's interesting. I replicated this in a fresh directory and this seems to work on my system.</div><div class="">Which makes me think... did you do this inside an existing build directory? So were there maybe some parts of a build, libraries, something from a previous attempt?</div><div class="">When I get things like this I simply start with a fresh one:</div><div class=""><br class=""></div><div class=""><font face="Courier New" class="">mkdir ~/freshsrc</font></div><div class=""><font face="Courier New" class="">cd ~/freshsrc</font></div><div class=""><font face="Courier New" class="">git clone...</font></div></div></div></div></blockquote><div><br class=""></div>I had done that.<br class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><div class=""><br class=""></div><div class="">If you can run that whole process with output redirected, that would be great. Happy to dig into this (well, not really, but let's say "willing") and compare that to a working run here on my end.</div><div class="">The fact that the GitHub iOS build still works (and that's essentially the first part of the above) seems to indicate that this should work for you as well.</div><br class=""><blockquote type="cite" class=""><div class=""><div class="" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div class=""><blockquote type="cite" class=""><div class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div class=""><div class="">Now start Xcode and open the Xcode project in <span class="" style="font-family: "Courier New";">build-Subsurface-mobile-Qt_${QT_VERSION}_for_iOS-Release/Subsurface-mobile.xcodeproj</span></div><div class="">You should be able to build and run that on your device.</div></div></div></div></blockquote><div class=""><br class=""></div><div class="">The problem is, there is no xcodeproj file. This is supposed to be created by some qmake run at some point, isn’t it?</div></div></div></div></blockquote><div class=""><br class=""></div>The xcodeproj file is created in the <font face="Courier New" class="">build.sh</font> as the result of running <font face="Courier New" class="">qmake</font>.</div><div class="">My guess is that either your Qt install is broken (that wouldn't surprise me at all - but you could simply grab the Qt-5.14 dump that we use with the GitHub action)</div></div></div></blockquote><div><br class=""></div><div>Yes, the Qt is very aged on this laptop (plus there is one from home-brew which theoretically could interfere as well). The next thing to try is to update to the latest Qt version. Besides this running for a while, upgrading Qt usually results in builds at first failing because of that until I manage to find all the things to adopt (like some symlinks printing to the correct version of binaries…).</div><div><br class=""></div><div>I will try this and report back.</div><br class=""></div>Best<div class="">Robert</div></body></html>