Closed narumi147 closed 3 years ago
Please try commit https://github.com/ekibun/flutter_qjs/commit/2d7156ffb2bdf614b36c678206808222b35679c8.
Previous version used cmake rather than pod to generate library. The new commit should have better compatibility but I have no real device to test either.
Excellent! The new commit is built and run on iOS12 real device successfully! Another warning about building macos dynamic library is also solved in this commit.
ld: warning: dylib (/Users/narumi/.pub-cache/hosted/pub.flutter-io.cn/flutter_qjs-0.2.3/
macos/build/Debug/libffiquickjs.dylib) was built for newer macOS version (10.15) than being linked (10.11)
The crash report is collected through app store connect from users. iOS 12 simulator works fine.
And
flutter_qjs
version is0.2.3
, iOS deployment target is iOS 10.0 for my app Runner, and iOS 9.0 for Pods.It seems the built ffiquickjs is not compatible with lower version iOS? A possible solution from web search is to set
BUILD_LIBRARY_FOR_DISTRIBUTION
inPodfile
:Not test yet. I will try it later if I find an iOS12 real device.
Should this package modify some build settings to generate a compatible build for all iOS versions (start from iOS9, the default target version of flutter generated project)?
full crash log
``` Incident Identifier: 3C904746-904D-4E74-B111-CB71BA23E91B Hardware Model: iPhone10,1 Process: Runner [2424] Path: /private/var/containers/Bundle/Application/5FC02720-192E-4A98-8163-C8A1FC24A055/Runner.app/Runner Identifier: cc.narumi.chaldea Version: 8 (1.1.4) AppStoreTools: 12C29 AppVariant: 1:iPhone10,1:12.2 Code Type: ARM-64 (Native) Role: Foreground Parent Process: launchd [1] Coalition: cc.narumi.chaldea [9074] Date/Time: 2021-01-18 17:22:38.7293 +0800 Launch Time: 2021-01-18 17:22:37.9971 +0800 OS Version: iPhone OS 12.4 (16G77) Baseband Version: 3.70.01 Report Version: 104 Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Termination Description: DYLD, Symbol not found: ___chkstk_darwin | Referenced from: /private/var/containers/Bundle/Application/5FC02720-192E-4A98-8163-C8A1FC24A055/Runner.app/Frameworks/ffiquickjs.framework/ffiquickjs (which was built for iOS 14.2) | Expected in: dyld shared cache | in /private/var/containers/Bundle/Application/5FC02720-192E-4A98-8163-C8A1FC24A055/Runner.app/Frameworks/ffiquickjs.framework/ffiquickjs Triggered by Thread: 0 Thread 0 Crashed: 0 dyld 0x0000000104f5a418 __abort_with_payload + 8 1 dyld 0x0000000104f59a58 abort_with_payload_wrapper_internal + 100 (terminate_with_reason.c:72) 2 dyld 0x0000000104f59a88 abort_with_payload + 12 (terminate_with_reason.c:94) 3 dyld 0x0000000104f1c8f8 dyld::halt(char const*) + 304 (dyld.cpp:4024) 4 dyld 0x0000000104f1f6e4 dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**, un... + 5396 (dyld.cpp:6519) 5 dyld 0x0000000104f19044 _dyld_start + 68 Thread 0 crashed with ARM Thread State (64-bit): x0: 0x0000000000000006 x1: 0x0000000000000004 x2: 0x000000016b2929a0 x3: 0x00000000000000bd x4: 0x000000016b2925a0 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x000000016b292d30 x8: 0x0000000000000020 x9: 0x0000000000000009 x10: 0x6f77656d6172662e x11: 0x75716966662f6b72 x12: 0x6b63697571696666 x13: 0x656d6172662e736a x14: 0x6966662f6b726f77 x15: 0x00736a6b63697571 x16: 0x0000000000000209 x17: 0x0000000000000000 x18: 0x0000000000000000 x19: 0x0000000000000000 x20: 0x000000016b2925a0 x21: 0x00000000000000bd x22: 0x000000016b2929a0 x23: 0x0000000000000004 x24: 0x0000000000000006 x25: 0x000000000000002f x26: 0x0000000104f735e0 x27: 0x0000000104f73000 x28: 0x0000000104f73a00 fp: 0x000000016b292570 lr: 0x0000000104f59a58 sp: 0x000000016b292530 pc: 0x0000000104f5a418 cpsr: 0x00000000 Binary Images: 0x104b6c000 - 0x104b73fff Runner arm64