creator 3.6 生成 libcocos_engine.a,添加到单独pod,编译报错。

想将native引擎相关代码打成一个库,方便集成到原有业务工程中,构建了一个 libcocos_engine.a放入pod库中,编译发现报错了。麻烦大佬们看下。

  • Creator 版本: 3.6

  • 目标平台:iOS

Showing All Messages

Undefined symbol: std::__1::recursive_mutex::~recursive_mutex()

Undefined symbol: _gzopen

Undefined symbol: _gzclose

Undefined symbol: std::__1::basic_ostream<char, std::__1::char_traits >::operator<<(unsigned int)

Undefined symbol: _uv_loop_init

Undefined symbol: _uv_ip4_addr

Undefined symbol: _uv_tcp_bind

Undefined symbol: _uv_loop_close

Undefined symbol: v8::BigInt::New(v8::Isolate*, long long)

Undefined symbol: v8::Value::IsNumber() const

Undefined symbol: v8::Value::IsBigInt() const

Undefined symbol: _uv_tcp_init

Undefined symbol: v8::Value::ToBoolean(v8::Isolate*) const

Undefined symbol: v8::Boolean::Value() const

Undefined symbol: v8::Template::SetNativeDataProperty(v8::Localv8::Name, void ()(v8::Localv8::Name, v8::PropertyCallbackInfov8::Value const&), void ()(v8::Localv8::Name, v8::Localv8::Value, v8::PropertyCallbackInfo const&), v8::Localv8::Value, v8::PropertyAttribute, v8::Localv8::AccessorSignature, v8::AccessControl, v8::SideEffectType, v8::SideEffectType)

Undefined symbol: v8::FunctionTemplate::InstanceTemplate()

Undefined symbol: v8::ObjectTemplate::SetInternalFieldCount(int)

Undefined symbol: v8::Object::SetAlignedPointerInInternalField(int, void*)

Undefined symbol: v8::V8::MakeWeak(unsigned long*, void*, void (*)(v8::WeakCallbackInfo const&), v8::WeakCallbackType)

Undefined symbol: v8::V8::MakeWeak(unsigned long**)

Undefined symbol: _crc32

Undefined symbol: inflateInit2

Undefined symbol: _inflateEnd

Undefined symbol: _SCNetworkReachabilitySetCallback

Undefined symbol: _SCNetworkReachabilityUnscheduleFromRunLoop

Undefined symbol: _SCNetworkReachabilityCreateWithName

Undefined symbol: v8::BackingStore::~BackingStore()

Undefined symbol: v8::Object::InternalFieldCount() const

Undefined symbol: v8::Object::SlowGetAlignedPointerFromInternalField(int)

Undefined symbol: v8::FunctionTemplate::New(v8::Isolate*, void ()(v8::FunctionCallbackInfov8::Value const&), v8::Localv8::Value, v8::Localv8::Signature, int, v8::ConstructorBehavior, v8::SideEffectType, v8::CFunction const)

Undefined symbol: ___cxa_demangle

Undefined symbol: v8::Value::IsFloat32Array() const

Undefined symbol: v8::Value::IsUint32Array() const

Undefined symbol: v8::Value::IsUint16Array() const

Undefined symbol: v8::Value::IsInt32Array() const

Undefined symbol: v8::Value::IsUint8ClampedArray() const

Undefined symbol: v8::Value::IsFloat64Array() const

Undefined symbol: v8::Value::IsTypedArray() const

Undefined symbol: v8::Object::IsCallable() const

Undefined symbol: v8::Object::SetAccessor(v8::Localv8::Context, v8::Localv8::Name, void ()(v8::Localv8::Name, v8::PropertyCallbackInfov8::Value const&), void ()(v8::Localv8::Name, v8::Localv8::Value, v8::PropertyCallbackInfo const&), v8::MaybeLocalv8::Value, v8::AccessControl, v8::PropertyAttribute, v8::SideEffectType, v8::SideEffectType)

Undefined symbol: v8::External::New(v8::Isolate*, void*)

Undefined symbol: v8::Object::Delete(v8::Localv8::Context, v8::Localv8::Value)

Undefined symbol: v8::Object::Has(v8::Localv8::Context, v8::Localv8::Value)

Undefined symbol: v8::V8::FromJustIsNothing()

Undefined symbol: v8::JSON::Parse(v8::Localv8::Context, v8::Localv8::String)

Undefined symbol: v8::ArrayBufferView::ByteOffset()

Undefined symbol: v8::Int16Array::New(v8::Localv8::ArrayBuffer, unsigned long, unsigned long)

Undefined symbol: v8::Int32Array::New(v8::Localv8::ArrayBuffer, unsigned long, unsigned long)

Undefined symbol: v8::ObjectTemplate::SetAccessor(v8::Localv8::Name, void ()(v8::Localv8::Name, v8::PropertyCallbackInfov8::Value const&), void ()(v8::Localv8::Name, v8::Localv8::Value, v8::PropertyCallbackInfo const&), v8::Localv8::Value, v8::AccessControl, v8::PropertyAttribute, v8::Localv8::AccessorSignature, v8::SideEffectType, v8::SideEffectType)

Undefined symbol: v8::ArrayBuffer::GetBackingStore()

Undefined symbol: v8::BackingStore::ByteLength() const

Undefined symbol: std::__1::basic_ostream<char, std::__1::char_traits >::operator<<(long long)

Undefined symbol: std::__1::stod(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, unsigned long*)

Undefined symbol: std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::assign(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, unsigned long, unsigned long)

Undefined symbol: typeinfo for std::__1::basic_streambuf<char, std::__1::char_traits >

Undefined symbol: std::__1::basic_streambuf<char, std::__1::char_traits >::imbue(std::__1::locale const&)

Undefined symbol: std::__1::basic_streambuf<char, std::__1::char_traits >::sync()

Undefined symbol: std::__1::recursive_mutex::unlock()

Undefined symbol: std::__1::basic_streambuf<char, std::__1::char_traits >::xsgetn(char*, long)

Undefined symbol: std::__1::basic_ostream<char, std::__1::char_traits >::~basic_ostream()

Undefined symbol: _SCNetworkReachabilityGetFlags

Undefined symbol: typeinfo for std::__1::basic_ostream<char, std::__1::char_traits >

Undefined symbol: virtual thunk to std::__1::basic_ostream<char, std::__1::char_traits >::~basic_ostream()

Undefined symbol: virtual thunk to std::__1::basic_ostream<char, std::__1::char_traits >::~basic_ostream()

Undefined symbol: std::__1::basic_istream<char, std::__1::char_traits >::~basic_istream()

Undefined symbol: virtual thunk to std::__1::basic_istream<char, std::__1::char_traits >::~basic_istream()

Undefined symbol: std::__1::basic_iostream<char, std::__1::char_traits >::~basic_iostream()

Undefined symbol: std::__1::ios_base::__set_badbit_and_consider_rethrow()

Undefined symbol: std::__1::basic_ostream<char, std::__1::char_traits >::sentry::~sentry()

Undefined symbol: std::__1::basic_streambuf<char, std::__1::char_traits >::basic_streambuf()

Undefined symbol: std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::insert(unsigned long, char const*)

Undefined symbol: std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::find(char, unsigned long) const

Undefined symbol: v8::platform::NewDefaultPlatform(int, v8::platform::IdleTaskSupport, v8::platform::InProcessStackDumping, std::__1::unique_ptr<v8::TracingController, std::__1::default_deletev8::TracingController >)

Undefined symbol: v8::Value::ToBigInt(v8::Localv8::Context) const

Undefined symbol: v8::Value::IsInt16Array() const

Undefined symbol: v8::V8::InitializePlatform(v8::Platform*)

Undefined symbol: v8::V8::SetFlagsFromString(char const*, unsigned long)

Undefined symbol: std::__1::basic_streambuf<char, std::__1::char_traits >::setbuf(char*, long)

Undefined symbol: v8::V8::Initialize(int)

Undefined symbol: std::__1::basic_streambuf<char, std::__1::char_traits >::~basic_streambuf()

Undefined symbol: std::__1::basic_iostream<char, std::__1::char_traits >::~basic_iostream()

Undefined symbol: v8::Value::IsFunction() const

Undefined symbol: _gzread

Undefined symbol: std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::replace(unsigned long, unsigned long, char const*, unsigned long)

Undefined symbol: v8::Object::CallAsFunction(v8::Localv8::Context, v8::Localv8::Value, int, v8::Localv8::Value*)

Undefined symbol: std::__1::basic_ostream<char, std::__1::char_traits >::operator<<(float)

Undefined symbol: v8::TryCatch::ReThrow()

Undefined symbol: v8::Isolate::ThrowException(v8::Localv8::Value)

Undefined symbol: v8::BackingStore::Data() const

Undefined symbol: v8::String::Length() const

Undefined symbol: v8::Object::DefineOwnProperty(v8::Localv8::Context, v8::Localv8::Name, v8::Localv8::Value, v8::PropertyAttribute)

Undefined symbol: v8::Object::New(v8::Isolate*)

Undefined symbol: v8::ScriptCompiler::CompileUnboundScript(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions, v8::ScriptCompiler::NoCacheReason)

Undefined symbol: v8::String::NewFromUtf8(v8::Isolate*, char const*, v8::NewStringType, int)

Undefined symbol: v8::ArrayBuffer::NewBackingStore(void*, unsigned long, void ()(void, unsigned long, void*), void*)

Undefined symbol: v8::TryCatch::Message() const

Undefined symbol: v8::JSON::Stringify(v8::Localv8::Context, v8::Localv8::Value, v8::Localv8::String)

Undefined symbol: v8::V8::GetVersion()

Undefined symbol: v8::ArrayBuffer::Allocator::NewDefaultAllocator()

Undefined symbol: std::__1::__vector_base_common::__throw_length_error() const

有大佬帮忙看下嘛