mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2026-03-25 08:55:46 +00:00
fix libfido2 errors on Xcode26 thanks @anciltech
This commit is contained in:
parent
9527fb2961
commit
a6dec75603
2 changed files with 45 additions and 0 deletions
26
Scripts/fix_libfido2_framework.sh
Executable file
26
Scripts/fix_libfido2_framework.sh
Executable file
|
|
@ -0,0 +1,26 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Fix libfido2.framework structure for macOS validation
|
||||||
|
# If this script is not run, the build will fail because xcodebuild is expecting the library in a specific structure
|
||||||
|
FRAMEWORK_PATH="${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app/Contents/Frameworks/libfido2.framework"
|
||||||
|
|
||||||
|
if [ -d "$FRAMEWORK_PATH" ] && [ -f "$FRAMEWORK_PATH/Info.plist" ] && [ ! -d "$FRAMEWORK_PATH/Versions" ]; then
|
||||||
|
echo "Fixing libfido2.framework bundle structure..."
|
||||||
|
|
||||||
|
# Create proper bundle structure
|
||||||
|
mkdir -p "$FRAMEWORK_PATH/Versions/A/Resources"
|
||||||
|
|
||||||
|
# Move files to proper locations
|
||||||
|
mv "$FRAMEWORK_PATH/Info.plist" "$FRAMEWORK_PATH/Versions/A/Resources/"
|
||||||
|
mv "$FRAMEWORK_PATH/libfido2" "$FRAMEWORK_PATH/Versions/A/"
|
||||||
|
if [ -f "$FRAMEWORK_PATH/LICENSE" ]; then
|
||||||
|
mv "$FRAMEWORK_PATH/LICENSE" "$FRAMEWORK_PATH/Versions/A/"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Create symbolic links
|
||||||
|
ln -sf A "$FRAMEWORK_PATH/Versions/Current"
|
||||||
|
ln -sf Versions/Current/libfido2 "$FRAMEWORK_PATH/libfido2"
|
||||||
|
ln -sf Versions/Current/Resources "$FRAMEWORK_PATH/Resources"
|
||||||
|
|
||||||
|
echo "libfido2.framework structure fixed"
|
||||||
|
fi
|
||||||
|
|
@ -703,6 +703,7 @@
|
||||||
buildConfigurationList = CAD2E7BC2449575100113D76 /* Build configuration list for PBXNativeTarget "Xcodes" */;
|
buildConfigurationList = CAD2E7BC2449575100113D76 /* Build configuration list for PBXNativeTarget "Xcodes" */;
|
||||||
buildPhases = (
|
buildPhases = (
|
||||||
CAD2E79A2449574E00113D76 /* Sources */,
|
CAD2E79A2449574E00113D76 /* Sources */,
|
||||||
|
D971F84C2E79102E005F84C9 /* Fix libfido2 structure */,
|
||||||
CAD2E79B2449574E00113D76 /* Frameworks */,
|
CAD2E79B2449574E00113D76 /* Frameworks */,
|
||||||
CA9FF8292594F33200E47BAF /* Generate Acknowledgements */,
|
CA9FF8292594F33200E47BAF /* Generate Acknowledgements */,
|
||||||
CAD2E79C2449574E00113D76 /* Resources */,
|
CAD2E79C2449574E00113D76 /* Resources */,
|
||||||
|
|
@ -876,6 +877,24 @@
|
||||||
shellPath = /bin/sh;
|
shellPath = /bin/sh;
|
||||||
shellScript = "cd \"${SRCROOT}/Xcodes/AcknowledgementsGenerator\"\nxcrun -sdk macosx swift run AcknowledgementsGenerator \\\n -p \"${SRCROOT}/Xcodes.xcodeproj\" \\\n -o \"${SRCROOT}/Xcodes/Resources/Licenses.rtf\"\n";
|
shellScript = "cd \"${SRCROOT}/Xcodes/AcknowledgementsGenerator\"\nxcrun -sdk macosx swift run AcknowledgementsGenerator \\\n -p \"${SRCROOT}/Xcodes.xcodeproj\" \\\n -o \"${SRCROOT}/Xcodes/Resources/Licenses.rtf\"\n";
|
||||||
};
|
};
|
||||||
|
D971F84C2E79102E005F84C9 /* Fix libfido2 structure */ = {
|
||||||
|
isa = PBXShellScriptBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
inputFileListPaths = (
|
||||||
|
);
|
||||||
|
inputPaths = (
|
||||||
|
);
|
||||||
|
name = "Fix libfido2 structure";
|
||||||
|
outputFileListPaths = (
|
||||||
|
);
|
||||||
|
outputPaths = (
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
shellPath = /bin/sh;
|
||||||
|
shellScript = "${SRCROOT}/Scripts/fix_libfido2_framework.sh\n";
|
||||||
|
};
|
||||||
/* End PBXShellScriptBuildPhase section */
|
/* End PBXShellScriptBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXSourcesBuildPhase section */
|
/* Begin PBXSourcesBuildPhase section */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue