<div dir="ltr"><div dir="ltr">I recently built the taglib 2 branch as an XCFramework for x86_64 and arm64 on macOS and iOS. I didn't use cmake and instead created an Xcode project manually. It might be helpful: <a href="https://github.com/sbooth/AudioXCFrameworks/tree/main/taglib">https://github.com/sbooth/AudioXCFrameworks/tree/main/taglib</a></div><div dir="ltr"><br></div><div>Stephen</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 5, 2020 at 9:29 AM Uwe L. Korn <<a href="mailto:uwelk@xhochy.com">uwelk@xhochy.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><u></u><div><div>Hello Jason,<br></div><div><br></div><div>you should use clang as it is shipped with the macOS SDK. Note that you will need at least the SDK version 11 for macOS-arm64, 10.15 will not work.<br></div><div><br></div><div>Cheers<br></div><div>Uwe</div><div><br></div><div>On Thu, Nov 5, 2020, at 3:57 PM, Jason Fleischer wrote:<br></div><blockquote type="cite" id="gmail-m_2559778884741699741qt"><div dir="ltr"><div>TagLib developer,<br></div><div><br></div><div>Trying to build a Tablib framework that has Arm64 architecture with the following command:<br></div><div><br></div><div><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue"">sudo cmake -DCMAKE_BUILD_TYPE=Release \<br></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue""><span>    </span>-DBUILD_FRAMEWORK=ON \<br></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue""><span>    </span>-DCMAKE_C_COMPILER=/usr/bin/gcc \<br></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue""><span>    </span>-DCMAKE_CXX_COMPILER=/usr/bin/c++ \<br></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue""><span>    </span>-DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/ \<br></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue""><span>    </span>-DCMAKE_OSX_DEPLOYMENT_TARGET=10.13 \<br></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue""><span>    </span>-DCMAKE_OSX_ARCHITECTURES="arm64"<br></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue""><br></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue"">However the compiler gcc does not support arm64 architectures. Attached are the logs.<br></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue""><br></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue"">What compiler should I use? Is this possible?<br></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue""><br></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue"">I need arm64 for macOS universal builds with their new silicon chips.<br></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue""><br></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue"">Any help would be greatly appreciated,<br></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue""><br></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue"">Jason<br></p></div></div><div><br></div><div><b>Attachments:</b><br></div><ul><li>CMakeOutput.log<br></li><li>CMakeError.log<br></li></ul></blockquote><div><br></div></div></blockquote></div>