Some err on: write an pass out of source with m1

hi brothers:
machine is Mac mini(m1,2020) (macOS Big Sur)

  1. when i write an pass in llvm soure,and build it ,is ok.
  2. when i follow doc,write a new pass out of soure.after building it, err happend:

and,my outpass/cmakelists.txt as:

cmake_minimum_required(VERSION 3.20)
project(OUTPASSDEMO)
set(LLVM_LINK_COMPONENTS
    intrinsics_gen
    PLUGIN_TOOL
    opt)

set(LLVM_DIR /Users/wt/git/llvm-project/build_xcode/lib/cmake/llvm/)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -arch arm64") # set C++ 11
include_directories(/Users/wt/git/llvm-project/build/include /Users/wt/git/llvm-project/llvm/include)
find_package(LLVM REQUIRED CONFIG)

# if (CMAKE_HOST_APPLE)
#     message("macos")
#     link_directories("${PROJECT_SOURCE_DIR}/platforms/macos") 
# endif()

separate_arguments(LLVM_DEFINITIONS_LIST NATIVE_COMMAND ${LLVM_DEFINITIONS})
add_definitions(${LLVM_DEFINITIONS_LIST})
include_directories(${LLVM_INCLUDE_DIRS})

add_subdirectory(EncodeFunctionName)

and outpass/EncodeFunctionName/Cmakelists.txt is:

if( NOT LLVM_REQUIRES_RTTI )
  if( NOT LLVM_REQUIRES_EH )
    set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/Hello.exports)
  endif()
endif()

if(WIN32 OR CYGWIN)
  set(LLVM_LINK_COMPONENTS Core Support)
endif()

add_library(LLVMPassname MODULE
  EncodeFunctionName.cpp
)

also,i do some test with xcode.
first , built llvm with -G Xcode
second, use ios-cmake , generate a xcode pro.
third, compare the two settings…find no difference.

so,plz help me!! give me a reason,and how to do ?