-
Notifications
You must be signed in to change notification settings - Fork 169
Fix crashes #443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Fix crashes #443
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
a474b10
Fix MockSession race condition
aonemd 674f8cf
Upgrade NWWebSocket to version 0.5.6
aonemd cb59c82
Github Actions: Update xcode-version to 16.2.0
aonemd 38f8837
Update NWWebSocket to v 0.5.6 in Carthage
aonemd 833239f
Set tweetnacl-swiftwrap to v 1.0.2 to fix the CI
aonemd dcc3e2d
github Action: Add Github Token to Authenticate requests with Carthage
aonemd c9911eb
Github Actions: Set GITHUB_ACCESS_TOKEN
aonemd b87293a
Github Actions: Downgrade xcode-version
aonemd cbac029
Github Actions: Upgrade xcode-version 15.0.1
aonemd c648fa0
Commit Cursor suggestions to fix CI
aonemd f2b229e
More cursor suggestions for CI
aonemd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
github "bitmark-inc/tweetnacl-swiftwrap" ~> 1.0 | ||
github "pusher/NWWebSocket" ~> 0.5.4 | ||
github "bitmark-inc/tweetnacl-swiftwrap" ~> 1.1.0 | ||
github "pusher/NWWebSocket" ~> 0.5.6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
github "bitmark-inc/tweetnacl-swiftwrap" "1.1.0" | ||
github "pusher/NWWebSocket" "0.5.4" | ||
github "pusher/NWWebSocket" "0.5.6" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
#!/usr/bin/env bash | ||
|
||
# debug-carthage-build.sh | ||
# Script to debug and troubleshoot Carthage build issues | ||
|
||
set -euo pipefail | ||
|
||
echo "🔍 Carthage Build Troubleshooter" | ||
echo "==================================" | ||
|
||
# Function to print section headers | ||
print_section() { | ||
echo "" | ||
echo "📋 $1" | ||
echo "$(printf '%.0s-' {1..50})" | ||
} | ||
|
||
# Check Xcode version | ||
print_section "Xcode Information" | ||
xcodebuild -version | ||
xcrun --show-sdk-path | ||
echo "Xcode path: $(xcode-select -p)" | ||
|
||
# Check Carthage version | ||
print_section "Carthage Information" | ||
carthage version | ||
|
||
# Check current dependencies | ||
print_section "Current Dependencies" | ||
echo "Cartfile contents:" | ||
cat Cartfile || echo "No Cartfile found" | ||
echo "" | ||
echo "Cartfile.resolved contents:" | ||
cat Cartfile.resolved || echo "No Cartfile.resolved found" | ||
|
||
# Check for tweetnacl-swiftwrap specific issues | ||
print_section "TweetNacl-SwiftWrap Analysis" | ||
if [ -d "Carthage/Checkouts/tweetnacl-swiftwrap" ]; then | ||
echo "✅ tweetnacl-swiftwrap checkout exists" | ||
echo "Directory contents:" | ||
ls -la Carthage/Checkouts/tweetnacl-swiftwrap/ | ||
|
||
echo "" | ||
echo "Xcode project info:" | ||
if [ -f "Carthage/Checkouts/tweetnacl-swiftwrap/TweetNacl.xcodeproj/project.pbxproj" ]; then | ||
echo "✅ Xcode project exists" | ||
# Check deployment targets | ||
grep -A 1 -B 1 "MACOSX_DEPLOYMENT_TARGET\|IPHONEOS_DEPLOYMENT_TARGET\|TVOS_DEPLOYMENT_TARGET" \ | ||
Carthage/Checkouts/tweetnacl-swiftwrap/TweetNacl.xcodeproj/project.pbxproj | head -20 | ||
else | ||
echo "❌ Xcode project not found" | ||
fi | ||
else | ||
echo "❌ tweetnacl-swiftwrap checkout not found" | ||
fi | ||
|
||
# Test specific build command | ||
print_section "Testing Build Command" | ||
echo "Attempting to build tweetnacl-swiftwrap directly..." | ||
if [ -d "Carthage/Checkouts/tweetnacl-swiftwrap" ]; then | ||
cd Carthage/Checkouts/tweetnacl-swiftwrap | ||
echo "Testing xcodebuild command..." | ||
set +e # Don't exit on error for this test | ||
|
||
xcodebuild -project TweetNacl.xcodeproj \ | ||
-scheme TweetNacl-macOS \ | ||
-configuration Release \ | ||
-sdk macosx \ | ||
ONLY_ACTIVE_ARCH=NO \ | ||
CODE_SIGNING_REQUIRED=NO \ | ||
CODE_SIGN_IDENTITY= \ | ||
SUPPORTS_MACCATALYST=NO \ | ||
clean build 2>&1 | head -50 | ||
|
||
build_result=$? | ||
cd - > /dev/null | ||
|
||
if [ $build_result -eq 0 ]; then | ||
echo "✅ Direct build succeeded" | ||
else | ||
echo "❌ Direct build failed with exit code $build_result" | ||
fi | ||
set -e | ||
else | ||
echo "⚠️ Cannot test build - checkout directory not found" | ||
fi | ||
|
||
# Suggestions | ||
print_section "Troubleshooting Suggestions" | ||
echo "1. 🧹 Clear all caches:" | ||
echo " rm -rf ~/Library/Caches/org.carthage.CarthageKit" | ||
echo " rm -rf Carthage" | ||
echo "" | ||
echo "2. 🔄 Update dependencies:" | ||
echo " carthage update --platform iOS,macOS,tvOS" | ||
echo "" | ||
echo "3. 🚫 Try without binaries:" | ||
echo " carthage update --no-use-binaries" | ||
echo "" | ||
echo "4. 📱 Try platform-specific build:" | ||
echo " carthage update --platform iOS" | ||
echo "" | ||
echo "5. 🔀 Consider switching to Swift Package Manager:" | ||
echo " Your project already supports SPM - check Package.swift" | ||
echo "" | ||
echo "6. 🔧 Manual workaround if needed:" | ||
echo " - Fork tweetnacl-swiftwrap" | ||
echo " - Update for Xcode 16 compatibility" | ||
echo " - Point Cartfile to your fork" | ||
|
||
echo "" | ||
echo "🎯 Quick Fix Commands:" | ||
echo "======================" | ||
echo "# Clean and retry:" | ||
echo "rm -rf ~/Library/Caches/org.carthage.CarthageKit && rm -rf Carthage && carthage bootstrap --use-xcframeworks" | ||
echo "" | ||
echo "# Force rebuild without binaries:" | ||
echo "carthage update --no-use-binaries --use-xcframeworks" |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.