Skip to content

Commit db97f3e

Browse files
committed
Share concurrency-enabled XcodesKit
1 parent ec5779c commit db97f3e

193 files changed

Lines changed: 11292 additions & 4536 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

HelperXPCShared/HelperXPCShared.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ let clientBundleID = "com.xcodesorg.xcodesapp"
55
let subjectOrganizationalUnit = Bundle.main.infoDictionary!["CODE_SIGNING_SUBJECT_ORGANIZATIONAL_UNIT"] as! String
66

77
@objc(HelperXPCProtocol)
8-
protocol HelperXPCProtocol {
8+
protocol HelperXPCProtocol: Sendable {
99
func getVersion(completion: @escaping (String) -> Void)
1010
func xcodeSelect(absolutePath: String, completion: @escaping (Error?) -> Void)
1111
func devToolsSecurityEnable(completion: @escaping (Error?) -> Void)

Scripts/fix_libfido2_framework.sh

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,34 @@
11
#!/bin/sh
22

3-
# Fix libfido2.framework structure for macOS validation
4-
# If this script is not run, the build will fail because xcodebuild is expecting the library in a specific structure
5-
FRAMEWORK_PATH="${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app/Contents/Frameworks/libfido2.framework"
3+
set -e
64

7-
if [ -d "$FRAMEWORK_PATH" ] && [ -f "$FRAMEWORK_PATH/Info.plist" ] && [ ! -d "$FRAMEWORK_PATH/Versions" ]; then
5+
FRAMEWORKS_DIR="${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app/Contents/Frameworks"
6+
LIBFIDO_FRAMEWORK_PATH="${FRAMEWORKS_DIR}/libfido2.framework"
7+
8+
if [ -d "$LIBFIDO_FRAMEWORK_PATH" ] && [ -f "$LIBFIDO_FRAMEWORK_PATH/Info.plist" ] && [ ! -d "$LIBFIDO_FRAMEWORK_PATH/Versions" ]; then
89
echo "Fixing libfido2.framework bundle structure..."
910

10-
# Create proper bundle structure
11-
mkdir -p "$FRAMEWORK_PATH/Versions/A/Resources"
11+
mkdir -p "$LIBFIDO_FRAMEWORK_PATH/Versions/A/Resources"
1212

13-
# Move files to proper locations
14-
mv "$FRAMEWORK_PATH/Info.plist" "$FRAMEWORK_PATH/Versions/A/Resources/"
15-
mv "$FRAMEWORK_PATH/libfido2" "$FRAMEWORK_PATH/Versions/A/"
16-
if [ -f "$FRAMEWORK_PATH/LICENSE" ]; then
17-
mv "$FRAMEWORK_PATH/LICENSE" "$FRAMEWORK_PATH/Versions/A/"
13+
mv "$LIBFIDO_FRAMEWORK_PATH/Info.plist" "$LIBFIDO_FRAMEWORK_PATH/Versions/A/Resources/"
14+
mv "$LIBFIDO_FRAMEWORK_PATH/libfido2" "$LIBFIDO_FRAMEWORK_PATH/Versions/A/"
15+
if [ -f "$LIBFIDO_FRAMEWORK_PATH/LICENSE" ]; then
16+
mv "$LIBFIDO_FRAMEWORK_PATH/LICENSE" "$LIBFIDO_FRAMEWORK_PATH/Versions/A/"
1817
fi
1918

20-
# Create symbolic links
21-
ln -sf A "$FRAMEWORK_PATH/Versions/Current"
22-
ln -sf Versions/Current/libfido2 "$FRAMEWORK_PATH/libfido2"
23-
ln -sf Versions/Current/Resources "$FRAMEWORK_PATH/Resources"
24-
25-
echo "libfido2.framework structure fixed"
19+
ln -sf A "$LIBFIDO_FRAMEWORK_PATH/Versions/Current"
20+
ln -sf Versions/Current/libfido2 "$LIBFIDO_FRAMEWORK_PATH/libfido2"
21+
ln -sf Versions/Current/Resources "$LIBFIDO_FRAMEWORK_PATH/Resources"
2622
fi
23+
24+
SIGN_IDENTITY="${EXPANDED_CODE_SIGN_IDENTITY:--}"
25+
for item in \
26+
"$BUILT_PRODUCTS_DIR/libcrypto.3.dylib" \
27+
"$BUILT_PRODUCTS_DIR/libcbor.0.11.0.dylib" \
28+
"$FRAMEWORKS_DIR/libcrypto.3.dylib" \
29+
"$FRAMEWORKS_DIR/libcbor.0.11.0.dylib" \
30+
"$LIBFIDO_FRAMEWORK_PATH"; do
31+
if [ -e "$item" ]; then
32+
codesign --force --sign "$SIGN_IDENTITY" "$item"
33+
fi
34+
done

Xcodes.xcodeproj/project.pbxproj

Lines changed: 45 additions & 108 deletions
Large diffs are not rendered by default.

Xcodes.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Xcodes/AppleAPI/.gitignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

Xcodes/AppleAPI/Package.swift

Lines changed: 0 additions & 28 deletions
This file was deleted.

Xcodes/AppleAPI/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)