From ed68553828fdf72fc1a0d562494fa3da50b761c0 Mon Sep 17 00:00:00 2001 From: haowenwu Date: Thu, 19 Nov 2020 18:36:06 +0800 Subject: [PATCH] Skip exception mangle Fix problem: Undefined symbols for architecture arm64: "std::Pod_exception::what() const", referenced from: vtable for std::__1::bad_function_call in libDemo.a(Demo.o) "typeinfo for std::Pod_exception", referenced from: typeinfo for std::__1::bad_function_call in libDemo.a(Demo.o) "std::Pod_exception::~Pod_exception()", referenced from: std::__1::bad_function_call::~bad_function_call() in libDemo.a(Demo.o) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) --- lib/cocoapods-packager/symbols.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cocoapods-packager/symbols.rb b/lib/cocoapods-packager/symbols.rb index 98259e6..b5dcb46 100644 --- a/lib/cocoapods-packager/symbols.rb +++ b/lib/cocoapods-packager/symbols.rb @@ -6,7 +6,7 @@ def symbols_from_library(library) result.select do |e| case e - when 'llvm.cmdline', 'llvm.embedded.module', '__clang_at_available_requires_core_foundation_framework' + when 'llvm.cmdline', 'llvm.embedded.module', '__clang_at_available_requires_core_foundation_framework', 'exception' false else true