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

Move Resources Permissions

tags: Move,Starcoin Web3 StarTrek Bedrock – Object-capability model In my words, Move is kind of a Resource-Oriented Programming language. The resource is represented by struct in Move, aka object in other programming language. By the way, the resource in Move is the struct which cannot be copied and cannot be dropped1. Distinct from other programming language, objects are stored in memory, resource in Move can store to the chain’s global storage. ...

July 5, 2022 · 2 min · Gray King

Brevity 500: 500 mini-games to help you learn powerful writing skills

tags: How to Write,Online Tools source: https://brevity500.com/

June 30, 2022 · 1 min · Gray King