Support real iOS devices with a device build of the Monero library

This commit is contained in:
2026-09-19 13:42:04 +08:00
parent 3e1a39d4d7
commit a3af802166
3 changed files with 14 additions and 1 deletions
Binary file not shown.
+10
View File
@@ -0,0 +1,10 @@
#include <libkern/OSCacheControl.h>
#include <stddef.h>
// randomx (pulled in by monero's proof-of-work code) calls the compiler-rt
// builtin __clear_cache from its AArch64 JIT. libSystem exports it on macOS and
// the simulator, but not on iOS devices, so provide the same implementation
// compiler-rt uses on Darwin.
void __clear_cache(void *start, void *end) {
sys_icache_invalidate(start, (size_t)((char *)end - (char *)start));
}
+4 -1
View File
@@ -26,7 +26,10 @@ targets:
CODE_SIGN_STYLE: Automatic CODE_SIGN_STYLE: Automatic
CODE_SIGNING_ALLOWED: NO CODE_SIGNING_ALLOWED: NO
SWIFT_OBJC_BRIDGING_HEADER: Koins/Bridge/Koins-Bridging-Header.h SWIFT_OBJC_BRIDGING_HEADER: Koins/Bridge/Koins-Bridging-Header.h
OTHER_LDFLAGS: OTHER_LDFLAGS[sdk=iphoneos*]:
- "$(inherited)"
- "-lkoins_monero_device"
OTHER_LDFLAGS[sdk=iphonesimulator*]:
- "$(inherited)" - "$(inherited)"
- "-lkoins_monero_merged" - "-lkoins_monero_merged"
LIBRARY_SEARCH_PATHS: LIBRARY_SEARCH_PATHS: