Skip to main content
Participant
February 6, 2026
Question

Problems with K2Vector while migrating from InDesign SDK2025 to InDesign SDK2026

  • February 6, 2026
  • 2 replies
  • 84 views

I have an InDesign 2025 sdk project that I’m migrating to InDeisgn 2026 sdk   but I´m having problems with the K2Vector changes. 

I don´t know where to start, I already add the header and lib routes but Idon´t know if I´m missing something or all the error are related to code changes that I need to made. 

 

this is the error that the compiler throw:

Undefined symbols for architecture arm64:

  "K2Internals::K2VectorBase<InterfacePtr<IPMUnknown>, K2Allocator<InterfacePtr<IPMUnknown>>>::DoCleanup()", referenced from:

      std::__1::unique_ptr<K2Vector<InterfacePtr<IPMUnknown>, K2Allocator<InterfacePtr<IPMUnknown>>>, std::__1::default_delete<K2Vector<InterfacePtr<IPMUnknown>, K2Allocator<InterfacePtr<IPMUnknown>>>>>::~unique_ptr[abi:ne200100]() in TextWarpSuiteASB.o

      std::__1::__shared_ptr_pointer<K2Vector<InterfacePtr<IPMUnknown>, K2Allocator<InterfacePtr<IPMUnknown>>>*, std::__1::shared_ptr<K2Vector<InterfacePtr<IPMUnknown>, K2Allocator<InterfacePtr<IPMUnknown>>>>::__shared_ptr_default_delete<K2Vector<InterfacePtr<IPMUnknown>, K2Allocator<InterfacePtr<IPMUnknown>>>, K2Vector<InterfacePtr<IPMUnknown>, K2Allocator<InterfacePtr<IPMUnknown>>>>, std::__1::allocator<K2Vector<InterfacePtr<IPMUnknown>, K2Allocator<InterfacePtr<IPMUnknown>>>>>::__on_zero_shared() in TextWarpSuiteASB.o

  "K2Internals::K2VectorBase<PMPoint, K2Allocator<PMPoint>>::DoCleanup()", referenced from:

      SDKLayoutHelper::PlaceFileInFrame(IDFile const&, UIDRef const&, PMRect const&, K2::UIFlags, short, short, short, IDType<UID_tag> const&) in SDKLayoutHelper.o

      SDKLayoutHelper::PlaceFileInFrame(IDFile const&, UIDRef const&, PMRect const&, K2::UIFlags, short, short, short, IDType<UID_tag> const&) in SDKLayoutHelper.o

  "CPanelCreator::GetServiceIDs(K2Vector<IDType<ServiceID_tag>, K2Allocator<IDType<ServiceID_tag>>>&)", referenced from:

      vtable for WarpPrefsPanelCreator in WarpPrefsPanelCreator.o

  "CServiceProvider::GetServiceIDs(K2Vector<IDType<ServiceID_tag>, K2Allocator<IDType<ServiceID_tag>>>&)", referenced from:

      vtable for PageDrawEventSP in PageDrawEventSP.o

      vtable for TextOrderDrawEventSP in TextOrderDrawEventSP.o

      vtable for PaletteMgrSP in PaletteMgrSP.o

  "TextAttributeRunIterator::TextAttributeRunIterator(InDesign::TextRange const*, InDesign::TextRange const*, IDType<ClassID_tag> const*, IDType<ClassID_tag> const*)", referenced from:

      getMarcasNotasFrame(UIDRef) in TextOrderUIUtils.o

      hasNotaAttr(ITextModel*) in TextUtils.o

      getNotaInfoAttr(ITextModel*, K2Vector<INotaAttrData::NotaAttrInfo, K2Allocator<INotaAttrData::NotaAttrInfo>>&) in TextUtils.o

      getSegmentoEditorial(UIDList, SegmentoEditorialTipo) in TextUtils.o

      txtsGetFolioNota(UIDRef) in ItemUtils.o

      isColumnaEditorial(ITextModel*) in PluginUtils.o

      getNotaInfoAttrList(IDocument*, UIDList&, K2Vector<INotaAttrData::NotaAttrInfo, K2Allocator<INotaAttrData::NotaAttrInfo>>&, int&) in PluginUtils.o

      ...

  "CTool::BuildHintString(PMString&, PMString&, PMString&, PMString&, PMString&, K2Vector<PMString, K2Allocator<PMString>>&, PMString&)", referenced from:

      vtable for TextOrderTool in TextOrderTool.o

      vtable for InsertarImagenTool in InsertarImagenTool.o

ld: symbol(s) not found for architecture arm64

clang++: error: linker command failed with exit code 1 (use -v to see invocation)​


I´m using Xcode 26.2  on a Mac mini M1 with Tahoe

 

    2 replies

    Inspiring
    April 1, 2026

    Hello

    I have the same issue. How did you solve it?. Downgrade to XCode 16.2?

    Community Expert
    April 1, 2026

    Hi ​@Pontus Hulin did you check if you are using the recommended version of XCode? If not do that. Non recommeded versions pose many such issues and they are very hard to fix if at all.

    -Manan
    Inspiring
    April 1, 2026

    Hello Manan. Thanks for replying. Im using 26.2. The strange thing is that the sample code for DocWatch.sdk compiles without problems but not my project. It uses the same functions. Its the DocServiceProvider that generates the errors

    Regards

    / Pontus

    Community Expert
    February 7, 2026

    The XCode version seems to be the problem. As per the SDK the recommended version is XCode 16.2. Try it with this version and if all other things are setup fine it will compile

    -Manan
    Inspiring
    April 2, 2026

    I downloaded Xcode version 16.2 but I cant run it on my machine because it is not compatible with MacOS Tahoe.

    Community Expert
    April 2, 2026

    Ahh, another problem. This is the reason I upgrade my MAC based on what Xcode is needed for InDesign SDK. I am not sure what to advice that will help you quickly test. Maybe a VM env if possible, i use UTM check it

    -Manan