#include
#include
#include
extern "C" void __ZNSt3__122__libcpp_verbose_abortEPKcz(const char* msg, ...) {
va_list args;
va_start(args, msg);
vfprintf(stderr, msg, args);
va_end(args);
abort();
}
attribute((constructor))
static void patch_abort() {
}
I implemented the above code and configured linkopts = [
Allow delayed symbol binding
Cancel the strong reference of the symbol
],
These two key points, then the problem is solved
I mainly made the following two key changes, and then this problem was solved。
extern "C" void __ZNSt3__122__libcpp_verbose_abortEPKcz(const char* msg, ...) {
va_list args;
va_start(args, msg);
vfprintf(stderr, msg, args);
va_end(args);
abort();
}
ios_framework(
name = "TelegramUIFramework",
linkopts = [
"-undefined",
"dynamic_lookup",
"-U",
"__ZNSt3__122__libcpp_verbose_abortEPKcz",
],
)
I mainly made the following two key changes, and then this problem was solved。
extern "C" void __ZNSt3__122__libcpp_verbose_abortEPKcz(const char* msg, ...) {
va_list args;
va_start(args, msg);
vfprintf(stderr, msg, args);
va_end(args);
abort();
}
ios_framework(
name = "TelegramUIFramework",
linkopts = [
"-undefined",
"dynamic_lookup",
"-U",
"__ZNSt3__122__libcpp_verbose_abortEPKcz",
],
)
#include
#include
#include
extern "C" void __ZNSt3__122__libcpp_verbose_abortEPKcz(const char* msg, ...) {
va_list args;
va_start(args, msg);
vfprintf(stderr, msg, args);
va_end(args);
abort();
}
attribute((constructor))
static void patch_abort() {
}
I implemented the above code and configured linkopts = [
Allow delayed symbol binding
Cancel the strong reference of the symbol
],
These two key points, then the problem is solved
I mainly made the following two key changes, and then this problem was solved。
extern "C" void __ZNSt3__122__libcpp_verbose_abortEPKcz(const char* msg, ...) {
va_list args;
va_start(args, msg);
vfprintf(stderr, msg, args);
va_end(args);
abort();
}
ios_framework(
name = "TelegramUIFramework",
linkopts = [
"-undefined",
"dynamic_lookup",
"-U",
"__ZNSt3__122__libcpp_verbose_abortEPKcz",
],
)
I mainly made the following two key changes, and then this problem was solved。
extern "C" void __ZNSt3__122__libcpp_verbose_abortEPKcz(const char* msg, ...) {
va_list args;
va_start(args, msg);
vfprintf(stderr, msg, args);
va_end(args);
abort();
}
ios_framework(
name = "TelegramUIFramework",
linkopts = [
"-undefined",
"dynamic_lookup",
"-U",
"__ZNSt3__122__libcpp_verbose_abortEPKcz",
],
)