-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Open
Labels
C-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorO-iOSSpecific to the iOS mobile operating systemSpecific to the iOS mobile operating systemP-Compile-FailureA failure to compile Bevy appsA failure to compile Bevy appsS-Needs-InvestigationThis issue requires detective work to figure out what's going wrongThis issue requires detective work to figure out what's going wrong
Description
Bevy version
bevy = "0.13.0"
System information
cargo 1.76.0 (c84b36747 2024-01-18)
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild --version
2024-03-15 12:36:31.715 xcodebuild[60660:2660219]
What you did
I added bevy_pkv
as a dependency to the mobile example which as a default uses redb
as a backend.
What went wrong
building via xcode leads to linker errors:
.... "-o" "[...]/target/aarch64-apple-ios/debug/deps/libredb-d5d45224ce42ca57.dylib" "-Wl,-dead_strip" "-dynamiclib" "-Wl,-dylib" "-nodefaultlibs"
= note: ld: building for 'iOS', but linking in dylib (/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/libiconv.2.tbd) built for 'macOS macCatalyst zippered(macOS/Catalyst)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: could not compile `redb` (lib) due to 1 previous error
Additional information
strangely enough if I build the mobile lib manually first, xcode builds fine:
cargo rustc --crate-type staticlib --lib --target aarch64-apple-ios
I tried reducing the differences of this manual build and what our shell-script does when called by xcode but I cannot get it to work. it feels like some magical config happens outside of my visibility altering how the lib gets build when run manually compared to what xcode does via our shell-script
Metadata
Metadata
Assignees
Labels
C-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorO-iOSSpecific to the iOS mobile operating systemSpecific to the iOS mobile operating systemP-Compile-FailureA failure to compile Bevy appsA failure to compile Bevy appsS-Needs-InvestigationThis issue requires detective work to figure out what's going wrongThis issue requires detective work to figure out what's going wrong