Flutter

tags: GUI

July 25, 2022 · 1 min · Gray King

iOS

July 25, 2022 · 0 min · Gray King

Flutter FFI didn't be Invoked in Release Mode

tags: Rust,Flutter,iOS source: “Using Dummy Headers - Flutter_rust_bridge.” Accessed July 25, 2022. http://cjycode.com/flutter_rust_bridge/integrate/ios_headers.html. Recently, I met a problem that the iOS app didn’t work properly in release mode. After a little searching, I found it’s a Flutter app and invoked a Rust function by FFI. The inital call were not invoked during app startup, and it should be. I finally resolved the problem by following: https://github.com/fzyzcjy/flutter_rust_bridge/issues/496 http://cjycode.com/flutter_rust_bridge/integrate/ios_headers.html In short: Xcode will strip the unused symbols in release mode, and won’t realize the FFI invocation; So we need add some dummy invocations to the AppDelegate.swift to make sure it have been used. Next, add this line to ios/Runner/Runner-Bridging-Header.h: ...

July 25, 2022 · 1 min · Gray King

openssl

tags: Tools

July 15, 2022 · 1 min · Gray King

openssl unknown ca

tags: openssl This problem is caused about the ca certs are different between client and server.

July 15, 2022 · 1 min · Gray King