Xcode framework from Unity2018, dynamic lib UnitySendMessage failed

Hello,
I built a xcode project with Unity 2018.3.0f2.
I create a new xcode project and import Data, Classes, Libraries (which from unity).
I can success Native app with unity scene wrapped.
I followed this link. How to embed a Unity game into an iOS native Swift App | by IronEqual | Medium
and this link. Integrate Unity 5 in a native iOS app with Xcode 7 - the-nerd

I want to build ios framework from Unity built xcode project, but I failed.
I searched from this keyword, but I have no clue.

Expected function body after function declarator
Unknown type name ‘_LIBCPP_INLINE_VISIBILITY’ at stdlib.h

inline _LIBCPP_INLINE_VISIBILITY long      abs(     long __x) _NOEXCEPT {return  labs(__x);}
...

Unkown type name ‘_LIBCPP_PUSH_MACROS’ at limits c++

_LIBCPP_PUSH_MACROS
#include <__undef_macros>
#include <__cxx_version>
...

Unkown type name ‘_LIBCPP_CONSTEXPR’ at limits c++

static _LIBCPP_CONSTEXPR const  bool is_specialized = false;
...

No template named ‘is_arithmetic’ at limits c++

template <class _Tp, bool = is_arithmetic<_Tp>::value>
class __libcpp_numeric_limits
{
...

I doubt xcode build settings about c++ compiler, but I can’t solve yet.

Apple Clang - Language - C++
C++ Language Dialect : GNU++11 [-std=gnu++11]
C++ Standard Library : libc++ (LLVM C++ standard library with C++11 support)

My Unity version is 2018.3.0f2 and Xcode version is 11.5.

I researched UaaL (Unity as a Library) in Unity 2019 version, but I have to use 2018 version for dependency.

Thank you.

I build Xcode project from Unity2018.3, and I make framework project in xcode 11.5.
I add Unity group and Data, Classes, Libraries folder to this framework project.
I build success, and I import this framework to other new xcode Application project.
When I set in buildsetting, Mach-O type with dynamic library, I call UnitySendMessage method, in unity there is no respond of this UnitySendMessage() (the method in gameobject will call if message is sent).
I linked libiPhone-lib.a to App project, becuase _UnitySendMessage undefied symbol error. And also other frameworks to fix build error. Do you have any idea why UnitySendMessage() is not received in unity?
I can see unity scene (skybox) when “startUnity” button in application project. But UnitySendMessage is not answer.
I followed this example link: How to embed a Unity game into an iOS native Swift App | by IronEqual | Medium

If I build framework with Mach-O type static library, then when I run app project, this error occured.
EXC_BAD_ACCESS at UnityInitApplicationNoGraphics() method in UnityApplicationDelegate.mm

IL2CPP: Anyone else seeing MetadataCache::Initialize crashes sometimes when the game starts? page-2

Thank you.