Select to view content in your preferred language

Build Error After Updating SDK

767
14
05-14-2025 11:17 AM
RTC
by
Occasional Contributor

After trying to update the SDK via SPM, I am getting a build error with cmark-gfm. This package seemed to be added as part of the ArcGIS Maps SDK for Swift Toolkit update along with the Swift Markdown package.

I have tried removing and reinstalling app packages and a few other thing but noting seems to work. If I revert back to SDK version 200.5, I do not have any issue, only from 200.6 and up.

RTC_0-1747246353862.png

 

0 Kudos
14 Replies
Ting
by Esri Contributor
Esri Contributor

The 200.7.1 release tag should resolve correctly now. Let me know if you still experience the problem. 🙂

0 Kudos
RTC
by
Occasional Contributor

Thanks Ting, I am able to get 200.7.1 to update now but I am still having the same errors as posted above. I have tried clearing/resetting the SPM cache and all the other suggestions but can't get it to compile for my existing project. 

0 Kudos
Ting
by Esri Contributor
Esri Contributor

Gotcha. From the screenshot you provided, we are guessing along the line of -fsanitize compiler flag, or Undefined Behavior Sanitizer in the Xcode scheme manager.

Can you see if it is checked under the "Runtime Sanitization" section (Scheme > Run > Diagnostics)? If so, we'll need to come up with a test project to mimic your environment. Thanks!

Edit: upon further discussion, it seems to be a problem with a legacy setting (enableUBSanitizer = "YES") in the xcscheme file. After removing it following these instructions, the problem was solved.

0 Kudos
RTC
by
Occasional Contributor

Ok, I will look into that and get back to you. Thanks!

0 Kudos
RTC
by
Occasional Contributor

This is all that I have set:

RTC_0-1748390342656.png