App built with Xcode 15 beta 8 crashes on macOs 11.7.9

Hello, out team has faced with the problem that our app built with Xcode 15 beta 8 crashes at start on macOs 11.7.9,

I debuged it on macOs 11.7.9 and found out that loader did not setup pointers in import table to the functions:

void* operator new(std::size_t, cont std::nothrow_t&)
void* operator new[](std::size_t, cont std::nothrow_t&)
void* operator delete(std::size_t, cont std::nothrow_t&)
void* operator delete[](std::size_t, cont std::nothrow_t&)

all functions which takes cont std::nothrow_t&

App built with Xcode 14.3.1 works fine.

Architecture of our program is following: Main app executable linked with the Ogre22.framework, Ogre.framework linked with static library FreeImage.a(only this lib uses operator new(std::size_t, cont std::nothrow_t&))

nm command shows me some diff in symbol table of Ogre22.framework

Answered by liaowei in 764004022

a workground from @jiehaowu: Adding -ld64 to the other linker flag in Xcode's build setting solves this problem

Accepted Answer

a workground from @jiehaowu: Adding -ld64 to the other linker flag in Xcode's build setting solves this problem

Related issue: https://developer.apple.com/forums/thread/731089

But it fixed in Xcode 15 beta 2, it is a linker issue.

App built with Xcode 15 beta 8 crashes on macOs 11.7.9
 
 
Q