title: QT Library imported in iOS native sdk
body: <p>So the plan for this project is to have a QT library that can be used in a native SDK.
  We have done a mock library that when imported in a QT App buit into  a xcodeproj works without issues. </p>
  
  <p>The library is static, running lipo -info returns x86_64 arm64. </p>
  
  <p>I used the tutorial from <a href="https://alediaferia.com/2014/12/18/a-native-ios-app-with-a-qt-third-party-library/" rel="nofollow noreferrer">https://alediaferia.com/2014/12/18/a-native-ios-app-with-a-qt-third-party-library/</a> but got stuck. After a bit of digging I got to the step where linking occurs this is the result: </p>
  
  <pre><code>Undefined symbols for architecture arm64:
    "_pcre2_match_16", referenced from:
        safe_pcre2_match_16(pcre2_real_code_16 const*, unsigned short const*, int, int, int, pcre2_real_match_data_16*, pcre2_real_match_context_16*) in libQt5Core.a(qregularexpression.o)
    "_pcre2_match_context_create_16", referenced from:
        QRegularExpressionPrivate::doMatch(QString const&amp;, int, int, int, QRegularExpression::MatchType, QFlags&lt;QRegularExpression::MatchOption&gt;, QRegularExpressionPrivate::CheckSubjectStringOption, QRegularExpressionMatchPrivate const*) const in libQt5Core.a(qregularexpression.o)
    "_pcre2_jit_stack_assign_16", referenced from:
        QRegularExpressionPrivate::doMatch(QString const&amp;, int, int, int, QRegularExpression::MatchType, QFlags&lt;QRegularExpression::MatchOption&gt;, QRegularExpressionPrivate::CheckSubjectStringOption, QRegularExpressionMatchPrivate const*) const in libQt5Core.a(qregularexpression.o)
    "_pcre2_jit_stack_free_16", referenced from:
        QThreadStorage&lt;QPcreJitStackPointer*&gt;::deleteData(void*) in libQt5Core.a(qregularexpression.o)
    "_pcre2_get_ovector_pointer_16", referenced from:
        QRegularExpressionPrivate::doMatch(QString const&amp;, int, int, int, QRegularExpression::MatchType, QFlags&lt;QRegularExpression::MatchOption&gt;, QRegularExpressionPrivate::CheckSubjectStringOption, QRegularExpressionMatchPrivate const*) const in libQt5Core.a(qregularexpression.o)
    "_pcre2_match_data_free_16", referenced from:
        QRegularExpressionPrivate::doMatch(QString const&amp;, int, int, int, QRegularExpression::MatchType, QFlags&lt;QRegularExpression::MatchOption&gt;, QRegularExpressionPrivate::CheckSubjectStringOption, QRegularExpressionMatchPrivate const*) const in libQt5Core.a(qregularexpression.o)
    "_pcre2_config_16", referenced from:
        QRegularExpressionPrivate::getPatternInfo() in libQt5Core.a(qregularexpression.o)
    "_pcre2_pattern_info_16", referenced from:
        QRegularExpressionPrivate::getPatternInfo() in libQt5Core.a(qregularexpression.o)
        QRegularExpressionPrivate::doMatch(QString const&amp;, int, int, int, QRegularExpression::MatchType, QFlags&lt;QRegularExpression::MatchOption&gt;, QRegularExpressionPrivate::CheckSubjectStringOption, QRegularExpressionMatchPrivate const*) const in libQt5Core.a(qregularexpression.o)
    "_pcre2_jit_compile_16", referenced from:
        QRegularExpressionPrivate::optimizePattern() in libQt5Core.a(qregularexpression.o)
    "_pcre2_match_context_free_16", referenced from:
        QRegularExpressionPrivate::doMatch(QString const&amp;, int, int, int, QRegularExpression::MatchType, QFlags&lt;QRegularExpression::MatchOption&gt;, QRegularExpressionPrivate::CheckSubjectStringOption, QRegularExpressionMatchPrivate const*) const in libQt5Core.a(qregularexpression.o)
    "_pcre2_compile_16", referenced from:
        QRegularExpressionPrivate::compilePattern() in libQt5Core.a(qregularexpression.o)
    "_pcre2_code_free_16", referenced from:
        QRegularExpressionPrivate::~QRegularExpressionPrivate() in libQt5Core.a(qregularexpression.o)
        QRegularExpressionPrivate::compilePattern() in libQt5Core.a(qregularexpression.o)
    "_pcre2_jit_stack_create_16", referenced from:
        safe_pcre2_match_16(pcre2_real_code_16 const*, unsigned short const*, int, int, int, pcre2_real_match_data_16*, pcre2_real_match_context_16*) in libQt5Core.a(qregularexpression.o)
    "_pcre2_match_data_create_from_pattern_16", referenced from:
        QRegularExpressionPrivate::doMatch(QString const&amp;, int, int, int, QRegularExpression::MatchType, QFlags&lt;QRegularExpression::MatchOption&gt;, QRegularExpressionPrivate::CheckSubjectStringOption, QRegularExpressionMatchPrivate const*) const in libQt5Core.a(qregularexpression.o)
    "_uncompress", referenced from:
        qUncompress(unsigned char const*, int) in libQt5Core.a(qbytearray.o)
  ld: symbol(s) not found for architecture arm64
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/irutl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/irutl.png" alt="The current linker flags"></a></p>
  
  <p>How the project looks: </p>
  
  <p><a href="https://i.stack.imgur.com/VCuDj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VCuDj.png" alt="The project structure."></a></p>
  
  <p>Does anyone know what is going on? </p>