Skip to main content
Participant
February 6, 2026
Question

Problems with K2Vector while migrating from InDesign SDK2025 to InDesign SDK2026

  • February 6, 2026
  • 1 reply
  • 19 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

 

    1 reply

    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