mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-23 20:15:19 -07:00
fixed inability to create xcframework in Symbolic Link (#1356)
Creating Clibsodium.xcframework... error: cannot compute path of binary 'Path(str: "/private/tmp/libsodium-stable/libsodium-apple/macos/lib/libsodium.a")' relative to that of '/tmp/libsodium-stable/libsodium-apple/macos/lib/libsodium.a' ls: /tmp/libsodium-stable/libsodium-apple/Clibsodium.xcframework: No such file or directory ls -l /tmp lrwxr-xr-x@ 1 root wheel 11 12 15 22:43 /tmp -> private/tmp
This commit is contained in:
parent
4cdcefaff2
commit
7e6ea701b7
@ -477,16 +477,16 @@ for f in macos ios watchos tvos visionos catalyst; do
|
|||||||
if [ "$VISIONOS_SUPPORTED" = false ] && [ "$f" = "visionos" ]; then
|
if [ "$VISIONOS_SUPPORTED" = false ] && [ "$f" = "visionos" ]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
XCFRAMEWORK_ARGS="${XCFRAMEWORK_ARGS} -library ${PREFIX}/${f}/lib/libsodium.a"
|
XCFRAMEWORK_ARGS="${XCFRAMEWORK_ARGS} -library $(readlink -f ${PREFIX}/${f}/lib/libsodium.a)"
|
||||||
XCFRAMEWORK_ARGS="${XCFRAMEWORK_ARGS} -headers ${PREFIX}/${f}/include"
|
XCFRAMEWORK_ARGS="${XCFRAMEWORK_ARGS} -headers $(readlink -f ${PREFIX}/${f}/include)"
|
||||||
done
|
done
|
||||||
if [ -z "$LIBSODIUM_SKIP_SIMULATORS" ]; then
|
if [ -z "$LIBSODIUM_SKIP_SIMULATORS" ]; then
|
||||||
for f in ios-simulators watchos-simulators tvos-simulators visionos-simulators; do
|
for f in ios-simulators watchos-simulators tvos-simulators visionos-simulators; do
|
||||||
if [ "$VISIONOS_SUPPORTED" = false ] && [ "$f" = "visionos-simulators" ]; then
|
if [ "$VISIONOS_SUPPORTED" = false ] && [ "$f" = "visionos-simulators" ]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
XCFRAMEWORK_ARGS="${XCFRAMEWORK_ARGS} -library ${PREFIX}/${f}/lib/libsodium.a"
|
XCFRAMEWORK_ARGS="${XCFRAMEWORK_ARGS} -library $(readlink -f ${PREFIX}/${f}/lib/libsodium.a)"
|
||||||
XCFRAMEWORK_ARGS="${XCFRAMEWORK_ARGS} -headers ${PREFIX}/${f}/include"
|
XCFRAMEWORK_ARGS="${XCFRAMEWORK_ARGS} -headers $(readlink -f ${PREFIX}/${f}/include)"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
xcodebuild -create-xcframework \
|
xcodebuild -create-xcframework \
|
||||||
|
Loading…
Reference in New Issue
Block a user