<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Courier;
        panose-1:2 7 4 9 2 2 5 2 4 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.apple-tab-span
        {mso-style-name:apple-tab-span;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
span.EmailStyle24
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-CA" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hi, just follow up with my solution that make it work into Jenkins:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:14.0pt;mso-fareast-language:EN-US">The bundle identifier problem:<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Into my project .pro<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">ios {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">    # The <o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">    versionAtLeast(QT_VERSION, 5.11.0) {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">        QMAKE_TARGET_BUNDLE_PREFIX=ca.amotus<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">        QMAKE_BUNDLE=MyApp<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">    }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">    !versionAtLeast(QT_VERSION, 5.11.0) {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">        Q_PRODUCT_BUNDLE_IDENTIFIER.value = ca.amotus.MyApp<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">        Q_PRODUCT_BUNDLE_IDENTIFIER.name = PRODUCT_BUNDLE_IDENTIFIER<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">        QMAKE_MAC_XCODE_SETTINGS += Q_PRODUCT_BUNDLE_IDENTIFIER<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">    }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">I dunno why this did changed, but it seem to be working this way now. Sad the documentation is so hard to find on those behavior.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:14.0pt;mso-fareast-language:EN-US">The signing problem:<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Finaly solve my problem, just made qmake generate the .xcodeproj and used xcodebuild to generate the remaining archive and .ipa with proper signing. I did try to happen the signing but the wrong
 certificate was used and I could not add my certificate with:<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:3.0pt;margin-right:0cm;margin-bottom:3.0pt;margin-left:0cm">
<span style="font-size:9.0pt;font-family:"Courier New";color:#1D1C1D">QMAKE_MAC_XCODE_SETTINGS+=certi certi.name=CODE_SIGN_IDENTITY certi.value=MyName with space<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">the value name have space, it did not like it, I try with<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:3.0pt;margin-right:0cm;margin-bottom:3.0pt;margin-left:0cm">
<span style="font-size:9.0pt;font-family:"Courier New";color:#1D1C1D">certi.value="MyName with space"<br>
certi.value=MyName\ with\ space<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">but neither did work, so I gave up and went:<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:3.0pt;margin-right:0cm;margin-bottom:3.0pt;margin-left:0cm">
<span style="font-size:9.0pt;font-family:"Courier New";color:#1D1C1D">"/Users/Shared/Qt/5.15.0/ios/bin/qmake" MyApp.pro -spec macx-ios-clang CONFIG+=release CONFIG+=iphoneos CONFIG+=device CONFIG+=qtquickcompiler -after<br>
make -f Makefile qmake_all<br>
make -f Makefile xcodeproj<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:3.0pt;margin-right:0cm;margin-bottom:3.0pt;margin-left:0cm">
<span style="font-size:9.0pt;font-family:"Courier New";color:#1D1C1D">// Do like other .xcodeproj would do<br>
// Unlock keychain here<br>
// Allow apple-tools to keychain<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:3.0pt;margin-right:0cm;margin-bottom:3.0pt;margin-left:0cm">
<span style="font-size:9.0pt;font-family:"Courier New";color:#1D1C1D">// Prevent keychain prompt<br>
xcodebuild .... with manual signing info goes here<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">This did the trick pretty well under Jenkins and no more messing around with wrong provisioning used for my AdHoc.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Maybe an update to the
</span><a href="https://doc.qt.io/qt-5/ios.html#building-applications-from-the-command-line">https://doc.qt.io/qt-5/ios.html#building-applications-from-the-command-line</a><o:p></o:p></p>
<p class="MsoNormal">which plain said to open xcode for the command line section O.o<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hope this might help other building into a CI like Jenkins the application.<span style="mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Jérôme Godbout <godboutj@amotus.ca>
<br>
<b>Sent:</b> June 18, 2020 5:25 PM<br>
<b>To:</b> Jérôme Godbout <godboutj@amotus.ca>; Boris Ralchenko <bralchenko@ics.com><br>
<b>Cc:</b> interest@qt-project.org<br>
<b>Subject:</b> RE: [Interest] Building iOS from command line<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">I did try to use the command line on my local checkout (was open and configured into QtCreator) to see if the Qmake command line would generate the same thing as the GUI, it does generate the same
 thing, so the fact of opening the .pro and selecting ios configuration change the output of building for iOS.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">A fresh checkout without .pro.user doesn’t give the same output. There is nothing into the .user that I can see that could do such a thing, I’m a bit lost why this is happenning!? QtCreator is configuring
 something when opening the .pro that is missing from the command line…<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Is there a way to output the resulting Info.plist with replacement.  Is this the proper way to set the Info.plist:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:3.0pt"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:3.0pt">From my .pro:<span style="font-size:9.0pt;font-family:"Courier New";color:#1D1C1D"><br>
Q_PRODUCT_BUNDLE_IDENTIFIER.value = ca.amotus.NubitusApp</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:3.0pt">From my ios .pri (I use the same .pri for all iOS application):<br>
<span style="font-size:9.0pt;font-family:"Courier New";color:#1D1C1D">DISTFILES += ios/Info.plist<span class="apple-converted-space"> </span><br>
Q_PRODUCT_BUNDLE_IDENTIFIER.name = PRODUCT_BUNDLE_IDENTIFIER<br>
QMAKE_MAC_XCODE_SETTINGS += Q_PRODUCT_BUNDLE_IDENTIFIERQMAKE_INFO_PLIST = ios/Info.plist</span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Damn, I revert my local modification and folder with a
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">git clean -dfx<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Now the bundle identifier is
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">ca.amotus.testdev.NubitusApp<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">?!? where does this come from? how does QMake generate the bundle identifier for the .xcodeproj exactly? it doesn’t seem to take the Info.plist entry, doesn’t seem to use the
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#1D1C1D">Q_PRODUCT_BUNDLE_IDENTIFIER either with QMAKE_MAC_XCODE_SETTINGS.
</span><span style="mso-fareast-language:EN-US">Note sure if this is normal, but the Info.plist is not copied to the generate folder.  Damn this is painful. Can we just copy an Info.plist next to the .xcodeproj ? would that be considered by xcode to build the
 project? <o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Interest <<a href="mailto:interest-bounces@qt-project.org">interest-bounces@qt-project.org</a>>
<b>On Behalf Of </b>Jérôme Godbout<br>
<b>Sent:</b> June 18, 2020 4:49 PM<br>
<b>To:</b> Boris Ralchenko <<a href="mailto:bralchenko@ics.com">bralchenko@ics.com</a>><br>
<b>Cc:</b> <a href="mailto:interest@qt-project.org">interest@qt-project.org</a><br>
<b>Subject:</b> Re: [Interest] Building iOS from command line<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">I have try to replace the bundle id directly into the .plist:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New";color:#1D1C1D"><key>CFBundleIdentifier</key><br>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string></span><span style="mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">by<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New";color:#1D1C1D"><key>CFBundleIdentifier</key><br>
<string>ca.amotus.NubtisuApp</string></span><span style="mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">But the resulting xcode project is still got replaced by com.yourcompany.NubitusApp, now that is strange, so the .pro value have no impact and something is just kind of replacing the value to this
 com.yourcompany.(Application Name). If I open the xcodeproject I can see that replaced value. I have no idea where it’s coming from. Anybody have an idea for this?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Boris Ralchenko <<a href="mailto:bralchenko@ics.com">bralchenko@ics.com</a>>
<br>
<b>Sent:</b> June 18, 2020 3:09 PM<br>
<b>To:</b> Jérôme Godbout <<a href="mailto:godboutj@amotus.ca">godboutj@amotus.ca</a>><br>
<b>Cc:</b> <a href="mailto:interest@qt-project.org">interest@qt-project.org</a><br>
<b>Subject:</b> Re: [Interest] Building iOS from command line<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I do have the bundle ID specified explicitly in the Info.plist. <o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I prefer Xcode for debugging/packaging. It appears to be more efficient way when I needed to figure out command line build, less tools to take care of. It is possible that QtCreator GUI has something that command line tools have not. <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal" style="background:#D7D3B7"><span class="apple-tab-span"><span style="font-size:10.0pt;font-family:Courier;color:#3B2322">     
</span></span><span style="font-size:10.0pt;font-family:Courier;color:#3B2322"><key>CFBundleIcons~ipad</key><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:#D7D3B7"><span class="apple-tab-span"><span style="font-size:10.0pt;font-family:Courier;color:#3B2322">     
</span></span><span style="font-size:10.0pt;font-family:Courier;color:#3B2322"><dict/><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:#D7D3B7"><span class="apple-tab-span"><span style="font-size:10.0pt;font-family:Courier;color:#3B2322">     
</span></span><span style="font-size:10.0pt;font-family:Courier;color:#3B2322"><key><b>CFBundleIdentifier</b></key><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:#D7D3B7"><span class="apple-tab-span"><span style="font-size:10.0pt;font-family:Courier;color:#3B2322">     
</span></span><span style="font-size:10.0pt;font-family:Courier;color:#3B2322"><string>com.viewpoint.kiosk</string><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:#D7D3B7"><span class="apple-tab-span"><span style="font-size:10.0pt;font-family:Courier;color:#3B2322">     
</span></span><span style="font-size:10.0pt;font-family:Courier;color:#3B2322"><key>CFBundleInfoDictionaryVersion</key><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:#D7D3B7"><span class="apple-tab-span"><span style="font-size:10.0pt;font-family:Courier;color:#3B2322">     
</span></span><span style="font-size:10.0pt;font-family:Courier;color:#3B2322"><string>6.0</string><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:#D7D3B7"><span class="apple-tab-span"><span style="font-size:10.0pt;font-family:Courier;color:#3B2322">     
</span></span><span style="font-size:10.0pt;font-family:Courier;color:#3B2322"><key>CFBundleName</key><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:#D7D3B7"><span class="apple-tab-span"><span style="font-size:10.0pt;font-family:Courier;color:#3B2322">     
</span></span><span style="font-size:10.0pt;font-family:Courier;color:#3B2322"><string>ViewPoint</string><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:#D7D3B7"><span class="apple-tab-span"><span style="font-size:10.0pt;font-family:Courier;color:#3B2322">     
</span></span><span style="font-size:10.0pt;font-family:Courier;color:#3B2322"><key>CFBundlePackageType</key><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:#D7D3B7"><span class="apple-tab-span"><span style="font-size:10.0pt;font-family:Courier;color:#3B2322">     
</span></span><span style="font-size:10.0pt;font-family:Courier;color:#3B2322"><string>APPL</string><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:#D7D3B7"><span class="apple-tab-span"><span style="font-size:10.0pt;font-family:Courier;color:#3B2322">     
</span></span><span style="font-size:10.0pt;font-family:Courier;color:#3B2322"><key>CFBundleShortVersionString</key><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:#D7D3B7"><span class="apple-tab-span"><span style="font-size:10.0pt;font-family:Courier;color:#3B2322">     
</span></span><span style="font-size:10.0pt;font-family:Courier;color:#3B2322"><string>1.0</string><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:#D7D3B7"><span class="apple-tab-span"><span style="font-size:10.0pt;font-family:Courier;color:#3B2322">     
</span></span><span style="font-size:10.0pt;font-family:Courier;color:#3B2322"><key>CFBundleSignature</key><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:#D7D3B7"><span class="apple-tab-span"><span style="font-size:10.0pt;font-family:Courier;color:#3B2322">     
</span></span><span style="font-size:10.0pt;font-family:Courier;color:#3B2322"><string>com.viewpoint.kiosk</string><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:#D7D3B7"><span class="apple-tab-span"><span style="font-size:10.0pt;font-family:Courier;color:#3B2322">     
</span></span><span style="font-size:10.0pt;font-family:Courier;color:#3B2322"><key>CFBundleVersion</key><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:#D7D3B7"><span class="apple-tab-span"><span style="font-size:10.0pt;font-family:Courier;color:#3B2322">     
</span></span><span style="font-size:10.0pt;font-family:Courier;color:#3B2322"><string>1.0</string><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="color:black">Regards,<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="color:black">    Boris Ralchenko.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
</div>
</div>
</div>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">On Jun 18, 2020, at 2:58 PM, Jérôme Godbout <<a href="mailto:godboutj@amotus.ca">godboutj@amotus.ca</a>> wrote:<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">Hi,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I have an Info.plist that I have into my project. I have the following entry into my Info.plist file:<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:3.0pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#1D1C1D"><?xml version="1.0" encoding="UTF-8"?><br>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "<a href="http://www.apple.com/DTDs/PropertyList-1.0.dtd" target="_blank">http://www.apple.com/DTDs/PropertyList-1.0.dtd</a>"><br>
<plist version="1.0"><br>
<dict><br>
         <key>CFBundleDisplayName</key><br>
         <string>${PRODUCT_NAME}</string><br>
         <key>CFBundleExecutable</key><br>
         <string>${EXECUTABLE_NAME}</string><br>
         <key>CFBundleGetInfoString</key><br>
         <string>Created by Qt/QMake</string><br>
         <key>CFBundleIdentifier</key><br>
         <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string><br>
         <key>CFBundleName</key><br>
         <string>${PRODUCT_NAME}</string><br>
         <key>CFBundlePackageType</key><br>
         <string>APPL</string><br>
    ...<br>
</dict></span><o:p></o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:3.0pt">From my .pro:<span style="font-size:9.0pt;font-family:"Courier New";color:#1D1C1D"><br>
Q_PRODUCT_BUNDLE_IDENTIFIER.value = ca.amotus.NubitusApp</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:3.0pt">From my ios .pri (I use the same .pri for all iOS application):<br>
<span style="font-size:9.0pt;font-family:"Courier New";color:#1D1C1D">DISTFILES += ios/Info.plist<span class="apple-converted-space"> </span><br>
Q_PRODUCT_BUNDLE_IDENTIFIER.name = PRODUCT_BUNDLE_IDENTIFIER<br>
QMAKE_MAC_XCODE_SETTINGS += Q_PRODUCT_BUNDLE_IDENTIFIERQMAKE_INFO_PLIST = ios/Info.plist</span><o:p></o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I was guessing the replacement should have happen. or does the above variables only work when inside QtCreator GUI?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<div>
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span class="apple-converted-space"><span lang="EN-US"> </span></span><span lang="EN-US">Boris Ralchenko <<a href="mailto:bralchenko@ics.com">bralchenko@ics.com</a>><span class="apple-converted-space"> </span><br>
<b>Sent:</b><span class="apple-converted-space"> </span>June 18, 2020 2:46 PM<br>
<b>To:</b><span class="apple-converted-space"> </span>Jérôme Godbout <<a href="mailto:godboutj@amotus.ca">godboutj@amotus.ca</a>><br>
<b>Cc:</b><span class="apple-converted-space"> </span><a href="mailto:interest@qt-project.org">interest@qt-project.org</a><br>
<b>Subject:</b><span class="apple-converted-space"> </span>Re: [Interest] Building iOS from command line</span><o:p></o:p></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">Hi Jérôme, <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal">We have a separate Info.plist for command line build, it should solve the bundle ID issue. I don’t remember exactly the details, it was couple of years ago. But I did check - there is an Info.plist in the repository. I suspect Qt Creator
 generates one too, but I rely on the one from Xcode.<o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal">Regards,<o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">    Boris Ralchenko.<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
</div>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"> <o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal">On Jun 18, 2020, at 2:30 PM, Jérôme Godbout <<a href="mailto:godboutj@amotus.ca">godboutj@amotus.ca</a>> wrote:<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal">Hi,<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal">I’m trying to build my project from my CI system to generate the .ipa (and stop releasing by hand over. But I seem to be missing something into my way of doing it (I managed to do it for Android, armv7/armv8 .apk and .aab). Here is my steps
 raw command line steps (not the provisioning, certificate and the keychain are installed and work with a Xamarin and Unity application with the same setup, the question is not about those parts).<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal">I’m building on lastest MacOS X, xcode is up to date and Qt 5.15.0<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<pre style="margin-bottom:3.0pt"><span style="font-size:9.0pt;color:#1D1C1D">"/Users/Shared/Qt/5.15.0/ios/bin/qmake" Nubitus.pro -spec macx-ios-clang CONFIG+=release CONFIG+=iphoneos CONFIG+=device CONFIG+=qtquickcompiler -after</span><o:p></o:p></pre>
<pre style="margin-bottom:3.0pt"><span style="font-size:9.0pt;color:#1D1C1D">make -f Makefile qmake_all</span><o:p></o:p></pre>
<pre style="margin-bottom:3.0pt"><span style="font-size:9.0pt;color:#1D1C1D">make</span><o:p></o:p></pre>
<div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal">The Qmake generate the makefile, make qmake_all work just fine, but the make build give me the following error:<o:p></o:p></p>
</div>
</div>
<pre style="margin-bottom:3.0pt"><span style="font-size:9.0pt;color:#1D1C1D">Xcode couldn't find any iOS App Development provisioning profiles matching 'com.yourcompany.NubitusApp'</span><o:p></o:p></pre>
<div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal">but my .pro clearly indicate<o:p></o:p></p>
</div>
</div>
<pre style="margin-bottom:3.0pt"><span style="font-size:9.0pt;color:#1D1C1D">Q_PRODUCT_BUNDLE_IDENTIFIER.value = ca.amotus.NubitusApp</span><o:p></o:p></pre>
<div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal">When building from inside QtCreator this work and the provisioning is also working just fine. so my question: Why is the build any different? is QtCreator doing any extra steps not print into the output? is there any env variables required
 for<span class="apple-converted-space"> </span><span style="font-size:9.0pt;color:#1D1C1D">Q_PRODUCT_BUNDLE_IDENTIFIER<span class="apple-converted-space"> </span></span>to be used? Did I miss a step?!<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal">Extra points question: will this generate an .ipa or .app ? How does one generate a .ipa from the command lines out of the result build by Qt make?<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Helvetica",sans-serif">_______________________________________________<br>
Interest mailing list<br>
</span><a href="mailto:Interest@qt-project.org"><span style="font-size:9.0pt;font-family:"Helvetica",sans-serif">Interest@qt-project.org</span></a><span style="font-size:9.0pt;font-family:"Helvetica",sans-serif"><br>
</span><a href="https://lists.qt-project.org/listinfo/interest"><span style="font-size:9.0pt;font-family:"Helvetica",sans-serif">https://lists.qt-project.org/listinfo/interest</span></a><o:p></o:p></p>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>