skip to Main Content

"Undefined symbols" of shrink_to_fit() when compiling Cronet on iOS 15 with Xcode 13

Error message: Undefined symbols for architecture arm64: "std::__1::basic_string<unsigned short, base::string16_internals::string16_char_traits, std::__1::allocator<unsigned short> >::shrink_to_fit()", referenced from: base::UTF8ToUTF16(char const*, unsigned long, std::__1::basic_string<unsigned short, base::string16_internals::string16_char_traits, std::__1::allocator<unsigned short> >*) in libbase.a(utf_string_conversions.o) base::WideToUTF16(wchar_t const*, unsigned long, std::__1::basic_string<unsigned short, base::string16_internals::string16_char_traits, std::__1::allocator<unsigned short> >*) in libbase.a(utf_string_conversions.o) ld:…

VIEW QUESTION

Xcode – IOS: can't open Apple's Mail app with URL

I am trying to open Apple's Mail app from my application and I am running this code: let mailURL = URL(string: "message://")! if UIApplication.shared.canOpenURL(mailURL) { UIApplication.shared.open(mailURL, options: [:], completionHandler: nil) } However, UIApplication.shared.canOpenURL(mailURL) line returns false. This code actually working…

VIEW QUESTION
Back To Top
Search