Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

fix(native): the iOS app could not find libestella_ios

esenginee5ace41799f2
diff --git a/native/ios/project.yml b/native/ios/project.yml
index a560d22ea..45f35e436 100644
--- a/native/ios/project.yml
+++ b/native/ios/project.yml
@@ -34,6 +34,9 @@ targets:
# -ObjC keeps the view controller / app delegate classes in the static
# library alive; the linker would otherwise drop TUs nothing references.
OTHER_LDFLAGS: -ObjC -lc++
+ # Xcode links the .a below as -lestella_ios, so the CMake output dir has to
+ # be on the search path — without it the link fails with "not found".
+ LIBRARY_SEARCH_PATHS: $(SRCROOT)/../../build-native-ios
TARGETED_DEVICE_FAMILY: "1,2"
ENABLE_BITCODE: NO
dependencies: