Xcode 16.2 doesn't support custom SF Symbols 6 when compiling
What were you trying to do?
I was trying to compile Cork using Xcode Version 16.2 (16C5032a) on my Macbook running Sonoma 14.7.3 (23H417).
What was the problem?
I get the error The SVG file provided for the symbol image set ’(SVG file name)‘ is not suitable: Template format 6.0 is newer than the version that this software supports (5.0) for the custom SF Symbols in Assets using Template 6.0 ( "custom.trash.triangle.fill", "custom.macwindow.badge.xmark", "custom.spigot.badge.xmark", and "custom.terminal.badge.xmark") when attempting to build Cork. Attempting to preview the symbols in Xcode also seems to crash and force Xcode to quit.
I am assuming this is something to do with the symbols not being compatible with my Xcode version, but the problem is that it should work since I am using Xcode 16.2, the latest stable version currently. The SVGs themselves even mention "Requires Xcode 16 or greater", which means they should work. Unfortunately, I could not find anything about this online (except an Apple Developer Forums post from 2023 with no answers), so I'm at a loss. The only possible cause that I can think of is because I'm running Sonoma instead of Sequoia (I'm using an ancient Intel Macbook which doesn't support Sequoia), but the official SF Symbols website says that it requires Ventura or later.
Error logs
(Since the issue is with Xcode compiling rather than the Cork app, I'm sharing the error logs from Xcode. My account name has been replace with (name) for privacy.)
CompileAssetCatalog /Users/(name)/Library/Developer/Xcode/DerivedData/Cork-dbcizsqhvdnuuqbnegvmgsinlavg/Build/Products/Debug/Cork.app/Contents/Resources /Users/(name)/Cork/Cork/Assets.xcassets /Users/(name)/Cork/Cork/Preview\ Content/Preview\ Assets.xcassets (in target 'Self-Compiled' from project 'Cork')
cd /Users/(name)/Cork
/Applications/Xcode-16.2.0.app/Contents/Developer/usr/bin/actool --output-format human-readable-text --notices --warnings --export-dependency-info /Users/(name)/Library/Developer/Xcode/DerivedData/Cork-dbcizsqhvdnuuqbnegvmgsinlavg/Build/Intermediates.noindex/Cork.build/Debug/Self-Compiled.build/assetcatalog_dependencies --output-partial-info-plist /Users/(name)/Library/Developer/Xcode/DerivedData/Cork-dbcizsqhvdnuuqbnegvmgsinlavg/Build/Intermediates.noindex/Cork.build/Debug/Self-Compiled.build/assetcatalog_generated_info.plist --app-icon AppIcon --accent-color AccentColor --enable-on-demand-resources NO --development-region en --target-device mac --minimum-deployment-target 13.0 --platform macosx --compile /Users/(name)/Library/Developer/Xcode/DerivedData/Cork-dbcizsqhvdnuuqbnegvmgsinlavg/Build/Products/Debug/Cork.app/Contents/Resources /Users/(name)/Cork/Cork/Assets.xcassets /Users/(name)/Cork/Cork/Preview\ Content/Preview\ Assets.xcassets
2025-02-23 18:53:33.073 ibtoold[8228:157676] NSFileCoordinator is doing nothing.
2025-02-23 18:53:33.107 ibtoold[8228:157676] Template format 6.0 is newer than the version that this software supports (5.0)
2025-02-23 18:53:33.112 ibtoold[8228:157676] Template format 6.0 is newer than the version that this software supports (5.0)
2025-02-23 18:53:33.137 ibtoold[8228:157676] Template format 6.0 is newer than the version that this software supports (5.0)
2025-02-23 18:53:33.141 ibtoold[8228:157676] Template format 6.0 is newer than the version that this software supports (5.0)
2025-02-23 18:53:33.280 ibtoold[8228:157676] Template format 6.0 is newer than the version that this software supports (5.0)
/* com.apple.actool.errors */
error: Template format 6.0 is newer than the version that this software supports (5.0)
/* com.apple.actool.document.errors */
/Users/(name)/Cork/Cork/Assets.xcassets:./custom.spigot.badge.xmark.symbolset/[universal][][][]: error: The SVG file provided for the symbol image set ’custom.spigot.badge.xmark‘ is not suitable: Template format 6.0 is newer than the version that this software supports (5.0)
/Users/(name)/Cork/Cork/Assets.xcassets:./custom.terminal.badge.xmark.symbolset/[universal][][][]: error: The SVG file provided for the symbol image set ’custom.terminal.badge.xmark‘ is not suitable: Template format 6.0 is newer than the version that this software supports (5.0)
/Users/(name)/Cork/Cork/Assets.xcassets:./custom.trash.triangle.fill.symbolset/[universal][][][]: error: The SVG file provided for the symbol image set ’custom.trash.triangle.fill‘ is not suitable: Template format 6.0 is newer than the version that this software supports (5.0)
/Users/(name)/Cork/Cork/Assets.xcassets:./custom.macwindow.badge.xmark.symbolset/[universal][][][]: error: The SVG file provided for the symbol image set ’custom.macwindow.badge.xmark‘ is not suitable: Template format 6.0 is newer than the version that this software supports (5.0)
/* com.apple.actool.compilation-results */
/Users/(name)/Library/Developer/Xcode/DerivedData/Cork-dbcizsqhvdnuuqbnegvmgsinlavg/Build/Intermediates.noindex/Cork.build/Debug/Self-Compiled.build/assetcatalog_generated_info.plist
/Users/(name)/Library/Developer/Xcode/DerivedData/Cork-dbcizsqhvdnuuqbnegvmgsinlavg/Build/Products/Debug/Cork.app/Contents/Resources/AppIcon.icns
App Version
NA
App Acquisition
Self-Compiled
Final checklist
- [ ] This report is about the interface, and I included screenshots of the problem
I'm sorry to hear that :/ Unfortunately, this is not a Cork problem, so I can't help you with it. This is more to do with Apple. Their refusal to do backwards compatibility is the problem, and I can't bump the required SF Symbols down
Oh, that's unfortunate. Still not sure why Xcode 16.2 won't support the symbols when it should, but I'll try asking in the Developer Forums.
Me too. Xcode 16.2 + macOS 14.6
Oh, that's unfortunate. Still not sure why Xcode 16.2 won't support the symbols when it should, but I'll try asking in the Developer Forums.
- I Download SF Symbols 6
- It can run after replacing the error icon
I am not a iOS developer, but for those facing this issue, this is what is working for me.
- Click on the error on the left panel -> it will bring you to the assets that are causing the problem.
- Right click the assets -> Find reference to this item (or something similar)
- Replace the full string with only the last word (for eg. xxx.yyy.xmark -> xmark)
- Do it for all the symbols then deleted those symbols
- Recompile
working well for me, but just purchase the app to save yourself all these steps.