Showing preview only (341K chars total). Download the full file or copy to clipboard to get everything.
Repository: iCepa/Tor.framework
Branch: pure_pod
Commit: 19ac105f1a64
Files: 69
Total size: 319.8 KB
Directory structure:
gitextract_5cjxzza8/
├── .gitignore
├── .gitmodules
├── Arti.podspec
├── Brewfile
├── Example/
│ ├── Example-Mac/
│ │ ├── AppDelegate.h
│ │ ├── AppDelegate.m
│ │ ├── Base.lproj/
│ │ │ └── Main.storyboard
│ │ ├── Tor-Example-Mac-Bridging-Header.h
│ │ ├── ViewController.swift
│ │ └── main.m
│ ├── Podfile
│ ├── Tests/
│ │ ├── TORConfigurationTests.m
│ │ ├── TORControllerTests.m
│ │ ├── Tests-Info.plist
│ │ └── Tests-Prefix.pch
│ ├── Tor/
│ │ ├── AppDelegate.h
│ │ ├── AppDelegate.m
│ │ ├── Base.lproj/
│ │ │ └── Main.storyboard
│ │ ├── Launch Screen.storyboard
│ │ ├── Tor-Example-Bridging-Header.h
│ │ ├── Tor-Info.plist
│ │ ├── Tor-Prefix.pch
│ │ ├── ViewController.swift
│ │ └── main.m
│ ├── Tor.xcodeproj/
│ │ ├── project.pbxproj
│ │ ├── project.xcworkspace/
│ │ │ ├── contents.xcworkspacedata
│ │ │ └── xcshareddata/
│ │ │ └── IDEWorkspaceChecks.plist
│ │ └── xcshareddata/
│ │ └── xcschemes/
│ │ ├── Tor-Example-Mac.xcscheme
│ │ └── Tor-Example.xcscheme
│ └── Tor.xcworkspace/
│ ├── contents.xcworkspacedata
│ └── xcshareddata/
│ └── IDEWorkspaceChecks.plist
├── LICENSE
├── README.md
├── Tor/
│ ├── Assets/
│ │ └── .gitkeep
│ ├── Classes/
│ │ ├── Arti/
│ │ │ ├── TORArti.h
│ │ │ └── TORArti.m
│ │ ├── CTor/
│ │ │ ├── TORLogging.h
│ │ │ ├── TORLogging.m
│ │ │ ├── TORThread.h
│ │ │ ├── TORThread.m
│ │ │ ├── TORX25519KeyPair.h
│ │ │ └── TORX25519KeyPair.m
│ │ ├── Core/
│ │ │ ├── NSBundle+GeoIP.h
│ │ │ ├── NSBundle+GeoIP.m
│ │ │ ├── NSCharacterSet+PredefinedSets.h
│ │ │ ├── NSCharacterSet+PredefinedSets.m
│ │ │ ├── TORAuthKey.h
│ │ │ ├── TORAuthKey.m
│ │ │ ├── TORCircuit.h
│ │ │ ├── TORCircuit.m
│ │ │ ├── TORConfiguration.h
│ │ │ ├── TORConfiguration.m
│ │ │ ├── TORControlCommand.h
│ │ │ ├── TORControlReplyCode.h
│ │ │ ├── TORController.h
│ │ │ ├── TORController.m
│ │ │ ├── TORNode.h
│ │ │ ├── TORNode.m
│ │ │ ├── TOROnionAuth.h
│ │ │ └── TOROnionAuth.m
│ │ └── Onionmasq/
│ │ ├── Onionmasq.h
│ │ └── Onionmasq.m
│ ├── download.sh
│ ├── mmap-cache.patch
│ └── onionmasq.sh
├── Tor.podspec
├── build-xcframework.sh
└── docs/
├── Tor.json
└── index.html
================================================
FILE CONTENTS
================================================
================================================
FILE: .gitignore
================================================
geoip
geoip6
tor.xcframework
tor-nolzma.xcframework
tor.xcframework.zip
tor-nolzma.xcframework.zip
arti.xcframework
arti.xcframework.zip
# Created by https://www.toptal.com/developers/gitignore/api/macos,xcode,swift,objective-c
# Edit at https://www.toptal.com/developers/gitignore?templates=macos,xcode,swift,objective-c
### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
### Objective-C ###
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
## User settings
xcuserdata/
## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
*.xcscmblueprint
*.xccheckout
## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
build/
DerivedData/
*.moved-aside
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
## Obj-C/Swift specific
*.hmap
## App packaging
*.ipa
*.dSYM.zip
*.dSYM
# CocoaPods
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
Pods/
# Add this line if you want to avoid checking in source code from the Xcode workspace
# *.xcworkspace
# Carthage
# Add this line if you want to avoid checking in source code from Carthage dependencies.
Carthage/Checkouts
Carthage/Build/
# fastlane
# It is recommended to not store the screenshots in the git repo.
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output
# Code Injection
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode
iOSInjectionProject/
### Objective-C Patch ###
### Swift ###
# Xcode
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
## Playgrounds
timeline.xctimeline
playground.xcworkspace
# Swift Package Manager
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
# Package.resolved
# *.xcodeproj
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
# hence it is not needed unless you have added a package configuration file to your project
# .swiftpm
.build/
# CocoaPods
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
# Pods/
# Add this line if you want to avoid checking in source code from the Xcode workspace
# *.xcworkspace
# Carthage
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts
# Accio dependency management
Dependencies/
.accio/
# fastlane
# It is recommended to not store the screenshots in the git repo.
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control
# Code Injection
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode
### Xcode ###
## Xcode 8 and earlier
### Xcode Patch ###
*.xcodeproj/*
!*.xcodeproj/project.pbxproj
!*.xcodeproj/xcshareddata/
!*.xcworkspace/contents.xcworkspacedata
/*.gcno
**/xcshareddata/WorkspaceSettings.xcsettings
# End of https://www.toptal.com/developers/gitignore/api/macos,xcode,swift,objective-c
================================================
FILE: .gitmodules
================================================
[submodule "Tor/onionmasq"]
path = Tor/onionmasq
url = https://gitlab.torproject.org/tpo/core/onionmasq.git
================================================
FILE: Arti.podspec
================================================
Pod::Spec.new do |m|
m.name = 'Tor'
m.version = '408.22.1'
m.summary = 'Tor.framework is the easiest way to embed Tor in your iOS application.'
m.description = 'Tor.framework is the easiest way to embed Tor in your iOS application.'
m.homepage = 'https://github.com/iCepa/Tor.framework'
m.license = { :type => 'MIT', :file => 'LICENSE' }
m.authors = {
'Conrad Kramer' => 'conrad@conradkramer.com',
'Chris Ballinger' => 'chris@chatsecure.org',
'Mike Tigas' => 'mike@tig.as',
'Benjamin Erhart' => 'berhart@netzarchitekten.com', }
m.source = {
:git => 'https://github.com/iCepa/Tor.framework.git',
:branch => 'pure_pod',
:tag => "v#{m.version}",
:submodules => true }
m.social_media_url = 'https://chaos.social/@tla'
m.ios.deployment_target = '15.0'
m.macos.deployment_target = '11.0'
m.prepare_command = "Tor/download.sh v#{m.version} arti 16a8f88e8b4f09b39462733cefb8b1c5f715b36c03c4745a6a5c6a8eb370c48f"
script = <<-ENDSCRIPT
cd "${PODS_TARGET_SRCROOT}/Tor/%1$s"
../%1$s.sh
ENDSCRIPT
m.subspec 'Core' do |s|
s.requires_arc = true
s.source_files = 'Tor/Classes/Core/**/*'
end
m.subspec 'Arti' do |s|
s.dependency 'Tor/Core'
s.source_files = 'Tor/Classes/Arti/**/*'
s.vendored_frameworks = 'arti.xcframework'
s.pod_target_xcconfig = {
'HEADER_SEARCH_PATHS' => '$(inherited) "${PODS_TARGET_SRCROOT}/arti.xcframework/ios-arm64/arti.framework/Headers"',
}
s.preserve_paths = 'arti.xcframework', 'download.sh'
s.user_target_xcconfig = {
'GCC_PREPROCESSOR_DEFINITIONS' => 'USE_ARTI=1',
'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => '$(inherited) USE_ARTI',
}
end
m.subspec 'Onionmasq' do |s|
s.dependency 'Tor/Core'
s.source_files = 'Tor/Classes/Onionmasq/**/*'
s.pod_target_xcconfig = {
'HEADER_SEARCH_PATHS' => '$(inherited) "${PODS_TARGET_SRCROOT}/Tor/onionmasq"',
'OTHER_LDFLAGS' => '$(inherited) -L"${BUILT_PRODUCTS_DIR}/Tor" -l"onionmasq_apple"',
}
s.user_target_xcconfig = {
'GCC_PREPROCESSOR_DEFINITIONS' => 'USE_ONIONMASQ=1',
'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => '$(inherited) USE_ONIONMASQ',
}
s.script_phases = [
{
:name => 'Build Onionmasq',
:execution_position => :before_compile,
:output_files => ['onionmasq-always-execute-this-but-supress-warning'],
:script => sprintf(script, "onionmasq")
},
]
s.preserve_paths = 'Tor/onionmasq', 'Tor/onionmasq.sh'
end
m.default_subspecs = 'Arti'
end
================================================
FILE: Brewfile
================================================
brew "automake"
brew "autoconf"
brew "libtool"
brew "gettext"
brew "po4a"
brew "rustup"
================================================
FILE: Example/Example-Mac/AppDelegate.h
================================================
//
// AppDelegate.h
// Tor_Example_Mac
//
// Created by Benjamin Erhart on 13.01.22.
// Copyright © 2022 Benjamin Erhart. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface AppDelegate : NSObject <NSApplicationDelegate>
@end
================================================
FILE: Example/Example-Mac/AppDelegate.m
================================================
//
// AppDelegate.m
// Tor_Example_Mac
//
// Created by Benjamin Erhart on 13.01.22.
// Copyright © 2022 Benjamin Erhart. All rights reserved.
//
#import "AppDelegate.h"
#import <Tor/NSBundle+GeoIP.h>
#import <Tor/TORConfiguration.h>
#import <Tor/TORController.h>
#ifdef USE_ARTI
#import <Tor/TORArti.h>
#else
#ifdef USE_ONIONMASQ
#import <Tor/Onionmasq.h>
#else
#import <Tor/TORThread.h>
#endif
#endif
@interface AppDelegate ()
@end
@implementation AppDelegate
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
NSFileManager *fm = NSFileManager.defaultManager;
NSURL *appSuppDir = [fm URLsForDirectory:NSApplicationSupportDirectory inDomains:NSUserDomainMask].firstObject;
TORConfiguration *configuration = [TORConfiguration new];
configuration.ignoreMissingTorrc = YES;
configuration.avoidDiskWrites = YES;
configuration.clientOnly = YES;
configuration.cookieAuthentication = YES;
configuration.autoControlPort = YES;
configuration.dataDirectory = [appSuppDir URLByAppendingPathComponent:@"tor"];
configuration.geoipFile = NSBundle.geoIpBundle.geoipFile;
configuration.geoip6File = NSBundle.geoIpBundle.geoip6File;
NSURL *cacheDir = [fm URLsForDirectory:NSCachesDirectory inDomains:NSUserDomainMask].firstObject;
#ifdef USE_ARTI
configuration.socksPort = 9150;
configuration.dnsPort = 1951;
configuration.dataDirectory = [appSuppDir URLByAppendingPathComponent:@"org.torproject.Arti"];
configuration.logfile = [cacheDir URLByAppendingPathComponent:@"arti.log"];
configuration.cacheDirectory = [cacheDir URLByAppendingPathComponent:@"org.torproject.Arti"];
NSLog(@"Configuration:\n%@", [configuration compile]);
[TORArti startWithConfiguration:configuration completed:^{
NSLog(@"established");
[NSNotificationCenter.defaultCenter
postNotificationName:@"tor-ready"
object:[[NSNumber alloc] initWithUnsignedInteger:configuration.socksPort]];
}];
#else
#ifdef USE_ONIONMASQ
[Onionmasq startWithReader:^{
NSLog(@"[Read]");
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
[Onionmasq receive:@[]];
});
}
writer:^_Bool(NSData * _Nonnull packet, NSNumber * _Nonnull version) {
NSLog(@"[Write] version=%@, packet=%@", version, packet);
return false;
}
stateDir:appSuppDir
cacheDir:cacheDir
pcapFile:nil
onEvent:^(id event) {
NSLog(@"[Event] %@", event);
}
onLog:^(NSString * _Nonnull message) {
NSLog(@"[Log] %@", message);
}];
#else
TORThread *thread = [[TORThread alloc] initWithConfiguration:configuration];
[thread start];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 1 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
NSData *cookie = configuration.cookie;
TORController *controller = [[TORController alloc] initWithControlPortFile:configuration.controlPortFile];
[controller authenticateWithData:cookie completion:^(BOOL success, NSError *error) {
__weak TORController *c = controller;
NSLog(@"authenticated success=%d", success);
if (!success)
{
return;
}
[c addObserverForCircuitEstablished:^(BOOL established) {
NSLog(@"established=%d", established);
if (!established)
{
return;
}
CFTimeInterval startTime = CACurrentMediaTime();
[c getInfoForKeys:@[@"net/listeners/socks"] completion:^(NSArray<NSString *> * _Nonnull values) {
if (values.count > 0) {
NSArray<NSString *> *parts = [values[0] componentsSeparatedByString:@":"];
if (parts.count > 1) {
dispatch_async(dispatch_get_main_queue(), ^{
[NSNotificationCenter.defaultCenter
postNotificationName:@"tor-ready"
object:[[NSNumber alloc] initWithInteger:parts[1].integerValue]];
});
}
}
[c getCircuits:^(NSArray<TORCircuit *> * _Nonnull circuits) {
NSLog(@"Circuits: %@", circuits);
NSLog(@"Elapsed Time: %f", CACurrentMediaTime() - startTime);
}];
}];
}];
}];
});
#endif
#endif
}
- (void)applicationWillTerminate:(NSNotification *)aNotification {
// Insert code here to tear down your application
}
- (BOOL)applicationSupportsSecureRestorableState:(NSApplication *)app {
return YES;
}
@end
================================================
FILE: Example/Example-Mac/Base.lproj/Main.storyboard
================================================
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="24412" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" initialViewController="B8D-0N-5wS">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="24412"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--Application-->
<scene sceneID="JPo-4y-FX3">
<objects>
<application id="hnw-xV-0zn" sceneMemberID="viewController">
<menu key="mainMenu" title="Main Menu" systemMenu="main" id="AYu-sK-qS6">
<items>
<menuItem title="Tor_Example_Mac" id="1Xt-HY-uBw">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Tor_Example_Mac" systemMenu="apple" id="uQy-DD-JDr">
<items>
<menuItem title="About Tor_Example_Mac" id="5kV-Vb-QxS">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="orderFrontStandardAboutPanel:" target="Ady-hI-5gd" id="Exp-CZ-Vem"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="VOq-y0-SEH"/>
<menuItem title="Preferences…" keyEquivalent="," id="BOF-NM-1cW"/>
<menuItem isSeparatorItem="YES" id="wFC-TO-SCJ"/>
<menuItem title="Services" id="NMo-om-nkz">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Services" systemMenu="services" id="hz9-B4-Xy5"/>
</menuItem>
<menuItem isSeparatorItem="YES" id="4je-JR-u6R"/>
<menuItem title="Hide Tor_Example_Mac" keyEquivalent="h" id="Olw-nP-bQN">
<connections>
<action selector="hide:" target="Ady-hI-5gd" id="PnN-Uc-m68"/>
</connections>
</menuItem>
<menuItem title="Hide Others" keyEquivalent="h" id="Vdr-fp-XzO">
<modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
<connections>
<action selector="hideOtherApplications:" target="Ady-hI-5gd" id="VT4-aY-XCT"/>
</connections>
</menuItem>
<menuItem title="Show All" id="Kd2-mp-pUS">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="unhideAllApplications:" target="Ady-hI-5gd" id="Dhg-Le-xox"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="kCx-OE-vgT"/>
<menuItem title="Quit Tor_Example_Mac" keyEquivalent="q" id="4sb-4s-VLi">
<connections>
<action selector="terminate:" target="Ady-hI-5gd" id="Te7-pn-YzF"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="File" id="dMs-cI-mzQ">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="File" id="bib-Uj-vzu">
<items>
<menuItem title="New" keyEquivalent="n" id="Was-JA-tGl">
<connections>
<action selector="newDocument:" target="Ady-hI-5gd" id="4Si-XN-c54"/>
</connections>
</menuItem>
<menuItem title="Open…" keyEquivalent="o" id="IAo-SY-fd9">
<connections>
<action selector="openDocument:" target="Ady-hI-5gd" id="bVn-NM-KNZ"/>
</connections>
</menuItem>
<menuItem title="Open Recent" id="tXI-mr-wws">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Open Recent" systemMenu="recentDocuments" id="oas-Oc-fiZ">
<items>
<menuItem title="Clear Menu" id="vNY-rz-j42">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="clearRecentDocuments:" target="Ady-hI-5gd" id="Daa-9d-B3U"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem isSeparatorItem="YES" id="m54-Is-iLE"/>
<menuItem title="Close" keyEquivalent="w" id="DVo-aG-piG">
<connections>
<action selector="performClose:" target="Ady-hI-5gd" id="HmO-Ls-i7Q"/>
</connections>
</menuItem>
<menuItem title="Save…" keyEquivalent="s" id="pxx-59-PXV">
<connections>
<action selector="saveDocument:" target="Ady-hI-5gd" id="teZ-XB-qJY"/>
</connections>
</menuItem>
<menuItem title="Save As…" keyEquivalent="S" id="Bw7-FT-i3A">
<connections>
<action selector="saveDocumentAs:" target="Ady-hI-5gd" id="mDf-zr-I0C"/>
</connections>
</menuItem>
<menuItem title="Revert to Saved" keyEquivalent="r" id="KaW-ft-85H">
<connections>
<action selector="revertDocumentToSaved:" target="Ady-hI-5gd" id="iJ3-Pv-kwq"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="aJh-i4-bef"/>
<menuItem title="Page Setup…" keyEquivalent="P" id="qIS-W8-SiK">
<modifierMask key="keyEquivalentModifierMask" shift="YES" command="YES"/>
<connections>
<action selector="runPageLayout:" target="Ady-hI-5gd" id="Din-rz-gC5"/>
</connections>
</menuItem>
<menuItem title="Print…" keyEquivalent="p" id="aTl-1u-JFS">
<connections>
<action selector="print:" target="Ady-hI-5gd" id="qaZ-4w-aoO"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Edit" id="5QF-Oa-p0T">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Edit" id="W48-6f-4Dl">
<items>
<menuItem title="Undo" keyEquivalent="z" id="dRJ-4n-Yzg">
<connections>
<action selector="undo:" target="Ady-hI-5gd" id="M6e-cu-g7V"/>
</connections>
</menuItem>
<menuItem title="Redo" keyEquivalent="Z" id="6dh-zS-Vam">
<connections>
<action selector="redo:" target="Ady-hI-5gd" id="oIA-Rs-6OD"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="WRV-NI-Exz"/>
<menuItem title="Cut" keyEquivalent="x" id="uRl-iY-unG">
<connections>
<action selector="cut:" target="Ady-hI-5gd" id="YJe-68-I9s"/>
</connections>
</menuItem>
<menuItem title="Copy" keyEquivalent="c" id="x3v-GG-iWU">
<connections>
<action selector="copy:" target="Ady-hI-5gd" id="G1f-GL-Joy"/>
</connections>
</menuItem>
<menuItem title="Paste" keyEquivalent="v" id="gVA-U4-sdL">
<connections>
<action selector="paste:" target="Ady-hI-5gd" id="UvS-8e-Qdg"/>
</connections>
</menuItem>
<menuItem title="Paste and Match Style" keyEquivalent="V" id="WeT-3V-zwk">
<modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
<connections>
<action selector="pasteAsPlainText:" target="Ady-hI-5gd" id="cEh-KX-wJQ"/>
</connections>
</menuItem>
<menuItem title="Delete" id="pa3-QI-u2k">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="delete:" target="Ady-hI-5gd" id="0Mk-Ml-PaM"/>
</connections>
</menuItem>
<menuItem title="Select All" keyEquivalent="a" id="Ruw-6m-B2m">
<connections>
<action selector="selectAll:" target="Ady-hI-5gd" id="VNm-Mi-diN"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="uyl-h8-XO2"/>
<menuItem title="Find" id="4EN-yA-p0u">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Find" id="1b7-l0-nxx">
<items>
<menuItem title="Find…" tag="1" keyEquivalent="f" id="Xz5-n4-O0W">
<connections>
<action selector="performFindPanelAction:" target="Ady-hI-5gd" id="cD7-Qs-BN4"/>
</connections>
</menuItem>
<menuItem title="Find and Replace…" tag="12" keyEquivalent="f" id="YEy-JH-Tfz">
<modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
<connections>
<action selector="performFindPanelAction:" target="Ady-hI-5gd" id="WD3-Gg-5AJ"/>
</connections>
</menuItem>
<menuItem title="Find Next" tag="2" keyEquivalent="g" id="q09-fT-Sye">
<connections>
<action selector="performFindPanelAction:" target="Ady-hI-5gd" id="NDo-RZ-v9R"/>
</connections>
</menuItem>
<menuItem title="Find Previous" tag="3" keyEquivalent="G" id="OwM-mh-QMV">
<connections>
<action selector="performFindPanelAction:" target="Ady-hI-5gd" id="HOh-sY-3ay"/>
</connections>
</menuItem>
<menuItem title="Use Selection for Find" tag="7" keyEquivalent="e" id="buJ-ug-pKt">
<connections>
<action selector="performFindPanelAction:" target="Ady-hI-5gd" id="U76-nv-p5D"/>
</connections>
</menuItem>
<menuItem title="Jump to Selection" keyEquivalent="j" id="S0p-oC-mLd">
<connections>
<action selector="centerSelectionInVisibleArea:" target="Ady-hI-5gd" id="IOG-6D-g5B"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Spelling and Grammar" id="Dv1-io-Yv7">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Spelling" id="3IN-sU-3Bg">
<items>
<menuItem title="Show Spelling and Grammar" keyEquivalent=":" id="HFo-cy-zxI">
<connections>
<action selector="showGuessPanel:" target="Ady-hI-5gd" id="vFj-Ks-hy3"/>
</connections>
</menuItem>
<menuItem title="Check Document Now" keyEquivalent=";" id="hz2-CU-CR7">
<connections>
<action selector="checkSpelling:" target="Ady-hI-5gd" id="fz7-VC-reM"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="bNw-od-mp5"/>
<menuItem title="Check Spelling While Typing" id="rbD-Rh-wIN">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleContinuousSpellChecking:" target="Ady-hI-5gd" id="7w6-Qz-0kB"/>
</connections>
</menuItem>
<menuItem title="Check Grammar With Spelling" id="mK6-2p-4JG">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleGrammarChecking:" target="Ady-hI-5gd" id="muD-Qn-j4w"/>
</connections>
</menuItem>
<menuItem title="Correct Spelling Automatically" id="78Y-hA-62v">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleAutomaticSpellingCorrection:" target="Ady-hI-5gd" id="2lM-Qi-WAP"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Substitutions" id="9ic-FL-obx">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Substitutions" id="FeM-D8-WVr">
<items>
<menuItem title="Show Substitutions" id="z6F-FW-3nz">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="orderFrontSubstitutionsPanel:" target="Ady-hI-5gd" id="oku-mr-iSq"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="gPx-C9-uUO"/>
<menuItem title="Smart Copy/Paste" id="9yt-4B-nSM">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleSmartInsertDelete:" target="Ady-hI-5gd" id="3IJ-Se-DZD"/>
</connections>
</menuItem>
<menuItem title="Smart Quotes" id="hQb-2v-fYv">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleAutomaticQuoteSubstitution:" target="Ady-hI-5gd" id="ptq-xd-QOA"/>
</connections>
</menuItem>
<menuItem title="Smart Dashes" id="rgM-f4-ycn">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleAutomaticDashSubstitution:" target="Ady-hI-5gd" id="oCt-pO-9gS"/>
</connections>
</menuItem>
<menuItem title="Smart Links" id="cwL-P1-jid">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleAutomaticLinkDetection:" target="Ady-hI-5gd" id="Gip-E3-Fov"/>
</connections>
</menuItem>
<menuItem title="Data Detectors" id="tRr-pd-1PS">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleAutomaticDataDetection:" target="Ady-hI-5gd" id="R1I-Nq-Kbl"/>
</connections>
</menuItem>
<menuItem title="Text Replacement" id="HFQ-gK-NFA">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleAutomaticTextReplacement:" target="Ady-hI-5gd" id="DvP-Fe-Py6"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Transformations" id="2oI-Rn-ZJC">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Transformations" id="c8a-y6-VQd">
<items>
<menuItem title="Make Upper Case" id="vmV-6d-7jI">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="uppercaseWord:" target="Ady-hI-5gd" id="sPh-Tk-edu"/>
</connections>
</menuItem>
<menuItem title="Make Lower Case" id="d9M-CD-aMd">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="lowercaseWord:" target="Ady-hI-5gd" id="iUZ-b5-hil"/>
</connections>
</menuItem>
<menuItem title="Capitalize" id="UEZ-Bs-lqG">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="capitalizeWord:" target="Ady-hI-5gd" id="26H-TL-nsh"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Speech" id="xrE-MZ-jX0">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Speech" id="3rS-ZA-NoH">
<items>
<menuItem title="Start Speaking" id="Ynk-f8-cLZ">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="startSpeaking:" target="Ady-hI-5gd" id="654-Ng-kyl"/>
</connections>
</menuItem>
<menuItem title="Stop Speaking" id="Oyz-dy-DGm">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="stopSpeaking:" target="Ady-hI-5gd" id="dX8-6p-jy9"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Format" id="jxT-CU-nIS">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Format" id="GEO-Iw-cKr">
<items>
<menuItem title="Font" id="Gi5-1S-RQB">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Font" systemMenu="font" id="aXa-aM-Jaq">
<items>
<menuItem title="Show Fonts" keyEquivalent="t" id="Q5e-8K-NDq">
<connections>
<action selector="orderFrontFontPanel:" target="YLy-65-1bz" id="WHr-nq-2xA"/>
</connections>
</menuItem>
<menuItem title="Bold" tag="2" keyEquivalent="b" id="GB9-OM-e27">
<connections>
<action selector="addFontTrait:" target="YLy-65-1bz" id="hqk-hr-sYV"/>
</connections>
</menuItem>
<menuItem title="Italic" tag="1" keyEquivalent="i" id="Vjx-xi-njq">
<connections>
<action selector="addFontTrait:" target="YLy-65-1bz" id="IHV-OB-c03"/>
</connections>
</menuItem>
<menuItem title="Underline" keyEquivalent="u" id="WRG-CD-K1S">
<connections>
<action selector="underline:" target="Ady-hI-5gd" id="FYS-2b-JAY"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="5gT-KC-WSO"/>
<menuItem title="Bigger" tag="3" keyEquivalent="+" id="Ptp-SP-VEL">
<connections>
<action selector="modifyFont:" target="YLy-65-1bz" id="Uc7-di-UnL"/>
</connections>
</menuItem>
<menuItem title="Smaller" tag="4" keyEquivalent="-" id="i1d-Er-qST">
<connections>
<action selector="modifyFont:" target="YLy-65-1bz" id="HcX-Lf-eNd"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="kx3-Dk-x3B"/>
<menuItem title="Kern" id="jBQ-r6-VK2">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Kern" id="tlD-Oa-oAM">
<items>
<menuItem title="Use Default" id="GUa-eO-cwY">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="useStandardKerning:" target="Ady-hI-5gd" id="6dk-9l-Ckg"/>
</connections>
</menuItem>
<menuItem title="Use None" id="cDB-IK-hbR">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="turnOffKerning:" target="Ady-hI-5gd" id="U8a-gz-Maa"/>
</connections>
</menuItem>
<menuItem title="Tighten" id="46P-cB-AYj">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="tightenKerning:" target="Ady-hI-5gd" id="hr7-Nz-8ro"/>
</connections>
</menuItem>
<menuItem title="Loosen" id="ogc-rX-tC1">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="loosenKerning:" target="Ady-hI-5gd" id="8i4-f9-FKE"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Ligatures" id="o6e-r0-MWq">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Ligatures" id="w0m-vy-SC9">
<items>
<menuItem title="Use Default" id="agt-UL-0e3">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="useStandardLigatures:" target="Ady-hI-5gd" id="7uR-wd-Dx6"/>
</connections>
</menuItem>
<menuItem title="Use None" id="J7y-lM-qPV">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="turnOffLigatures:" target="Ady-hI-5gd" id="iX2-gA-Ilz"/>
</connections>
</menuItem>
<menuItem title="Use All" id="xQD-1f-W4t">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="useAllLigatures:" target="Ady-hI-5gd" id="KcB-kA-TuK"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Baseline" id="OaQ-X3-Vso">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Baseline" id="ijk-EB-dga">
<items>
<menuItem title="Use Default" id="3Om-Ey-2VK">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="unscript:" target="Ady-hI-5gd" id="0vZ-95-Ywn"/>
</connections>
</menuItem>
<menuItem title="Superscript" id="Rqc-34-cIF">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="superscript:" target="Ady-hI-5gd" id="3qV-fo-wpU"/>
</connections>
</menuItem>
<menuItem title="Subscript" id="I0S-gh-46l">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="subscript:" target="Ady-hI-5gd" id="Q6W-4W-IGz"/>
</connections>
</menuItem>
<menuItem title="Raise" id="2h7-ER-AoG">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="raiseBaseline:" target="Ady-hI-5gd" id="4sk-31-7Q9"/>
</connections>
</menuItem>
<menuItem title="Lower" id="1tx-W0-xDw">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="lowerBaseline:" target="Ady-hI-5gd" id="OF1-bc-KW4"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem isSeparatorItem="YES" id="Ndw-q3-faq"/>
<menuItem title="Show Colors" keyEquivalent="C" id="bgn-CT-cEk">
<connections>
<action selector="orderFrontColorPanel:" target="Ady-hI-5gd" id="mSX-Xz-DV3"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="iMs-zA-UFJ"/>
<menuItem title="Copy Style" keyEquivalent="c" id="5Vv-lz-BsD">
<modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
<connections>
<action selector="copyFont:" target="Ady-hI-5gd" id="GJO-xA-L4q"/>
</connections>
</menuItem>
<menuItem title="Paste Style" keyEquivalent="v" id="vKC-jM-MkH">
<modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
<connections>
<action selector="pasteFont:" target="Ady-hI-5gd" id="JfD-CL-leO"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Text" id="Fal-I4-PZk">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Text" id="d9c-me-L2H">
<items>
<menuItem title="Align Left" keyEquivalent="{" id="ZM1-6Q-yy1">
<connections>
<action selector="alignLeft:" target="Ady-hI-5gd" id="zUv-R1-uAa"/>
</connections>
</menuItem>
<menuItem title="Center" keyEquivalent="|" id="VIY-Ag-zcb">
<connections>
<action selector="alignCenter:" target="Ady-hI-5gd" id="spX-mk-kcS"/>
</connections>
</menuItem>
<menuItem title="Justify" id="J5U-5w-g23">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="alignJustified:" target="Ady-hI-5gd" id="ljL-7U-jND"/>
</connections>
</menuItem>
<menuItem title="Align Right" keyEquivalent="}" id="wb2-vD-lq4">
<connections>
<action selector="alignRight:" target="Ady-hI-5gd" id="r48-bG-YeY"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="4s2-GY-VfK"/>
<menuItem title="Writing Direction" id="H1b-Si-o9J">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Writing Direction" id="8mr-sm-Yjd">
<items>
<menuItem title="Paragraph" enabled="NO" id="ZvO-Gk-QUH">
<modifierMask key="keyEquivalentModifierMask"/>
</menuItem>
<menuItem id="YGs-j5-SAR">
<string key="title"> Default</string>
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="makeBaseWritingDirectionNatural:" target="Ady-hI-5gd" id="qtV-5e-UBP"/>
</connections>
</menuItem>
<menuItem id="Lbh-J2-qVU">
<string key="title"> Left to Right</string>
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="makeBaseWritingDirectionLeftToRight:" target="Ady-hI-5gd" id="S0X-9S-QSf"/>
</connections>
</menuItem>
<menuItem id="jFq-tB-4Kx">
<string key="title"> Right to Left</string>
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="makeBaseWritingDirectionRightToLeft:" target="Ady-hI-5gd" id="5fk-qB-AqJ"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="swp-gr-a21"/>
<menuItem title="Selection" enabled="NO" id="cqv-fj-IhA">
<modifierMask key="keyEquivalentModifierMask"/>
</menuItem>
<menuItem id="Nop-cj-93Q">
<string key="title"> Default</string>
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="makeTextWritingDirectionNatural:" target="Ady-hI-5gd" id="lPI-Se-ZHp"/>
</connections>
</menuItem>
<menuItem id="BgM-ve-c93">
<string key="title"> Left to Right</string>
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="makeTextWritingDirectionLeftToRight:" target="Ady-hI-5gd" id="caW-Bv-w94"/>
</connections>
</menuItem>
<menuItem id="RB4-Sm-HuC">
<string key="title"> Right to Left</string>
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="makeTextWritingDirectionRightToLeft:" target="Ady-hI-5gd" id="EXD-6r-ZUu"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem isSeparatorItem="YES" id="fKy-g9-1gm"/>
<menuItem title="Show Ruler" id="vLm-3I-IUL">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleRuler:" target="Ady-hI-5gd" id="FOx-HJ-KwY"/>
</connections>
</menuItem>
<menuItem title="Copy Ruler" keyEquivalent="c" id="MkV-Pr-PK5">
<modifierMask key="keyEquivalentModifierMask" control="YES" command="YES"/>
<connections>
<action selector="copyRuler:" target="Ady-hI-5gd" id="71i-fW-3W2"/>
</connections>
</menuItem>
<menuItem title="Paste Ruler" keyEquivalent="v" id="LVM-kO-fVI">
<modifierMask key="keyEquivalentModifierMask" control="YES" command="YES"/>
<connections>
<action selector="pasteRuler:" target="Ady-hI-5gd" id="cSh-wd-qM2"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="View" id="H8h-7b-M4v">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="View" id="HyV-fh-RgO">
<items>
<menuItem title="Show Toolbar" keyEquivalent="t" id="snW-S8-Cw5">
<modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
<connections>
<action selector="toggleToolbarShown:" target="Ady-hI-5gd" id="BXY-wc-z0C"/>
</connections>
</menuItem>
<menuItem title="Customize Toolbar…" id="1UK-8n-QPP">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="runToolbarCustomizationPalette:" target="Ady-hI-5gd" id="pQI-g3-MTW"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="hB3-LF-h0Y"/>
<menuItem title="Show Sidebar" keyEquivalent="s" id="kIP-vf-haE">
<modifierMask key="keyEquivalentModifierMask" control="YES" command="YES"/>
<connections>
<action selector="toggleSidebar:" target="Ady-hI-5gd" id="iwa-gc-5KM"/>
</connections>
</menuItem>
<menuItem title="Enter Full Screen" keyEquivalent="f" id="4J7-dP-txa">
<modifierMask key="keyEquivalentModifierMask" control="YES" command="YES"/>
<connections>
<action selector="toggleFullScreen:" target="Ady-hI-5gd" id="dU3-MA-1Rq"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Window" id="aUF-d1-5bR">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Window" systemMenu="window" id="Td7-aD-5lo">
<items>
<menuItem title="Minimize" keyEquivalent="m" id="OY7-WF-poV">
<connections>
<action selector="performMiniaturize:" target="Ady-hI-5gd" id="VwT-WD-YPe"/>
</connections>
</menuItem>
<menuItem title="Zoom" id="R4o-n2-Eq4">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="performZoom:" target="Ady-hI-5gd" id="DIl-cC-cCs"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="eu3-7i-yIM"/>
<menuItem title="Bring All to Front" id="LE2-aR-0XJ">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="arrangeInFront:" target="Ady-hI-5gd" id="DRN-fu-gQh"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Help" id="wpr-3q-Mcd">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Help" systemMenu="help" id="F2S-fz-NVQ">
<items>
<menuItem title="Tor_Example_Mac Help" keyEquivalent="?" id="FKE-Sm-Kum">
<connections>
<action selector="showHelp:" target="Ady-hI-5gd" id="y7X-2Q-9no"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
</items>
</menu>
<connections>
<outlet property="delegate" destination="Voe-Tx-rLC" id="PrD-fu-P6m"/>
</connections>
</application>
<customObject id="Voe-Tx-rLC" customClass="AppDelegate"/>
<customObject id="YLy-65-1bz" customClass="NSFontManager"/>
<customObject id="Ady-hI-5gd" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="75" y="0.0"/>
</scene>
<!--Window Controller-->
<scene sceneID="R2V-B0-nI4">
<objects>
<windowController id="B8D-0N-5wS" sceneMemberID="viewController">
<window key="window" title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" animationBehavior="default" id="IQv-IB-iLA">
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
<rect key="contentRect" x="196" y="240" width="480" height="270"/>
<rect key="screenRect" x="0.0" y="0.0" width="1680" height="1027"/>
<connections>
<outlet property="delegate" destination="B8D-0N-5wS" id="98r-iN-zZc"/>
</connections>
</window>
<connections>
<segue destination="XfG-lQ-9wD" kind="relationship" relationship="window.shadowedContentViewController" id="cq2-FE-JQM"/>
</connections>
</windowController>
<customObject id="Oky-zY-oP4" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="75" y="250"/>
</scene>
<!--View Controller-->
<scene sceneID="hIz-AP-VOD">
<objects>
<viewController id="XfG-lQ-9wD" customClass="ViewController" customModule="Tor_Example_Mac" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" id="m2S-Jp-Qdl">
<rect key="frame" x="0.0" y="0.0" width="480" height="270"/>
<autoresizingMask key="autoresizingMask"/>
</view>
</viewController>
<customObject id="rPt-NT-nkU" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="75" y="655"/>
</scene>
</scenes>
</document>
================================================
FILE: Example/Example-Mac/Tor-Example-Mac-Bridging-Header.h
================================================
//
// Use this file to import your target's public headers that you would like to expose to Swift.
//
================================================
FILE: Example/Example-Mac/ViewController.swift
================================================
//
// ViewController.swift
// Tor-Example-Mac
//
// Created by Benjamin Erhart on 28.11.25.
// Copyright © 2025 Benjamin Erhart. All rights reserved.
//
import Cocoa
import WebKit
class ViewController: NSViewController {
private var webView: WKWebView!
override func viewDidLoad() {
super.viewDidLoad()
NotificationCenter.default.addObserver(self, selector: #selector(load), name: .init("tor-ready"), object: nil)
}
@objc
func load(_ notification: Notification) {
let port = notification.object as? UInt16
Task {
await MainActor.run {
let conf = WKWebViewConfiguration()
if #available(iOS 17.0, macOS 14.0, *), let port = port {
let endpoint = NWEndpoint.hostPort(host: .ipv4(.init("127.0.0.1")!), port: .init(integerLiteral: port))
conf.websiteDataStore.proxyConfigurations.removeAll()
conf.websiteDataStore.proxyConfigurations.append(ProxyConfiguration(socksv5Proxy: endpoint))
}
webView = WKWebView(frame: .zero, configuration: conf)
webView.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(webView)
webView.topAnchor.constraint(equalTo: view.topAnchor).isActive = true
webView.bottomAnchor.constraint(equalTo: view.bottomAnchor).isActive = true
webView.leadingAnchor.constraint(equalTo: view.leadingAnchor).isActive = true
webView.trailingAnchor.constraint(equalTo: view.trailingAnchor).isActive = true
webView.load(.init(url: .init(string: "https://check.torproject.org")!))
}
}
}
}
================================================
FILE: Example/Example-Mac/main.m
================================================
//
// main.m
// Tor_Example_Mac
//
// Created by Benjamin Erhart on 13.01.22.
// Copyright © 2022 Benjamin Erhart. All rights reserved.
//
#import <Cocoa/Cocoa.h>
int main(int argc, const char * argv[]) {
@autoreleasepool {
// Setup code that might create autoreleased objects goes here.
}
return NSApplicationMain(argc, argv);
}
================================================
FILE: Example/Podfile
================================================
use_frameworks!
def tor
# pod 'Tor/Arti',
# :path => '../'
# :podspec => '../Arti.podspec'
pod 'Tor/GeoIP', # -NoLZMA',
:path => '../'
end
target 'Tor-Example' do
platform :ios, '15.0'
tor
target 'Tor-Tests' do
inherit! :search_paths
end
end
target 'Tor-Example-Mac' do
platform :macos, '11.0'
tor
end
================================================
FILE: Example/Tests/TORConfigurationTests.m
================================================
//
// TORConfigurationTests.m
// Tor
//
// Created by Conrad Kramer on 8/11/15.
//
#import <XCTest/XCTest.h>
@interface TORConfigurationTests : XCTestCase
@end
@implementation TORConfigurationTests
- (void)setUp {
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
}
- (void)tearDown {
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}
@end
================================================
FILE: Example/Tests/TORControllerTests.m
================================================
//
// Tests.m
// Tests
//
// Created by Conrad Kramer on 8/10/15.
//
#import <XCTest/XCTest.h>
#import <Tor/Tor.h>
@interface TORControllerTests : XCTestCase
@property (nonatomic, strong) TORController *controller;
@property (readonly) NSData *cookie;
@end
@implementation TORControllerTests
+ (TORConfiguration *)configuration {
#if TARGET_IPHONE_SIMULATOR
NSString *homeDirectory = nil;
for (NSString *variable in @[@"IPHONE_SIMULATOR_HOST_HOME", @"SIMULATOR_HOST_HOME"]) {
char *value = getenv(variable.UTF8String);
if (value) {
homeDirectory = @(value);
break;
}
}
#else
NSString *homeDirectory = NSHomeDirectory();
#endif
TORConfiguration *configuration = [TORConfiguration new];
configuration.cookieAuthentication = @YES;
configuration.dataDirectory = [NSURL fileURLWithPath:NSTemporaryDirectory()];
configuration.controlSocket = [[NSURL fileURLWithPath:homeDirectory] URLByAppendingPathComponent:@".Trash/control_port"];
configuration.arguments = @[
@"--ignore-missing-torrc",
@"--GeoIPFile", [NSBundle.mainBundle pathForResource:@"geoip" ofType:nil],
@"--GeoIPv6File", [NSBundle.mainBundle pathForResource:@"geoip6" ofType:nil],
];
return configuration;
}
+ (void)setUp {
[super setUp];
TORThread *thread = [[TORThread alloc] initWithConfiguration:self.configuration];
[thread start];
[[NSRunLoop mainRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.5f]];
}
- (void)setUp {
[super setUp];
self.controller = [[TORController alloc] initWithSocketURL:[[[self class] configuration] controlSocket]];
}
- (void)testCookieAuthenticationFailure {
XCTestExpectation *expectation = [self expectationWithDescription:@"authenticate callback"];
[self.controller authenticateWithData:[@"invalid" dataUsingEncoding:NSUTF8StringEncoding] completion:^(BOOL success, NSError *error) {
XCTAssertFalse(success);
XCTAssertEqualObjects(error.domain, TORControllerErrorDomain);
XCTAssertNotEqual(error.code, TORControlReplyCodeOK);
XCTAssertGreaterThan(error.localizedDescription, @"Authentication failed: Wrong length on authentication cookie.");
[expectation fulfill];
}];
[self waitForExpectationsWithTimeout:1.0f handler:nil];
}
- (void)testCookieAuthenticationSuccess {
XCTestExpectation *expectation = [self expectationWithDescription:@"authenticate callback"];
[self.controller authenticateWithData:self.cookie completion:^(BOOL success, NSError *error) {
XCTAssertTrue(success);
XCTAssertNil(error);
[expectation fulfill];
}];
[self waitForExpectationsWithTimeout:1.0f handler:nil];
}
- (void)testSessionConfiguration {
XCTestExpectation *expectation = [self expectationWithDescription:@"tor callback"];
[self exec:^{
[self.controller getSessionConfiguration:^(NSURLSessionConfiguration *configuration) {
NSURLSession *session = [NSURLSession sessionWithConfiguration:configuration];
[[session dataTaskWithURL:[NSURL URLWithString:@"https://facebookcorewwwi.onion/"] completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
XCTAssertEqual([(NSHTTPURLResponse *)response statusCode], 200);
XCTAssertNil(error);
[expectation fulfill];
}] resume];
}];
}];
[self waitForExpectationsWithTimeout:120.0f handler:nil];
}
- (void)testGetAndCloseCircuits
{
XCTestExpectation *expectation = [self expectationWithDescription:@"resolution callback"];
[self exec:^{
[self.controller getCircuits:^(NSArray<TORCircuit *> * _Nonnull circuits) {
NSLog(@"circuits=%@", circuits);
for (TORCircuit *circuit in circuits)
{
for (TORNode *node in circuit.nodes) {
XCTAssert(node.fingerprint.length > 0, @"A circuit should have a fingerprint.");
XCTAssert(node.ipv4Address.length > 0 || node.ipv6Address.length > 0, @"A circuit should have an IPv4 or IPv6 address.");
}
}
[self.controller closeCircuits:circuits completion:^(BOOL success) {
XCTAssertTrue(success, @"Circuits were closed successfully.");
[expectation fulfill];
}];
}];
}];
[self waitForExpectationsWithTimeout:120 handler:nil];
}
- (void)testReset
{
XCTestExpectation *expectation = [self expectationWithDescription:@"reset callback"];
[self exec:^{
[self.controller resetConnection:^(BOOL success) {
NSLog(@"success=%d", success);
XCTAssertTrue(success, @"Reset should work correctly.");
[expectation fulfill];
}];
}];
[self waitForExpectationsWithTimeout:120 handler:nil];
}
// MARK: Helper Properties and Methods
- (NSData *)cookie
{
return [NSData dataWithContentsOfURL:
[[self.class configuration].dataDirectory
URLByAppendingPathComponent:@"control_auth_cookie"]];
}
- (void)exec:(void (^)(void))callback
{
TORController *controller = self.controller;
[controller authenticateWithData:self.cookie completion:^(BOOL success, NSError * _Nullable error) {
XCTAssertTrue(success);
XCTAssertNil(error);
[controller addObserverForCircuitEstablished:^(BOOL established) {
// May be called multiple times. We wait until circuit is established.
if (!established)
{
return;
}
callback();
}];
}];
}
@end
================================================
FILE: Example/Tests/Tests-Info.plist
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
================================================
FILE: Example/Tests/Tests-Prefix.pch
================================================
// The contents of this file are implicitly included at the beginning of every test case source file.
#ifdef __OBJC__
#endif
================================================
FILE: Example/Tor/AppDelegate.h
================================================
//
// AppDelegate.h
// Tor
//
// Created by Benjamin Erhart on 01/13/2022.
// Copyright (c) 2022 Benjamin Erhart. All rights reserved.
//
@import UIKit;
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
================================================
FILE: Example/Tor/AppDelegate.m
================================================
//
// AppDelegate.m
// Tor
//
// Created by Benjamin Erhart on 01/13/2022.
// Copyright (c) 2022 Benjamin Erhart. All rights reserved.
//
#import "AppDelegate.h"
#import <Tor/NSBundle+GeoIP.h>
#import <Tor/TORConfiguration.h>
#import <Tor/TORController.h>
#ifdef USE_ARTI
#import <Tor/TORArti.h>
#else
#ifdef USE_ONIONMASQ
#import <Tor/Onionmasq.h>
#else
#import <Tor/TORThread.h>
#endif
#endif
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
NSFileManager *fm = NSFileManager.defaultManager;
NSURL *docDir = [fm URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask].firstObject;
TORConfiguration *configuration = [TORConfiguration new];
configuration.ignoreMissingTorrc = YES;
configuration.avoidDiskWrites = YES;
configuration.clientOnly = YES;
configuration.cookieAuthentication = YES;
configuration.autoControlPort = YES;
configuration.dataDirectory = [docDir URLByAppendingPathComponent:@"tor"];
configuration.geoipFile = NSBundle.geoIpBundle.geoipFile;
configuration.geoip6File = NSBundle.geoIpBundle.geoip6File;
NSURL *cacheDir = [fm URLsForDirectory:NSCachesDirectory inDomains:NSUserDomainMask].firstObject;
#ifdef USE_ARTI
configuration.socksPort = 9150;
configuration.dnsPort = 1951;
configuration.dataDirectory = [docDir URLByAppendingPathComponent:@"org.torproject.Arti"];
configuration.logfile = [docDir URLByAppendingPathComponent:@"arti.log"];
configuration.cacheDirectory = [cacheDir URLByAppendingPathComponent:@"org.torproject.Arti"];
NSLog(@"Configuration:\n%@", [configuration compile]);
[TORArti startWithConfiguration:configuration completed:^{
NSLog(@"established");
[NSNotificationCenter.defaultCenter
postNotificationName:@"tor-ready"
object:[[NSNumber alloc] initWithUnsignedInteger:configuration.socksPort]];
}];
#else
#ifdef USE_ONIONMASQ
[Onionmasq startWithReader:^{
NSLog(@"[Read]");
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
[Onionmasq receive:@[]];
});
}
writer:^_Bool(NSData * _Nonnull packet, NSNumber * _Nonnull version) {
NSLog(@"[Write] version=%@, packet=%@", version, packet);
return false;
}
stateDir:docDir
cacheDir:cacheDir
pcapFile:nil
onEvent:^(id event) {
NSLog(@"[Event] %@", event);
}
onLog:^(NSString * _Nonnull message) {
NSLog(@"[Log] %@", message);
}];
#else
TORThread *thread = [[TORThread alloc] initWithConfiguration:configuration];
[thread start];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 1 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
NSData *cookie = configuration.cookie;
TORController *controller = [[TORController alloc] initWithControlPortFile:configuration.controlPortFile];
[controller authenticateWithData:cookie completion:^(BOOL success, NSError *error) {
__weak TORController *c = controller;
NSLog(@"authenticated success=%d", success);
if (!success)
{
return;
}
[c addObserverForCircuitEstablished:^(BOOL established) {
NSLog(@"established=%d", established);
if (!established)
{
return;
}
CFTimeInterval startTime = CACurrentMediaTime();
[c getInfoForKeys:@[@"net/listeners/socks"] completion:^(NSArray<NSString *> * _Nonnull values) {
if (values.count > 0) {
NSArray<NSString *> *parts = [values[0] componentsSeparatedByString:@":"];
if (parts.count > 1) {
dispatch_async(dispatch_get_main_queue(), ^{
[NSNotificationCenter.defaultCenter
postNotificationName:@"tor-ready"
object:[[NSNumber alloc] initWithInteger:parts[1].integerValue]];
});
}
}
[c getCircuits:^(NSArray<TORCircuit *> * _Nonnull circuits) {
NSLog(@"Circuits: %@", circuits);
NSLog(@"Elapsed Time: %f", CACurrentMediaTime() - startTime);
}];
}];
// [c getInfoForKeys:@[@"ns/all"] completion:^(NSArray<NSString *> * _Nonnull values) {
// NSLog(@"Line count: %lu", values.count);
// NSLog(@"Elapsed Time: %f", CACurrentMediaTime() - startTime);
//
//
// NSArray<TORNode *> *exitNodes = [TORNode parseFromNsString:values.firstObject exitOnly:YES];
//
// NSLog(@"#Exit Nodes: %lu", exitNodes.count);
// NSLog(@"Elapsed Time: %f", CACurrentMediaTime() - startTime);
//
// [c resolveCountriesOfNodes:exitNodes testCapabilities:NO completion:^{
// for (TORNode *node in exitNodes) {
// NSLog(@"Node: %@", node);
// }
//
// NSLog(@"Elapsed Time: %f", CACurrentMediaTime() - startTime);
// }];
// }];
}];
}];
});
#endif
#endif
return YES;
}
- (void)applicationWillResignActive:(UIApplication *)application
{
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}
- (void)applicationDidEnterBackground:(UIApplication *)application
{
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
- (void)applicationWillEnterForeground:(UIApplication *)application
{
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}
- (void)applicationDidBecomeActive:(UIApplication *)application
{
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
- (void)applicationWillTerminate:(UIApplication *)application
{
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
@end
================================================
FILE: Example/Tor/Base.lproj/Main.storyboard
================================================
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="24412" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="whP-gf-Uak">
<device id="retina5_9" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="24405"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="wQg-tq-qST">
<objects>
<viewController id="whP-gf-Uak" customClass="ViewController" customModule="Tor_Example" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="TpU-gO-2f1">
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<viewLayoutGuide key="safeArea" id="M7B-1c-7bb"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="tc2-Qw-aMS" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="305" y="433"/>
</scene>
</scenes>
<resources>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
================================================
FILE: Example/Tor/Launch Screen.storyboard
================================================
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13142" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12042"/>
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="EHf-IW-A2E">
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Copyright © 2025 Benjamin Erhart. All rights reserved." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="obG-Y5-kRd">
<rect key="frame" x="0.0" y="626.5" width="375" height="20.5"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Tor-Example" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="GJd-Yh-RWb">
<rect key="frame" x="0.0" y="202" width="375" height="43"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="Bcu-3y-fUS" firstAttribute="centerX" secondItem="obG-Y5-kRd" secondAttribute="centerX" id="5cz-MP-9tL"/>
<constraint firstItem="Bcu-3y-fUS" firstAttribute="centerX" secondItem="GJd-Yh-RWb" secondAttribute="centerX" id="Q3B-4B-g5h"/>
<constraint firstItem="obG-Y5-kRd" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" constant="20" symbolic="YES" id="SfN-ll-jLj"/>
<constraint firstAttribute="bottom" secondItem="obG-Y5-kRd" secondAttribute="bottom" constant="20" id="Y44-ml-fuU"/>
<constraint firstItem="GJd-Yh-RWb" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="bottom" multiplier="1/3" constant="1" id="moa-c2-u7t"/>
<constraint firstItem="GJd-Yh-RWb" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" constant="20" symbolic="YES" id="x7j-FC-K8j"/>
</constraints>
<viewLayoutGuide key="safeArea" id="Bcu-3y-fUS"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
</scene>
</scenes>
</document>
================================================
FILE: Example/Tor/Tor-Example-Bridging-Header.h
================================================
//
// Use this file to import your target's public headers that you would like to expose to Swift.
//
================================================
FILE: Example/Tor/Tor-Info.plist
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSApplicationCategoryType</key>
<string></string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
<false/>
<key>UISceneConfigurations</key>
<dict/>
</dict>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UILaunchStoryboardName</key>
<string>Launch Screen</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>
================================================
FILE: Example/Tor/Tor-Prefix.pch
================================================
//
// Prefix header
//
// The contents of this file are implicitly included at the beginning of every source file.
//
#import <Availability.h>
#ifndef __IPHONE_5_0
#warning "This project uses features only available in iOS SDK 5.0 and later."
#endif
#ifdef __OBJC__
@import UIKit;
@import Foundation;
#endif
================================================
FILE: Example/Tor/ViewController.swift
================================================
//
// ViewController.swift
// Tor-Example
//
// Created by Benjamin Erhart on 01.12.25.
// Copyright © 2025 Benjamin Erhart. All rights reserved.
//
import UIKit
import WebKit
class ViewController: UIViewController {
private var webView: WKWebView!
override func viewDidLoad() {
super.viewDidLoad()
NotificationCenter.default.addObserver(self, selector: #selector(load), name: .init("tor-ready"), object: nil)
}
@objc
func load(_ notification: Notification) {
let port = notification.object as? UInt16
Task {
await MainActor.run {
let conf = WKWebViewConfiguration()
if #available(iOS 17.0, macOS 14.0, *), let port = port {
let endpoint = NWEndpoint.hostPort(host: .ipv4(.init("127.0.0.1")!), port: .init(integerLiteral: port))
conf.websiteDataStore.proxyConfigurations.removeAll()
conf.websiteDataStore.proxyConfigurations.append(ProxyConfiguration(socksv5Proxy: endpoint))
}
webView = WKWebView(frame: .zero, configuration: conf)
webView.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(webView)
webView.topAnchor.constraint(equalTo: view.topAnchor).isActive = true
webView.bottomAnchor.constraint(equalTo: view.bottomAnchor).isActive = true
webView.leadingAnchor.constraint(equalTo: view.leadingAnchor).isActive = true
webView.trailingAnchor.constraint(equalTo: view.trailingAnchor).isActive = true
webView.load(.init(url: .init(string: "https://check.torproject.org")!))
}
}
}
}
================================================
FILE: Example/Tor/main.m
================================================
//
// main.m
// Tor
//
// Created by Benjamin Erhart on 01/10/2022.
// Copyright (c) 2022 Benjamin Erhart. All rights reserved.
//
@import UIKit;
#import "AppDelegate.h"
int main(int argc, char * argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
================================================
FILE: Example/Tor.xcodeproj/project.pbxproj
================================================
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 77;
objects = {
/* Begin PBXBuildFile section */
0314CBC366B59AACC3BD77D9 /* Pods_Tor_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B3520587D654F10671E7745 /* Pods_Tor_Tests.framework */; };
2A7611A3AF4442FB65EAC417 /* Pods_Tor_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 01163AA30AD557595178CC35 /* Pods_Tor_Example.framework */; };
6003F58E195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; };
6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58F195388D20070C39A /* CoreGraphics.framework */; };
6003F592195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; };
6003F59E195388D20070C39A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F59D195388D20070C39A /* AppDelegate.m */; };
6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F5AF195388D20070C39A /* XCTest.framework */; };
6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; };
6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; };
7913583D7355D84D17A5203C /* Pods_Tor_Example_Mac.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4BEC16FF0E4EF90AB4524CF2 /* Pods_Tor_Example_Mac.framework */; };
873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */; };
A057DD272ED9F2800044B431 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A057DD262ED9F2800044B431 /* ViewController.swift */; };
A057DDA52EDDE7800044B431 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A057DDA42EDDE7800044B431 /* ViewController.swift */; };
A057DDA72EDDEEC80044B431 /* Launch Screen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A057DDA62EDDEEC80044B431 /* Launch Screen.storyboard */; };
A0F008FC27906DBA0073D36D /* TORConfigurationTests.m in Sources */ = {isa = PBXBuildFile; fileRef = A0F008FA27906DBA0073D36D /* TORConfigurationTests.m */; };
A0F008FD27906DBA0073D36D /* TORControllerTests.m in Sources */ = {isa = PBXBuildFile; fileRef = A0F008FB27906DBA0073D36D /* TORControllerTests.m */; };
A0F0090D279070B40073D36D /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = A0F0090C279070B40073D36D /* AppDelegate.m */; };
A0F00915279070B40073D36D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A0F00913279070B40073D36D /* Main.storyboard */; };
A0F00917279070B40073D36D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = A0F00916279070B40073D36D /* main.m */; };
A0F0091D279072D60073D36D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = A0F0091C279072D60073D36D /* main.m */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
6003F5B3195388D20070C39A /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 6003F582195388D10070C39A /* Project object */;
proxyType = 1;
remoteGlobalIDString = 6003F589195388D20070C39A;
remoteInfo = Tor;
};
A009806F2F165ECB00FE3A57 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = A009E83F2F1653D800FE3A57 /* ios.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = 376EC1C52794D174000D74A9;
remoteInfo = ios;
};
A04C21312EE0736C00A8AFFA /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = A04C1E332EE0736B00A8AFFA /* ios.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = 376EC1C52794D174000D74A9;
remoteInfo = ios;
};
A04CF0EE2EE0632200A8AFFA /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = A04CEDDB2EE0632200A8AFFA /* ios.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = 376EC1C52794D174000D74A9;
remoteInfo = ios;
};
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
01163AA30AD557595178CC35 /* Pods_Tor_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Tor_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };
0B3520587D654F10671E7745 /* Pods_Tor_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Tor_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
1D7391AAD3752903BDA8A2CC /* Pods-Tor_Example_Mac.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tor_Example_Mac.debug.xcconfig"; path = "Target Support Files/Pods-Tor_Example_Mac/Pods-Tor_Example_Mac.debug.xcconfig"; sourceTree = "<group>"; };
3369E201AA8D44290EFDB264 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = "<group>"; };
4BD4F2E4E0599631250E97FC /* Pods-Tor_Example_Mac.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tor_Example_Mac.release.xcconfig"; path = "Target Support Files/Pods-Tor_Example_Mac/Pods-Tor_Example_Mac.release.xcconfig"; sourceTree = "<group>"; };
4BEC16FF0E4EF90AB4524CF2 /* Pods_Tor_Example_Mac.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Tor_Example_Mac.framework; sourceTree = BUILT_PRODUCTS_DIR; };
4DFC6FCDC4F8056024E28F5B /* Pods-Tor-Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tor-Tests.release.xcconfig"; path = "Target Support Files/Pods-Tor-Tests/Pods-Tor-Tests.release.xcconfig"; sourceTree = "<group>"; };
4F31AB271AA16E836CDC5F8D /* Pods-Tor-Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tor-Example.debug.xcconfig"; path = "Target Support Files/Pods-Tor-Example/Pods-Tor-Example.debug.xcconfig"; sourceTree = "<group>"; };
591053441A46E47D764CDDAB /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = "<group>"; };
6003F58A195388D20070C39A /* Tor-Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Tor-Example.app"; sourceTree = BUILT_PRODUCTS_DIR; };
6003F58D195388D20070C39A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
6003F58F195388D20070C39A /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
6003F591195388D20070C39A /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
6003F595195388D20070C39A /* Tor-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Tor-Info.plist"; sourceTree = "<group>"; };
6003F59C195388D20070C39A /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
6003F59D195388D20070C39A /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
6003F5AE195388D20070C39A /* Tor-Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Tor-Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
6003F5AF195388D20070C39A /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
6003F5B7195388D20070C39A /* Tests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Tests-Info.plist"; sourceTree = "<group>"; };
606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Prefix.pch"; sourceTree = "<group>"; };
6CF2DE60BF09B91BB81D2E6F /* Pods-Tor_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tor_Example.release.xcconfig"; path = "Target Support Files/Pods-Tor_Example/Pods-Tor_Example.release.xcconfig"; sourceTree = "<group>"; };
74CA0FB740D38C49003C1E1A /* Pods-Tor-Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tor-Example.release.xcconfig"; path = "Target Support Files/Pods-Tor-Example/Pods-Tor-Example.release.xcconfig"; sourceTree = "<group>"; };
80D47871C3901193EE623A3E /* Pods-Tor_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tor_Tests.debug.xcconfig"; path = "Target Support Files/Pods-Tor_Tests/Pods-Tor_Tests.debug.xcconfig"; sourceTree = "<group>"; };
873B8AEA1B1F5CCA007FD442 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = Main.storyboard; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
8AA26438ED97EA21E1B6572D /* Pods-Tor-Example-Mac.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tor-Example-Mac.release.xcconfig"; path = "Target Support Files/Pods-Tor-Example-Mac/Pods-Tor-Example-Mac.release.xcconfig"; sourceTree = "<group>"; };
90700F7B59D5C0641E3250C1 /* Pods-Tor_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tor_Example.debug.xcconfig"; path = "Target Support Files/Pods-Tor_Example/Pods-Tor_Example.debug.xcconfig"; sourceTree = "<group>"; };
93A4EA262BB0B20934ED644E /* Tor.podspec */ = {isa = PBXFileReference; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; name = Tor.podspec; path = ../Tor.podspec; sourceTree = "<group>"; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
A009E83F2F1653D800FE3A57 /* ios.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; path = ios.xcodeproj; sourceTree = "<group>"; };
A0463DB82AA0DB0700AC9925 /* onionmasq.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; name = onionmasq.sh; path = ../Tor/onionmasq.sh; sourceTree = "<group>"; };
A04C1E332EE0736B00A8AFFA /* ios.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; path = ios.xcodeproj; sourceTree = "<group>"; };
A04CEDDB2EE0632200A8AFFA /* ios.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; path = ios.xcodeproj; sourceTree = "<group>"; };
A057DD252ED9F2800044B431 /* Tor-Example-Mac-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tor-Example-Mac-Bridging-Header.h"; sourceTree = "<group>"; };
A057DD262ED9F2800044B431 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
A057DDA32EDDE7800044B431 /* Tor-Example-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tor-Example-Bridging-Header.h"; sourceTree = "<group>"; };
A057DDA42EDDE7800044B431 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
A057DDA62EDDEEC80044B431 /* Launch Screen.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = "Launch Screen.storyboard"; sourceTree = "<group>"; };
A05D84CE2E180D4200D15D76 /* download.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; name = download.sh; path = ../Tor/download.sh; sourceTree = SOURCE_ROOT; };
A07DA5B42791AED000D62827 /* .gitmodules */ = {isa = PBXFileReference; lastKnownFileType = text; name = .gitmodules; path = ../.gitmodules; sourceTree = "<group>"; };
A0912FD12DEE026600071F53 /* Brewfile */ = {isa = PBXFileReference; lastKnownFileType = text; name = Brewfile; path = ../Brewfile; sourceTree = SOURCE_ROOT; };
A091B5002DEDF93000071F53 /* build-xcframework.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; name = "build-xcframework.sh"; path = "../build-xcframework.sh"; sourceTree = SOURCE_ROOT; };
A0C582562AE8FCA000A81084 /* Arti.podspec */ = {isa = PBXFileReference; indentWidth = 2; lastKnownFileType = text; name = Arti.podspec; path = ../Arti.podspec; sourceTree = "<group>"; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
A0C981E32A9F52D100E265EE /* mmap-cache.patch */ = {isa = PBXFileReference; lastKnownFileType = text; name = "mmap-cache.patch"; path = "../Tor/mmap-cache.patch"; sourceTree = "<group>"; };
A0F008F727906CA30073D36D /* Podfile.lock */ = {isa = PBXFileReference; lastKnownFileType = text; path = Podfile.lock; sourceTree = "<group>"; };
A0F008F827906CA30073D36D /* Podfile */ = {isa = PBXFileReference; indentWidth = 2; lastKnownFileType = text; path = Podfile; sourceTree = "<group>"; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
A0F008FA27906DBA0073D36D /* TORConfigurationTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TORConfigurationTests.m; sourceTree = "<group>"; };
A0F008FB27906DBA0073D36D /* TORControllerTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TORControllerTests.m; sourceTree = "<group>"; };
A0F008FE27906F620073D36D /* .gitignore */ = {isa = PBXFileReference; lastKnownFileType = text; name = .gitignore; path = ../.gitignore; sourceTree = "<group>"; };
A0F00909279070B40073D36D /* Tor-Example-Mac.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Tor-Example-Mac.app"; sourceTree = BUILT_PRODUCTS_DIR; };
A0F0090B279070B40073D36D /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
A0F0090C279070B40073D36D /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
A0F00916279070B40073D36D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
A0F0091C279072D60073D36D /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
A0F0091E279073DA0073D36D /* Tor-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tor-Prefix.pch"; sourceTree = "<group>"; };
A0F0092027907A8A0073D36D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
C2C4B3C67BC4AA29D918DFE0 /* Pods-Tor-Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tor-Tests.debug.xcconfig"; path = "Target Support Files/Pods-Tor-Tests/Pods-Tor-Tests.debug.xcconfig"; sourceTree = "<group>"; };
CCD44E911F9C4625A303B626 /* Pods-Tor-Example-Mac.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tor-Example-Mac.debug.xcconfig"; path = "Target Support Files/Pods-Tor-Example-Mac/Pods-Tor-Example-Mac.debug.xcconfig"; sourceTree = "<group>"; };
FF35A366A1B1BD8B0C89AE24 /* Pods-Tor_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tor_Tests.release.xcconfig"; path = "Target Support Files/Pods-Tor_Tests/Pods-Tor_Tests.release.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
6003F587195388D20070C39A /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */,
6003F592195388D20070C39A /* UIKit.framework in Frameworks */,
6003F58E195388D20070C39A /* Foundation.framework in Frameworks */,
2A7611A3AF4442FB65EAC417 /* Pods_Tor_Example.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
6003F5AB195388D20070C39A /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */,
6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */,
6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */,
0314CBC366B59AACC3BD77D9 /* Pods_Tor_Tests.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
A0F00906279070B40073D36D /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
7913583D7355D84D17A5203C /* Pods_Tor_Example_Mac.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
6003F581195388D10070C39A = {
isa = PBXGroup;
children = (
60FF7A9C1954A5C5007DD14C /* Podspec Metadata */,
6003F593195388D20070C39A /* Example for Tor */,
6003F5B5195388D20070C39A /* Tests */,
A0F0090A279070B40073D36D /* Example-Mac */,
6003F58C195388D20070C39A /* Frameworks */,
6003F58B195388D20070C39A /* Products */,
8C50D6DACFD9A136564A1BEC /* Pods */,
);
sourceTree = "<group>";
};
6003F58B195388D20070C39A /* Products */ = {
isa = PBXGroup;
children = (
6003F58A195388D20070C39A /* Tor-Example.app */,
6003F5AE195388D20070C39A /* Tor-Tests.xctest */,
A0F00909279070B40073D36D /* Tor-Example-Mac.app */,
);
name = Products;
sourceTree = "<group>";
};
6003F58C195388D20070C39A /* Frameworks */ = {
isa = PBXGroup;
children = (
6003F58D195388D20070C39A /* Foundation.framework */,
6003F58F195388D20070C39A /* CoreGraphics.framework */,
6003F591195388D20070C39A /* UIKit.framework */,
6003F5AF195388D20070C39A /* XCTest.framework */,
4BEC16FF0E4EF90AB4524CF2 /* Pods_Tor_Example_Mac.framework */,
01163AA30AD557595178CC35 /* Pods_Tor_Example.framework */,
0B3520587D654F10671E7745 /* Pods_Tor_Tests.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
6003F593195388D20070C39A /* Example for Tor */ = {
isa = PBXGroup;
children = (
6003F59C195388D20070C39A /* AppDelegate.h */,
6003F59D195388D20070C39A /* AppDelegate.m */,
873B8AEA1B1F5CCA007FD442 /* Main.storyboard */,
A0F0091C279072D60073D36D /* main.m */,
6003F595195388D20070C39A /* Tor-Info.plist */,
A0F0091E279073DA0073D36D /* Tor-Prefix.pch */,
A057DDA42EDDE7800044B431 /* ViewController.swift */,
A057DDA32EDDE7800044B431 /* Tor-Example-Bridging-Header.h */,
A057DDA62EDDEEC80044B431 /* Launch Screen.storyboard */,
);
name = "Example for Tor";
path = Tor;
sourceTree = "<group>";
};
6003F5B5195388D20070C39A /* Tests */ = {
isa = PBXGroup;
children = (
A0F008FA27906DBA0073D36D /* TORConfigurationTests.m */,
A0F008FB27906DBA0073D36D /* TORControllerTests.m */,
6003F5B7195388D20070C39A /* Tests-Info.plist */,
606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */,
);
path = Tests;
sourceTree = "<group>";
};
60FF7A9C1954A5C5007DD14C /* Podspec Metadata */ = {
isa = PBXGroup;
children = (
A0912FD12DEE026600071F53 /* Brewfile */,
93A4EA262BB0B20934ED644E /* Tor.podspec */,
A0C582562AE8FCA000A81084 /* Arti.podspec */,
3369E201AA8D44290EFDB264 /* README.md */,
591053441A46E47D764CDDAB /* LICENSE */,
A0F008F827906CA30073D36D /* Podfile */,
A0F008F727906CA30073D36D /* Podfile.lock */,
A0F008FE27906F620073D36D /* .gitignore */,
A07DA5B42791AED000D62827 /* .gitmodules */,
A05D84CE2E180D4200D15D76 /* download.sh */,
A0463DB82AA0DB0700AC9925 /* onionmasq.sh */,
A0C981E32A9F52D100E265EE /* mmap-cache.patch */,
A091B5002DEDF93000071F53 /* build-xcframework.sh */,
);
name = "Podspec Metadata";
sourceTree = "<group>";
};
8C50D6DACFD9A136564A1BEC /* Pods */ = {
isa = PBXGroup;
children = (
90700F7B59D5C0641E3250C1 /* Pods-Tor_Example.debug.xcconfig */,
6CF2DE60BF09B91BB81D2E6F /* Pods-Tor_Example.release.xcconfig */,
80D47871C3901193EE623A3E /* Pods-Tor_Tests.debug.xcconfig */,
FF35A366A1B1BD8B0C89AE24 /* Pods-Tor_Tests.release.xcconfig */,
1D7391AAD3752903BDA8A2CC /* Pods-Tor_Example_Mac.debug.xcconfig */,
4BD4F2E4E0599631250E97FC /* Pods-Tor_Example_Mac.release.xcconfig */,
CCD44E911F9C4625A303B626 /* Pods-Tor-Example-Mac.debug.xcconfig */,
8AA26438ED97EA21E1B6572D /* Pods-Tor-Example-Mac.release.xcconfig */,
4F31AB271AA16E836CDC5F8D /* Pods-Tor-Example.debug.xcconfig */,
74CA0FB740D38C49003C1E1A /* Pods-Tor-Example.release.xcconfig */,
C2C4B3C67BC4AA29D918DFE0 /* Pods-Tor-Tests.debug.xcconfig */,
4DFC6FCDC4F8056024E28F5B /* Pods-Tor-Tests.release.xcconfig */,
);
path = Pods;
sourceTree = "<group>";
};
A009806C2F1653D900FE3A57 /* Products */ = {
isa = PBXGroup;
children = (
A00980702F165ECB00FE3A57 /* ios.app */,
);
name = Products;
sourceTree = "<group>";
};
A04C1E392EE0736B00A8AFFA /* Products */ = {
isa = PBXGroup;
children = (
A04C21322EE0736C00A8AFFA /* ios.app */,
);
name = Products;
sourceTree = "<group>";
};
A04CEDE12EE0632200A8AFFA /* Products */ = {
isa = PBXGroup;
children = (
A04CF0EF2EE0632200A8AFFA /* ios.app */,
);
name = Products;
sourceTree = "<group>";
};
A0F0090A279070B40073D36D /* Example-Mac */ = {
isa = PBXGroup;
children = (
A0F0090B279070B40073D36D /* AppDelegate.h */,
A0F0090C279070B40073D36D /* AppDelegate.m */,
A0F00913279070B40073D36D /* Main.storyboard */,
A0F00916279070B40073D36D /* main.m */,
A057DD262ED9F2800044B431 /* ViewController.swift */,
A057DD252ED9F2800044B431 /* Tor-Example-Mac-Bridging-Header.h */,
);
path = "Example-Mac";
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
6003F589195388D20070C39A /* Tor-Example */ = {
isa = PBXNativeTarget;
buildConfigurationList = 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "Tor-Example" */;
buildPhases = (
92C23A76A3C3CB7B0EE26734 /* [CP] Check Pods Manifest.lock */,
6003F586195388D20070C39A /* Sources */,
6003F587195388D20070C39A /* Frameworks */,
6003F588195388D20070C39A /* Resources */,
90B5FFAA88FED781C1B58A99 /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
dependencies = (
);
name = "Tor-Example";
productName = Tor;
productReference = 6003F58A195388D20070C39A /* Tor-Example.app */;
productType = "com.apple.product-type.application";
};
6003F5AD195388D20070C39A /* Tor-Tests */ = {
isa = PBXNativeTarget;
buildConfigurationList = 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "Tor-Tests" */;
buildPhases = (
90D8C2DC582D8E6FC6716412 /* [CP] Check Pods Manifest.lock */,
6003F5AA195388D20070C39A /* Sources */,
6003F5AB195388D20070C39A /* Frameworks */,
6003F5AC195388D20070C39A /* Resources */,
);
buildRules = (
);
dependencies = (
6003F5B4195388D20070C39A /* PBXTargetDependency */,
);
name = "Tor-Tests";
productName = TorTests;
productReference = 6003F5AE195388D20070C39A /* Tor-Tests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
A0F00908279070B40073D36D /* Tor-Example-Mac */ = {
isa = PBXNativeTarget;
buildConfigurationList = A0F00919279070B40073D36D /* Build configuration list for PBXNativeTarget "Tor-Example-Mac" */;
buildPhases = (
9A118950F57DB5601BC45C3C /* [CP] Check Pods Manifest.lock */,
A0F00905279070B40073D36D /* Sources */,
A0F00906279070B40073D36D /* Frameworks */,
A0F00907279070B40073D36D /* Resources */,
C24010A627399EEA7C17DDED /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
dependencies = (
);
name = "Tor-Example-Mac";
productName = Tor_Example_Mac;
productReference = A0F00909279070B40073D36D /* Tor-Example-Mac.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
6003F582195388D10070C39A /* Project object */ = {
isa = PBXProject;
attributes = {
BuildIndependentTargetsInParallel = YES;
CLASSPREFIX = TOR;
LastUpgradeCheck = 2640;
ORGANIZATIONNAME = "Benjamin Erhart";
TargetAttributes = {
6003F589195388D20070C39A = {
LastSwiftMigration = 2610;
};
6003F5AD195388D20070C39A = {
TestTargetID = 6003F589195388D20070C39A;
};
A0F00908279070B40073D36D = {
CreatedOnToolsVersion = 13.2.1;
LastSwiftMigration = 2610;
ProvisioningStyle = Automatic;
};
};
};
buildConfigurationList = 6003F585195388D10070C39A /* Build configuration list for PBXProject "Tor" */;
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 6003F581195388D10070C39A;
preferredProjectObjectVersion = 77;
productRefGroup = 6003F58B195388D20070C39A /* Products */;
projectDirPath = "";
projectReferences = (
{
ProductGroup = A009806C2F1653D900FE3A57 /* Products */;
ProjectRef = A009E83F2F1653D800FE3A57 /* ios.xcodeproj */;
},
{
ProductGroup = A04C1E392EE0736B00A8AFFA /* Products */;
ProjectRef = A04C1E332EE0736B00A8AFFA /* ios.xcodeproj */;
},
{
ProductGroup = A04CEDE12EE0632200A8AFFA /* Products */;
ProjectRef = A04CEDDB2EE0632200A8AFFA /* ios.xcodeproj */;
},
);
projectRoot = "";
targets = (
6003F589195388D20070C39A /* Tor-Example */,
6003F5AD195388D20070C39A /* Tor-Tests */,
A0F00908279070B40073D36D /* Tor-Example-Mac */,
);
};
/* End PBXProject section */
/* Begin PBXReferenceProxy section */
A00980702F165ECB00FE3A57 /* ios.app */ = {
isa = PBXReferenceProxy;
fileType = wrapper.application;
path = ios.app;
remoteRef = A009806F2F165ECB00FE3A57 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
A04C21322EE0736C00A8AFFA /* ios.app */ = {
isa = PBXReferenceProxy;
fileType = wrapper.application;
path = ios.app;
remoteRef = A04C21312EE0736C00A8AFFA /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
A04CF0EF2EE0632200A8AFFA /* ios.app */ = {
isa = PBXReferenceProxy;
fileType = wrapper.application;
path = ios.app;
remoteRef = A04CF0EE2EE0632200A8AFFA /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
/* End PBXReferenceProxy section */
/* Begin PBXResourcesBuildPhase section */
6003F588195388D20070C39A /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
A057DDA72EDDEEC80044B431 /* Launch Screen.storyboard in Resources */,
873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
6003F5AC195388D20070C39A /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
A0F00907279070B40073D36D /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
A0F00915279070B40073D36D /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
90B5FFAA88FED781C1B58A99 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Tor-Example/Pods-Tor-Example-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
inputPaths = (
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Tor-Example/Pods-Tor-Example-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Tor-Example/Pods-Tor-Example-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
90D8C2DC582D8E6FC6716412 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-Tor-Tests-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
92C23A76A3C3CB7B0EE26734 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-Tor-Example-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
9A118950F57DB5601BC45C3C /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-Tor-Example-Mac-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
C24010A627399EEA7C17DDED /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Tor-Example-Mac/Pods-Tor-Example-Mac-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
inputPaths = (
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Tor-Example-Mac/Pods-Tor-Example-Mac-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Tor-Example-Mac/Pods-Tor-Example-Mac-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
6003F586195388D20070C39A /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
A057DDA52EDDE7800044B431 /* ViewController.swift in Sources */,
6003F59E195388D20070C39A /* AppDelegate.m in Sources */,
A0F0091D279072D60073D36D /* main.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
6003F5AA195388D20070C39A /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
A0F008FC27906DBA0073D36D /* TORConfigurationTests.m in Sources */,
A0F008FD27906DBA0073D36D /* TORControllerTests.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
A0F00905279070B40073D36D /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
A057DD272ED9F2800044B431 /* ViewController.swift in Sources */,
A0F00917279070B40073D36D /* main.m in Sources */,
A0F0090D279070B40073D36D /* AppDelegate.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
6003F5B4195388D20070C39A /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 6003F589195388D20070C39A /* Tor-Example */;
targetProxy = 6003F5B3195388D20070C39A /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin PBXVariantGroup section */
A0F00913279070B40073D36D /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
A0F0092027907A8A0073D36D /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
6003F5BD195388D20070C39A /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
STRING_CATALOG_GENERATE_SYMBOLS = YES;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
6003F5BE195388D20070C39A /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = YES;
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
SDKROOT = iphoneos;
STRING_CATALOG_GENERATE_SYMBOLS = YES;
SWIFT_COMPILATION_MODE = wholemodule;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
6003F5C0195388D20070C39A /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 4F31AB271AA16E836CDC5F8D /* Pods-Tor-Example.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "Tor/Tor-Prefix.pch";
INFOPLIST_FILE = "Tor/Tor-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
MODULE_NAME = ExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Tor/Tor-Example-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 6.0;
WRAPPER_EXTENSION = app;
};
name = Debug;
};
6003F5C1195388D20070C39A /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 74CA0FB740D38C49003C1E1A /* Pods-Tor-Example.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "Tor/Tor-Prefix.pch";
INFOPLIST_FILE = "Tor/Tor-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
MODULE_NAME = ExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Tor/Tor-Example-Bridging-Header.h";
SWIFT_VERSION = 6.0;
WRAPPER_EXTENSION = app;
};
name = Release;
};
6003F5C3195388D20070C39A /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = C2C4B3C67BC4AA29D918DFE0 /* Pods-Tor-Tests.debug.xcconfig */;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
FRAMEWORK_SEARCH_PATHS = (
"$(PLATFORM_DIR)/Developer/Library/Frameworks",
"$(inherited)",
"$(DEVELOPER_FRAMEWORKS_DIR)",
);
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch";
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
INFOPLIST_FILE = "Tests/Tests-Info.plist";
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Tor_Example.app/Tor_Example";
WRAPPER_EXTENSION = xctest;
};
name = Debug;
};
6003F5C4195388D20070C39A /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 4DFC6FCDC4F8056024E28F5B /* Pods-Tor-Tests.release.xcconfig */;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
FRAMEWORK_SEARCH_PATHS = (
"$(PLATFORM_DIR)/Developer/Library/Frameworks",
"$(inherited)",
"$(DEVELOPER_FRAMEWORKS_DIR)",
);
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch";
INFOPLIST_FILE = "Tests/Tests-Info.plist";
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Tor_Example.app/Tor_Example";
WRAPPER_EXTENSION = xctest;
};
name = Release;
};
A0F0091A279070B40073D36D /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = CCD44E911F9C4625A303B626 /* Pods-Tor-Example-Mac.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_APP_SANDBOX = YES;
ENABLE_INCOMING_NETWORK_CONNECTIONS = YES;
ENABLE_OUTGOING_NETWORK_CONNECTIONS = YES;
ENABLE_USER_SELECTED_FILES = readonly;
GCC_C_LANGUAGE_STANDARD = gnu11;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2022 Benjamin Erhart. All rights reserved.";
INFOPLIST_KEY_NSMainStoryboardFile = Main;
INFOPLIST_KEY_NSPrincipalClass = NSApplication;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 11.0;
MARKETING_VERSION = 1.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.Tor-Example-Mac";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_OBJC_BRIDGING_HEADER = "Example-Mac/Tor-Example-Mac-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 6.0;
};
name = Debug;
};
A0F0091B279070B40073D36D /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 8AA26438ED97EA21E1B6572D /* Pods-Tor-Example-Mac.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_APP_SANDBOX = YES;
ENABLE_INCOMING_NETWORK_CONNECTIONS = YES;
ENABLE_OUTGOING_NETWORK_CONNECTIONS = YES;
ENABLE_USER_SELECTED_FILES = readonly;
GCC_C_LANGUAGE_STANDARD = gnu11;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2022 Benjamin Erhart. All rights reserved.";
INFOPLIST_KEY_NSMainStoryboardFile = Main;
INFOPLIST_KEY_NSPrincipalClass = NSApplication;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 11.0;
MARKETING_VERSION = 1.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.Tor-Example-Mac";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_OBJC_BRIDGING_HEADER = "Example-Mac/Tor-Example-Mac-Bridging-Header.h";
SWIFT_VERSION = 6.0;
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
6003F585195388D10070C39A /* Build configuration list for PBXProject "Tor" */ = {
isa = XCConfigurationList;
buildConfigurations = (
6003F5BD195388D20070C39A /* Debug */,
6003F5BE195388D20070C39A /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "Tor-Example" */ = {
isa = XCConfigurationList;
buildConfigurations = (
6003F5C0195388D20070C39A /* Debug */,
6003F5C1195388D20070C39A /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "Tor-Tests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
6003F5C3195388D20070C39A /* Debug */,
6003F5C4195388D20070C39A /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
A0F00919279070B40073D36D /* Build configuration list for PBXNativeTarget "Tor-Example-Mac" */ = {
isa = XCConfigurationList;
buildConfigurations = (
A0F0091A279070B40073D36D /* Debug */,
A0F0091B279070B40073D36D /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 6003F582195388D10070C39A /* Project object */;
}
================================================
FILE: Example/Tor.xcodeproj/project.xcworkspace/contents.xcworkspacedata
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:Tor.xcodeproj">
</FileRef>
</Workspace>
================================================
FILE: Example/Tor.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
================================================
FILE: Example/Tor.xcodeproj/xcshareddata/xcschemes/Tor-Example-Mac.xcscheme
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "2640"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A0F00908279070B40073D36D"
BuildableName = "Tor-Example-Mac.app"
BlueprintName = "Tor-Example-Mac"
ReferencedContainer = "container:Tor.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A0F00908279070B40073D36D"
BuildableName = "Tor-Example-Mac.app"
BlueprintName = "Tor-Example-Mac"
ReferencedContainer = "container:Tor.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A0F00908279070B40073D36D"
BuildableName = "Tor-Example-Mac.app"
BlueprintName = "Tor-Example-Mac"
ReferencedContainer = "container:Tor.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
================================================
FILE: Example/Tor.xcodeproj/xcshareddata/xcschemes/Tor-Example.xcscheme
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "2640"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6003F589195388D20070C39A"
BuildableName = "Tor-Example.app"
BlueprintName = "Tor-Example"
ReferencedContainer = "container:Tor.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6003F589195388D20070C39A"
BuildableName = "Tor-Example.app"
BlueprintName = "Tor-Example"
ReferencedContainer = "container:Tor.xcodeproj">
</BuildableReference>
</MacroExpansion>
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6003F5AD195388D20070C39A"
BuildableName = "Tor-Tests.xctest"
BlueprintName = "Tor-Tests"
ReferencedContainer = "container:Tor.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6003F589195388D20070C39A"
BuildableName = "Tor-Example.app"
BlueprintName = "Tor-Example"
ReferencedContainer = "container:Tor.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6003F589195388D20070C39A"
BuildableName = "Tor-Example.app"
BlueprintName = "Tor-Example"
ReferencedContainer = "container:Tor.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
================================================
FILE: Example/Tor.xcworkspace/contents.xcworkspacedata
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:Tor.xcodeproj">
</FileRef>
<FileRef
location = "group:Pods/Pods.xcodeproj">
</FileRef>
</Workspace>
================================================
FILE: Example/Tor.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
================================================
FILE: LICENSE
================================================
Copyright (c) 2015-2026 The iCepa Contributors:
- Conrad Kramer (https://conradkramer.com)
- Chris Ballinger (http://chatsecure.org)
- Mike Tigas (https://mike.tig.as)
- Benjamin Erhart (https://die.netzarchitekten.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
================================================
FILE: README.md
================================================
# Tor.framework
[](https://cocoapods.org/pods/Tor)
[](https://cocoapods.org/pods/Tor)
[](https://cocoapods.org/pods/Tor)
Tor.framework is the easiest way to embed Tor in your iOS application. The API is *not* stable yet, and subject to change.
Currently, the framework compiles in the following versions of `tor`, `libevent`, `openssl`, and `liblzma`:
| Component | Version |
|:--------- | --------:|
| tor | 0.4.9.6 |
| libevent | 2.1.12 |
| OpenSSL | 3.6.1 |
| liblzma | 5.8.2 |
| Arti | 1.7.0 |
| Onionmasq | 0.6.2 |
## LATEST CHANGES
- No inline compilation necessary anymore: Now uses precompiled `tor.xcframework`,
`tor-nolzma.xcframework` and `arti.xcframework`which will be downloaded from
https://github.com/iCepa/Tor.framework/releases on install/update.
- Finally removed `TorStatic.podspec` as there was no feedback about it and it started to be in the way.
## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Requirements
- iOS 15.0 or later
- MacOS 11.0 or later
- Xcode 26.0 or later
## Installation
C-Tor is available through [CocoaPods](https://cocoapods.org). To install it,
simply add the following line to your Podfile:
```ruby
use_frameworks!
pod 'Tor', '~> 409'
```
(or `Tor/GeoIP` - see below.)
Arti is available through it's own Podspec. To install it,
simply add the following line to your Podfile:
```ruby
use_frameworks!
pod 'Tor/Arti',
:podspec => 'https://raw.githubusercontent.com/iCepa/Tor.framework/refs/heads/pure_pod/Arti.podspec'
```
## Compiling yourself
Prerequesite:
- [Homebrew](https://brew.sh)
```sh
git clone https://github.com/iCepa/Tor.framework.git
cd Tor.framework
brew bundle
rustup default stable
rustup target add aarch64-apple-darwin
rustup target add x86_64-apple-darwin
rustup target add aarch64-apple-ios
rustup target add aarch64-apple-ios-sim
rustup target add x86_64-apple-ios
cargo install cbindgen
./build-xcframework.sh -ac
```
*NOTE*: Builds are not reproducible.
## Preparing a new release
For maintainers/contributors of Tor.framework, a new release should be prepared by
doing the following:
- Update the version numbers of the libraries used in [`build-xcframework.sh`](build-xcframework.sh).
- Follow the instructions in [Compiling yourself](#compiling-yourself)
- Check the logs and test the created `tor.xcframework`, `tor-nolzma.xcframework` and `arti.xcframework`
with the contained example apps.
- Update info, version numbers and checksums in `README.md`, `Tor.podspec` and `Arti.podspec`!
- Commit, tag and push new release.
- Create a pre-release on https://github.com/iCepa/Tor.framework/releases with the latest
info as per older releases and upload the created `tor.xcframework.zip`,
`tor-nolzma.framework.zip` and `arti.framework.zip` files.
- Then lint like this:
```sh
pod lib lint --allow-warnings Tor.podspec
```
- If the linting went well, publish to CocoaPods:
```sh
pod trunk push --allow-warnings Tor.podspec
```
- Then update the [release](https://github.com/iCepa/Tor.framework/releases) in GitHub,
setting it as the latest release.
## Usage
### All-in-one `TorManager`
For a headache-free start into the world of Tor on iOS and macOS, check out
the new [`TorManager` project](https://github.com/tladesignz/TorManager)!
### Do-it-yourself
Starting an instance of Tor involves using three classes: `TORThread`, `TORConfiguration` and `TORController`.
Here is an example of integrating Tor with `NSURLSession`:
```objc
TORConfiguration *configuration = [TORConfiguration new];
configuration.ignoreMissingTorrc = YES;
configuration.cookieAuthentication = YES;
configuration.dataDirectory = [NSURL fileURLWithPath:NSTemporaryDirectory()];
configuration.controlSocket = [configuration.dataDirectory URLByAppendingPathComponent:@"control_port"];
TORThread *thread = [[TORThread alloc] initWithConfiguration:configuration];
[thread start];
NSData *cookie = configuration.cookie;
TORController *controller = [[TORController alloc] initWithSocketURL:configuration.controlSocket];
NSError *error;
[controller connect:&error];
if (error) {
NSLog(@"Error: %@", error);
return;
}
[controller authenticateWithData:cookie completion:^(BOOL success, NSError *error) {
if (!success)
return;
[controller addObserverForCircuitEstablished:^(BOOL established) {
if (!established)
return;
[controller getSessionConfiguration:^(NSURLSessionConfiguration *configuration) {
NSURLSession *session = [NSURLSession sessionWithConfiguration:configuration];
...
}];
}];
}];
```
### GeoIP
In your `Podfile` use the subspec `GeoIP` instead of the root spec:
```ruby
use_frameworks!
pod 'Tor/GeoIP'
```
The subspec will create a "GeoIP" bundle with the appropriate GeoIP files.
To use it with Tor, add this to your configuration:
```objc
TORConfiguration *configuration = [TORConfiguration new];
configuration.geoipFile = NSBundle.geoIpBundle.geoipFile;
configuration.geoip6File = NSBundle.geoIpBundle.geoip6File;
```
### Experimental Arti and Onionmasq podspec
Since I while, this project also contains a podspec, which uses Arti (A Rust Tor Implementation)
or Onionmasq (Arti with a wrapper taking in IP packets, useful for VPN-style apps.)
```ruby
pod 'Tor/Arti', :podspec => 'https://raw.githubusercontent.com/iCepa/Tor.framework/pure_pod/Arti.podspec'
```
or
```ruby
pod 'Tor/Onionmasq', :podspec => 'https://raw.githubusercontent.com/iCepa/Tor.framework/pure_pod/Arti.podspec'
```
There's currently a known issue: Onionmasq won't compile if you build for iOS or an iOS simulator right away,
since some Rust dependencies use custom build scripts which need to get compiled for MacOS, but will try
to use the wrong platform (iOS) in this case.
This can be fixed, if you compile for your machine first:
```sh
cd Pods/Tor/Tor/onionmasq
make macos-debug-aarch64-apple-darwin # If you run on Apple Silicon
make macos-debug-x86_64-apple-darwin # If you're still on Intel
```
Then, the Rust dependency build scripts will be compiled correctly and the
Xcode build will run correctly.
You can also precompile your debug and release targets on the command line, if you like:
```sh
make macos-release-universal-macos # Release build for MacOS as universal binary
make ios-release-aarch64-apple-ios # Release build for iOS
make ios-debug-aarch64-apple-ios # Debug build for iOS device
make ios-debug-aarch64-apple-ios-sim # Debug build for iOS simulator running on Apple Silicon
make ios-debug-x86_64-apple-ios # Debug build for iOS simulator running on Intel
```
## Further reading
https://tordev.guardianproject.info
## Authors
- Conrad Kramer, conrad@conradkramer.com
- Chris Ballinger, chris@chatsecure.org
- Mike Tigas, mike@tig.as
- Benjamin Erhart, berhart@netzarchitekten.com
## License
Tor.framework is available under the MIT license. See the
[`LICENSE`](https://github.com/iCepa/Tor.framework/blob/master/LICENSE) file for more info.
================================================
FILE: Tor/Assets/.gitkeep
================================================
================================================
FILE: Tor/Classes/Arti/TORArti.h
================================================
//
// TORArti.h
// Tor
//
// Created by Benjamin Erhart on 02.02.23.
//
#import <Foundation/Foundation.h>
#import <Tor/TORConfiguration.h>
NS_ASSUME_NONNULL_BEGIN
NS_SWIFT_NAME(TorArti)
@interface TORArti : NSObject
/**
Start Arti.
@param socksPort The port to use for accepting SOCKS5 requests.
@param dnsPort The port to use for accepting DNS requests.
@param logfile A logfile to write to. OPTIONAL
@param stateDir Directory, where Arti can store its state. OPTIONAL. If not provided, will use \c Library/Application \c Support/org.torproject.Arti.
@param cacheDir Directory, where Arti can store its caching data. OPTIONAL. If not providied, will use \c Library/Cache/org.torproject.Arti.
@param obfs4proxyPath The path to the Obfs4proxy binary. OPTIONAL. Only for MacOS! iOS apps are not allowed to start other processes!
@param bridge A bridge configuration line needed for the provided Obfs4proxy. OPTIONAL.
@param completed Callback when Arti is ready to connect.
*/
+ (void)startWithSocksPort:(NSUInteger)socksPort
dnsPort:(NSUInteger)dnsPort
obfs4Port:(NSUInteger)obfs4Port
snowflakePort:(NSUInteger)snowflakePort
logfile:(NSURL * _Nullable)logfile
stateDir:(NSURL * _Nullable)stateDir
cacheDir:(NSURL * _Nullable)cacheDir
obfs4proxyPath:(NSURL * _Nullable)obfs4proxyPath
bridge:(NSString * _Nullable)bridge
completed:(nullable void (^)(void))completed;
+ (void)startWithConfiguration:(TORConfiguration * _Nonnull)configuration completed:(nullable void (^)(void))completed;
+ (void)stop;
//+ (NSError *)status;
@end
NS_ASSUME_NONNULL_END
================================================
FILE: Tor/Classes/Arti/TORArti.m
================================================
//
// TORArti.m
// Tor
//
// Created by Benjamin Erhart on 02.02.23.
//
#import "TORArti.h"
#import "arti-mobile.h"
//#import "arti-rpc-client-core.h"
@implementation TORArti
NSString *logfilePath;
NSRegularExpression *regex;
typedef void (^Completed)(void);
Completed completedBlock;
+ (void)startWithSocksPort:(NSUInteger)socksPort
dnsPort:(NSUInteger)dnsPort
obfs4Port:(NSUInteger)obfs4Port
snowflakePort:(NSUInteger)snowflakePort
logfile:(NSURL * _Nullable)logfile
stateDir:(NSURL * _Nullable)stateDir
cacheDir:(NSURL * _Nullable)cacheDir
obfs4proxyPath:(NSURL * _Nullable)obfs4proxyPath
bridge:(NSString * _Nullable)bridge
completed:(nullable void (^)(void))completed
{
logfilePath = logfile.path;
completedBlock = completed;
NSFileManager *fm = NSFileManager.defaultManager;
if (![fm fileExistsAtPath:logfilePath]) {
[fm createFileAtPath:logfilePath contents:nil attributes:nil];
}
if (!stateDir) {
stateDir = [[[fm URLsForDirectory:NSApplicationSupportDirectory inDomains:NSUserDomainMask]
firstObject]
URLByAppendingPathComponent:@"org.torproject.Arti"];
}
if (!cacheDir) {
cacheDir = [[[fm URLsForDirectory:NSCachesDirectory inDomains:NSUserDomainMask]
firstObject]
URLByAppendingPathComponent:@"org.torproject.Arti"];
}
// Remove ANSI colors.
regex = [[NSRegularExpression alloc]
initWithPattern:@"\\x1b\\[[0-9;]*m"
options:NSRegularExpressionDotMatchesLineSeparators error:nil];
start_arti([stateDir.path cStringUsingEncoding:NSUTF8StringEncoding],
[cacheDir.path cStringUsingEncoding:NSUTF8StringEncoding],
(int)obfs4Port,
(int)snowflakePort,
[obfs4proxyPath.path cStringUsingEncoding:NSUTF8StringEncoding],
[bridge cStringUsingEncoding:NSUTF8StringEncoding],
(int)socksPort,
(int)dnsPort,
&loggingCb);
}
+ (void)startWithConfiguration:(TORConfiguration * _Nonnull)configuration
completed:(nullable void (^)(void))completed
{
NSUInteger obfs4Port = 0;
NSUInteger snowflakePort = 0;
NSURL *obfs4proxyPath = nil;
NSString *bridge = nil;
if ([configuration valueOf:@"UseBridges"]) {
NSString *ctp = [configuration valueOf:@"ClientTransportPlugin"];
NSArray<NSString *> *pieces = [ctp componentsSeparatedByCharactersInSet:NSCharacterSet.whitespaceCharacterSet];
NSRegularExpression *socksRegex = [[NSRegularExpression alloc]
initWithPattern:@"^socks[45]$"
options:NSRegularExpressionCaseInsensitive error:nil];
if (pieces.count > 0) {
if (pieces.count > 2
&& [socksRegex numberOfMatchesInString:pieces[1] options:0 range:NSMakeRange(0, pieces[1].length)] > 0
) {
NSRegularExpression *addrRegex = [[NSRegularExpression alloc]
initWithPattern:@"^.+:(\\d{1,5})$"
options:0
error:nil];
NSArray<NSTextCheckingResult *> *matches = [addrRegex matchesInString:pieces[2] options:0 range:NSMakeRange(0, pieces[2].length)];
if (matches.count > 0 && matches[0].numberOfRanges > 1) {
NSRange range = [matches[0] rangeAtIndex:1];
NSString *port = [pieces[2] substringWithRange:range];
if ([pieces[0] caseInsensitiveCompare:@"snowflake"] == NSOrderedSame) {
snowflakePort = [port integerValue];
}
else if ([pieces[0] caseInsensitiveCompare:@"obfs4"] == NSOrderedSame) {
obfs4Port = [port integerValue];
}
}
}
else if (pieces.count > 1
&& [pieces[0] caseInsensitiveCompare:@"obfs4"] == NSOrderedSame
) {
obfs4proxyPath = [[NSURL alloc] initFileURLWithPath:pieces[1] isDirectory:NO];
}
}
bridge = [configuration valueOf:@"Bridge"];
}
[self startWithSocksPort:configuration.socksPort
dnsPort:configuration.dnsPort
obfs4Port:obfs4Port
snowflakePort:snowflakePort
logfile:configuration.logfile
stateDir:configuration.dataDirectory
cacheDir:configuration.cacheDirectory
obfs4proxyPath:obfs4proxyPath
bridge:bridge
completed:completed];
}
+ (void)stop
{
stop_arti();
}
// Experimental! Not working.
//+ (NSError *)status
//{
// ArtiRpcConnBuilder *builder;
// ArtiRpcError *error;
//
// if (arti_rpc_conn_builder_new(&builder, &error) != ARTI_RPC_STATUS_SUCCESS)
// {
// return [self nsErrorFromArti:error];
// }
//
// ArtiRpcConn *conn;
//
// if (arti_rpc_conn_builder_connect(builder, &conn, &error) != ARTI_RPC_STATUS_SUCCESS)
// {
// arti_rpc_conn_builder_free(builder);
//
// return [self nsErrorFromArti:error];
// }
//
// arti_rpc_conn_builder_free(builder);
//
// const char *sessionId = arti_rpc_conn_get_session_id(conn);
//
// NSLog(@"sessionId=%s", sessionId);
//
// ArtiRpcStr *response;
//
// if (arti_rpc_conn_execute(conn, [@"arti:get_client_status" cStringUsingEncoding:NSUTF8StringEncoding], &response, &error) != ARTI_RPC_STATUS_SUCCESS)
// {
// arti_rpc_conn_free(conn);
//
// return [self nsErrorFromArti:error];
// }
//
// NSLog(@"response=%s", arti_rpc_str_get(response));
//
// arti_rpc_str_free(response);
//
// arti_rpc_conn_free(conn);
//
// return nil;
//}
//
//+ (NSError *)nsErrorFromArti:(ArtiRpcError *)error
//{
// NSString *msg = [NSString stringWithCString:arti_rpc_err_message(error) encoding:NSUTF8StringEncoding];
// ArtiRpcStatus code = arti_rpc_err_status(error);
//
// NSError *err = [[NSError alloc] initWithDomain:@"Arti" code:code userInfo:@{NSLocalizedDescriptionKey: msg}];
//
// arti_rpc_err_free(error);
//
// NSLog(@"Arti Error=%@", err);
//
// return err;
//}
void loggingCb(const char * message)
{
NSMutableString *msg = [[NSMutableString alloc] initWithUTF8String:message];
if (completedBlock && [msg.lowercaseString containsString:@"directory is complete"]) {
dispatch_async(dispatch_get_main_queue(), ^{
completedBlock();
completedBlock = nil;
});
}
if (logfilePath.length < 1) return;
[regex replaceMatchesInString:msg options:0 range:NSMakeRange(0, msg.length) withTemplate:@""];
NSFileHandle *fh = [NSFileHandle fileHandleForUpdatingAtPath: logfilePath];
[fh seekToEndOfFile];
[fh writeData:[msg dataUsingEncoding:NSUTF8StringEncoding]];
[fh closeFile];
}
@end
================================================
FILE: Tor/Classes/CTor/TORLogging.h
================================================
//
// TORLogging.h
// Tor
//
// Created by Benjamin Erhart on 9/9/17.
//
#import <Foundation/Foundation.h>
#import <os/log.h>
NS_ASSUME_NONNULL_BEGIN
typedef void(* tor_log_cb)(os_log_type_t severity, const char* msg);
extern void TORInstallEventLogging(void);
extern void TORInstallEventLoggingCallback(tor_log_cb cb);
extern void TORInstallTorLogging(void);
extern void TORInstallTorLoggingCallback(tor_log_cb cb);
NS_ASSUME_NONNULL_END
================================================
FILE: Tor/Classes/CTor/TORLogging.m
================================================
//
// TORLogging.m
// Tor
//
// Created by Benjamin Erhart on 9/9/17.
//
#import "TORLogging.h"
#import <event2/event.h>
#import <asl.h>
// XXXX This is not an exposed or supported Tor API.
// XXXX If Tor changes this header, then this code might break.
#import <lib/log/log.h>
tor_log_cb tor_log_callback;
tor_log_cb event_log_callback;
NS_ASSUME_NONNULL_BEGIN
static char *subsystem = "org.torproject.Tor";
static inline const char *TORLegacyLevelFromOSLogType(os_log_type_t type) {
switch (type) {
case OS_LOG_TYPE_ERROR:
return "3";
case OS_LOG_TYPE_INFO:
return "4";
case OS_LOG_TYPE_DEBUG:
default:
return "5";
}
}
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
static void TORLegacyLog(os_log_type_t type, const char *msg) {
static dispatch_once_t onceToken;
static aslclient log = NULL;
dispatch_once(&onceToken, ^{
log = asl_open(NULL, "com.apple.console", 0);
});
char read_uid[16];
snprintf(read_uid, sizeof(read_uid), "%d", geteuid());
aslmsg message = asl_new(ASL_TYPE_MSG);
if (message != NULL) {
if (asl_set(message, ASL_KEY_LEVEL, TORLegacyLevelFromOSLogType(type)) == 0 &&
asl_set(message, ASL_KEY_MSG, msg) == 0 &&
asl_set(message, ASL_KEY_READ_UID, read_uid) == 0) {
asl_send(log, message);
}
asl_free(message);
}
}
#pragma clang diagnostic pop
static inline os_log_type_t TORLogTypeFromEventSeverity(int severity) {
switch (severity) {
case EVENT_LOG_ERR:
case EVENT_LOG_WARN:
return OS_LOG_TYPE_ERROR;
case EVENT_LOG_MSG:
return OS_LOG_TYPE_INFO;
case EVENT_LOG_DEBUG:
return OS_LOG_TYPE_DEBUG;
default:
return OS_LOG_TYPE_DEFAULT;
}
}
static void TOREventLogCallback(int severity, const char *msg) {
os_log_type_t type = TORLogTypeFromEventSeverity(severity);
if (event_log_callback) {
event_log_callback(type, msg);
} else if (@available(iOS 10.0, macOS 10.12, *)) {
static dispatch_once_t onceToken;
static os_log_t log = NULL;
dispatch_once(&onceToken, ^{
log = os_log_create(subsystem, "libevent");
});
os_log_with_type(log, type, "%{public}s", msg);
} else {
TORLegacyLog(type, msg);
}
}
static const char * __nullable TORCategoryForDomain(uint32_t domain) {
switch (domain) {
case LD_GENERAL:
return "general";
case LD_CRYPTO:
return "crypto";
case LD_NET:
return "net";
case LD_CONFIG:
return "config";
case LD_FS:
return "fs";
case LD_PROTOCOL:
return "protocol";
case LD_MM:
return "mm";
case LD_HTTP:
return "http";
case LD_APP:
return "app";
case LD_CONTROL:
return "control";
case LD_CIRC:
return "circ";
case LD_REND:
return "rend";
case LD_BUG:
return "bug";
case LD_DIR:
return "dir";
case LD_DIRSERV:
return "dirserv";
case LD_OR:
return "or";
case LD_EDGE:
return "edge";
case LD_ACCT:
return "acct";
case LD_HIST:
return "hist";
case LD_HANDSHAKE:
return "handshake";
case LD_HEARTBEAT:
return "heartbeat";
case LD_CHANNEL:
return "channel";
case LD_SCHED:
return "sched";
case LD_GUARD:
return "guard";
default:
return NULL;
}
}
static inline os_log_type_t TORLogTypeFromSeverity(int severity) {
switch (severity) {
case LOG_ERR:
return OS_LOG_TYPE_FAULT;
case LOG_WARN:
return OS_LOG_TYPE_ERROR;
case LOG_NOTICE:
case LOG_INFO:
return OS_LOG_TYPE_INFO;
case LOG_DEBUG:
return OS_LOG_TYPE_DEBUG;
default:
return OS_LOG_TYPE_DEFAULT;
}
}
static void TORLogCallback(int severity, uint64_t domain, const char *msg) {
if (domain & LD_NOCB) {
return;
}
os_log_type_t type = TORLogTypeFromSeverity(severity);
if (tor_log_callback) {
tor_log_callback(type, msg);
} else if (@available(iOS 10.0, macOS 10.12, *)) {
int index = 0;
while (domain >>= 1) {
++index;
}
if (index >= N_LOGGING_DOMAINS) {
return;
}
static os_log_t logs[N_LOGGING_DOMAINS] = { NULL };
os_log_t log = logs[index];
if (log == NULL) {
log = os_log_create(subsystem, TORCategoryForDomain(1u << index));
logs[index] = log;
}
os_log_with_type(log, type, "%{public}s", msg);
} else {
TORLegacyLog(type, msg);
}
}
void TORInstallEventLogging(void) {
event_log_callback = NULL;
event_set_log_callback(TOREventLogCallback);
event_enable_debug_logging(EVENT_DBG_ALL);
}
void TORInstallEventLoggingCallback(tor_log_cb cb) {
event_log_callback = cb;
event_set_log_callback(TOREventLogCallback);
event_enable_debug_logging(EVENT_DBG_ALL);
}
void TORInstallTorLogging(void) {
tor_log_callback = NULL;
log_severity_list_t list;
set_log_severity_config(LOG_DEBUG, LOG_ERR, &list);
add_callback_log(&list, TORLogCallback);
}
extern void TORInstallTorLoggingCallback(tor_log_cb cb) {
tor_log_callback = cb;
log_severity_list_t list;
set_log_severity_config(LOG_DEBUG, LOG_ERR, &list);
add_callback_log(&list, TORLogCallback);
}
NS_ASSUME_NONNULL_END
================================================
FILE: Tor/Classes/CTor/TORThread.h
================================================
//
// TORThread.h
// Tor
//
// Created by Conrad Kramer on 7/19/15.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@class TORConfiguration;
NS_SWIFT_NAME(TorThread)
@interface TORThread : NSThread
#if __has_feature(objc_class_property)
@property (class, readonly, nullable) TORThread *activeThread;
#else
+ (nullable TORThread *)activeThread;
#endif
- (instancetype)initWithConfiguration:(nullable TORConfiguration *)configuration;
- (instancetype)initWithArguments:(nullable NSArray<NSString *> *)arguments NS_DESIGNATED_INITIALIZER;
@end
NS_ASSUME_NONNULL_END
================================================
FILE: Tor/Classes/CTor/TORThread.m
================================================
//
// TORThread.m
// Tor
//
// Created by Conrad Kramer on 7/19/15.
//
#import <feature/api/tor_api.h>
#import "TORThread.h"
#import "TORLogging.h"
#import "TORConfiguration.h"
NS_ASSUME_NONNULL_BEGIN
static __weak TORThread *_thread = nil;
@interface TORThread ()
@property (nonatomic, readonly, copy, nullable) NSArray<NSString *> *arguments;
@end
@implementation TORThread
+ (nullable TORThread *)activeThread {
return _thread;
}
- (instancetype)init {
return [self initWithArguments:nil];
}
- (instancetype)initWithConfiguration:(nullable TORConfiguration *)configuration {
return [self initWithArguments:[configuration compile]];
}
- (instancetype)initWithArguments:(nullable NSArray<NSString *> *)arguments {
NSAssert(_thread == nil, @"There can only be one TORThread per process");
self = [super init];
if (!self)
return nil;
_thread = self;
_arguments = [arguments copy];
self.name = @"Tor";
return self;
}
- (void)main {
NSArray *arguments = self.arguments;
int argc = (int)(arguments.count + 1);
char *argv[argc];
argv[0] = "tor";
for (NSUInteger idx = 0; idx < arguments.count; idx++)
argv[idx + 1] = (char *)[arguments[idx] UTF8String];
argv[argc] = NULL;
//#if DEBUG
// event_enable_debug_mode();
//#endif
tor_main_configuration_t *cfg = tor_main_configuration_new();
tor_main_configuration_set_command_line(cfg, argc, argv);
tor_run_main(cfg);
tor_main_configuration_free(cfg);
}
@end
NS_ASSUME_NONNULL_END
================================================
FILE: Tor/Classes/CTor/TORX25519KeyPair.h
================================================
//
// TORX25519KeyPair.h
// Tor
//
// Created by Benjamin Erhart on 11.10.21.
//
#import <Foundation/Foundation.h>
#import "TORAuthKey.h"
NS_ASSUME_NONNULL_BEGIN
/**
Class to generate or hold a X25519 public/private key pair encoded in BASE32.
*/
NS_SWIFT_NAME(TorX25519KeyPair)
@interface TORX25519KeyPair : NSObject
/**
The BASE32 encoded private key. Should be exactly 32 bytes long, resp. 52 characters in BASE32 encoding.
*/
@property (nonatomic, nullable, readonly) NSString *privateKey;
/**
The BASE32 encoded public key. Should be exactly 32 bytes long, resp. 52 characters in BASE32 encoding.
*/
@property (nonatomic, nullable, readonly) NSString *publicKey;
/**
Generate a new X25519 key pair using Tor's implementation.
On iOS 13 and up, another option is also available: CryptoKit's \c Curve25519.KeyAggreement.PrivateKey
*/
- (instancetype)init;
/**
Initialize with a pre-generated, BASE32-encoded X25519 key pair. A valid key pair is exactly 32 bytes long,
resp. 52 characters in BASE32 encoding.
No validity checks are made! It's your responsibility to provide valid key material.
@param privateKey The private key, BASE32 encoded.
@param publicKey The public key, BASE32 encoded.
*/
- (instancetype)initWithBase32PrivateKey:(NSString *)privateKey andPublicKey:(NSString *)publicKey;
/**
Initialize with a pre-generated X25519 key pair. A valid key pair is exactly 32 bytes long.
No validity checks are made! It's your responsibility to provide valid key material.
@param privateKey The private key.
@param publicKey The public key.
*/
- (instancetype)initWithPrivateKey:(NSData *)privateKey andPublicKey:(NSData *)publicKey;
/**
Create a private \c TORAuthKey from this key material using the provided domain.
@param domain The domain name, this private key is for. Must include the \c .onion TLD!
@returns the private \c TORAuthKey of this key pair's private key or \c nil if the \c domain is empty or this class doesn't contain a private key.
*/
- (nullable TORAuthKey *)getPrivateAuthKeyForDomain:(nonnull NSString *)domain;
/**
Create a private \c TORAuthKey from this key material using the provided domain.
@param url The domain, this private key is for.
@returns the private \c TORAuthKey of this key pair's private key or \c nil if this class doesn't contain a private key.
*/
- (nullable TORAuthKey *)getPrivateAuthKeyForUrl:(nonnull NSURL *)url;
/**
Create a public \c TORAuthKey from this key material using the provided name.
@param name The name used to store that \c TORAuthKey, without the extension!
@returns the public \c TORAuthKey of this key pair's public key or \c nil if the \c name is empty or this class doesn't contain a public key.
*/
- (nullable TORAuthKey *)getPublicAuthKeyWithName:(nonnull NSString *)name;
/**
Helper method to BASE32 encode raw binary \c NSData into a \c NSString.
@param raw The raw binary \c NSData to encode.
@returns a BASE32 encoded representation of that binary data.
*/
+ (nullable NSString *)base32Encode:(NSData *)raw;
/**
Helper method to decode raw binary \c NSData contained in a BASE32 encoded \c NSString.
@param encoded The BASE32 encoded data to decode.
@returns binary data.
*/
+ (nullable NSData *)base32Decode:(NSString *)encoded;
@end
NS_ASSUME_NONNULL_END
================================================
FILE: Tor/Classes/CTor/TORX25519KeyPair.m
================================================
//
// TORX25519KeyPair.m
// Tor
//
// Created by Benjamin Erhart on 11.10.21.
//
#import "TORX25519KeyPair.h"
#import <lib/malloc/malloc.h>
#import <lib/crypt_ops/crypto_curve25519.h>
#import <lib/encoding/binascii.h>
@implementation TORX25519KeyPair
- (instancetype)init
{
if ((self = [super init]))
{
curve25519_keypair_t *keypair = tor_malloc_zero(sizeof(curve25519_keypair_t));
curve25519_init();
curve25519_keypair_generate(keypair, 0);
_privateKey = [TORX25519KeyPair base32Encode:[
NSData dataWithBytes:keypair->seckey.secret_key
length:sizeof(keypair->seckey.secret_key)]];
_publicKey = [TORX25519KeyPair base32Encode:[
NSData dataWithBytes:keypair->pubkey.public_key
length:sizeof(keypair->pubkey.public_key)]];
tor_free(keypair);
}
return self;
}
- (instancetype)initWithBase32PrivateKey:(NSString *)privateKey andPublicKey:(NSString *)publicKey
{
if ((self = [super init]))
{
_privateKey = privateKey;
_publicKey = publicKey;
}
return self;
}
- (instancetype)initWithPrivateKey:(NSData *)privateKey andPublicKey:(NSData *)publicKey
{
if ((self = [super init]))
{
_privateKey = [TORX25519KeyPair base32Encode:privateKey];
_publicKey = [TORX25519KeyPair base32Encode:publicKey];
}
return self;
}
// MARK: Public Methods
- (nullable TORAuthKey *)getPrivateAuthKeyForDomain:(nonnull NSString *)domain
{
if (domain.length < 1) return nil;
NSURLComponents *urlc = [NSURLComponents new];
urlc.scheme = @"http";
urlc.host = domain;
NSURL *url = urlc.URL;
if (!url) return nil;
return [self getPrivateAuthKeyForUrl:url];
}
- (nullable TORAuthKey *)getPrivateAuthKeyForUrl:(nonnull NSURL *)url
{
NSString *privateKey = _privateKey;
if (!privateKey) return nil;
return [[TORAuthKey alloc] initPrivate:privateKey forDomain:url];
}
- (nullable TORAuthKey *)getPublicAuthKeyWithName:(nonnull NSString *)name
{
NSString *publicKey = _publicKey;
if (!publicKey) return nil;
if (name.length < 1) return nil;
return [[TORAuthKey alloc] initPublic:publicKey withName:name];
}
// MARK: Public Class Methods
+ (nullable NSString *)base32Encode:(NSData *)raw
{
char dest[base32_encoded_size(raw.length)];
base32_encode(dest, sizeof(dest), raw.bytes, raw.length);
return [NSString stringWithUTF8String:dest];
}
+ (nullable NSData *)base32Decode:(NSString *)encoded
{
const char *src = [encoded cStringUsingEncoding:kCFStringEncodingUTF8];
char dest[sizeof(src) * 5 / 8];
base32_decode(dest, sizeof(dest), src, sizeof(src));
return [NSData dataWithBytes:dest length:sizeof(dest)];
}
@end
================================================
FILE: Tor/Classes/Core/NSBundle+GeoIP.h
================================================
//
// NSBundle+GeoIP.h
// Tor
//
// Created by Benjamin Erhart on 02.12.21.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface NSBundle (GeoIP)
@property (class, readonly, nullable) NSBundle *geoIpBundle;
@property (readonly, nullable) NSURL *geoipFile;
@property (readonly, nullable) NSURL *geoip6File;
@end
NS_ASSUME_NONNULL_END
================================================
FILE: Tor/Classes/Core/NSBundle+GeoIP.m
================================================
//
// NSBundle+GeoIP.m
// Tor
//
// Created by Benjamin Erhart on 02.12.21.
//
#import "NSBundle+GeoIP.h"
#import "TORConfiguration.h"
@implementation NSBundle (GeoIP)
+ (NSBundle *)geoIpBundle
{
NSURL *url = [[NSBundle bundleForClass:TORConfiguration.class] URLForResource:@"GeoIP" withExtension:@"bundle"];
if (!url) return nil;
return [NSBundle bundleWithURL:url];
}
- (NSURL *)geoipFile
{
return [self URLForResource:@"geoip" withExtension:nil];
}
- (NSURL *)geoip6File
{
return [self URLForResource:@"geoip6" withExtension:nil];
}
@end
================================================
FILE: Tor/Classes/Core/NSCharacterSet+PredefinedSets.h
================================================
//
// NSCharacterSet+PredefinedSets.h
// Tor
//
// Created by Benjamin Erhart on 12.12.19.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface NSCharacterSet (PredefinedSets)
@property (class, readonly) NSCharacterSet *doubleQuote;
@property (class, readonly) NSCharacterSet *longNameDivider;
@end
NS_ASSUME_NONNULL_END
================================================
FILE: Tor/Classes/Core/NSCharacterSet+PredefinedSets.m
================================================
//
// NSCharacterSet+Quotes.m
// Tor
//
// Created by Benjamin Erhart on 12.12.19.
//
#import "NSCharacterSet+PredefinedSets.h"
@implementation NSCharacterSet (PredefinedSets)
static NSCharacterSet *_doubleQuote;
static NSCharacterSet *_longNameDivider;
+ (NSCharacterSet *)doubleQuote
{
if (!_doubleQuote)
{
_doubleQuote = [NSCharacterSet characterSetWithCharactersInString:@"\""];
}
return _doubleQuote;
}
+ (NSCharacterSet *)longNameDivider
{
if (!_longNameDivider)
{
_longNameDivider = [NSCharacterSet characterSetWithCharactersInString:@"~="];
}
return _longNameDivider;
}
@end
================================================
FILE: Tor/Classes/Core/TORAuthKey.h
================================================
//
// TORAuthKey.h
// Tor
//
// Created by Benjamin Erhart on 29.09.21.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
/**
The representation of one private or public v3 onion service authentication key.
*/
NS_SWIFT_NAME(TorAuthKey)
@interface TORAuthKey : NSObject
/**
The location on disk, where this data was read from/will be written to.
*/
@property (nonatomic, readonly, nonnull) NSURL *file;
/**
Flag, if this is a private (\c YES) or a public (\c NO) key.
*/
@property (atomic, readonly) BOOL isPrivate;
/**
The full onion service URL.
*/
@property (nonatomic, readonly, nullable) NSURL *onionAddress;
/**
The authentication type.
Currently only the \c descriptor type is supported. This class will set this value hard for you.
*/
@property (nonatomic, readonly, nonnull) NSString *authType;
/**
The key type.
Currently only \c x25519 is supported. This class will set this value hard for you.
Make sure, that the key you provide actually is of that type!
*/
@property (nonatomic, readonly, nonnull) NSString *keyType;
/**
The actual public OR private key.
This class doesn't enforce it, but Tor wants this to be in a BASE32 encoded format.
Make sure, it is of the type \c x25519, as this is currently the only supported type by Tor and by this class!
*/
@property (nonatomic, readonly, nonnull) NSString *key;
/**
Load from a key file on disk.
See https://2019.www.torproject.org/docs/tor-manual.html.en#ClientOnionAuthDir
and https://2019.www.torproject.org/docs/tor-manual.html.en#_client_authorization
for the expected format.
@param url The URL to the file containing the key. Expected to be in the correct format.
*/
- (instancetype)initFromUrl:(NSURL *)url;
/**
Load from a key file on disk.
See https://2019.www.torproject.org/docs/tor-manual.html.en#ClientOnionAuthDir
and https://2019.www.torproject.org/docs/tor-manual.html.en#_client_authorization
for the expected format.
@param path The path to the file containing the key. Expected to be in the correct format.
*/
- (instancetype)initFromFile:(NSString *)path;
/**
Create a new private key for a given domain.
Normally, the domain will be used as file name, but this method will generate a UUID, if no domain can be found.
@param key A \c BASE32 encoded \c x25519 private key.
@param url A URL containing the v3 onion service domain for which this key is.
*/
- (instancetype)initPrivate:(NSString * _Nonnull)key forDomain:(NSURL * _Nonnull)url;
/**
Create a new public key with the given name.
The name wil be used as the file name.
@param key A \c BASE32 encoded \c x25519 public key.
@param name A name to identify this key to be used as the file name.
*/
- (instancetype)initPublic:(NSString * _Nonnull)key withName: (NSString *)name;
/**
Set the base directory for the key.
This needs to be called \b before \c persist, if you created a fresh key.
@param directory The base directory where this key should be persisted.
@see -persist
*/
- (void)setDirectory:(NSURL *)directory;
/**
Persists this key to the file system.
Call \c setDirectory:, if this instance wasn't created by reading a key from a file!
@returns \c YES on success, \c NO on failure.
@see -setDirectory:
*/
- (BOOL)persist;
/**
Keys are considered equal, if their file URLs match.
*/
- (BOOL)isEqualToAuthKey:(TORAuthKey *)authKey;
/**
Checks, if the given file name has the correct extension for either a private or public key.
@param url A file URL to a key file.
@returns \c YES, if this URL contains a key file extension.
*/
+ (BOOL)isAuthFile:(NSURL *)url;
@end
NS_ASSUME_NONNULL_END
================================================
FILE: Tor/Classes/Core/TORAuthKey.m
================================================
//
// TORAuthKe
gitextract_5cjxzza8/
├── .gitignore
├── .gitmodules
├── Arti.podspec
├── Brewfile
├── Example/
│ ├── Example-Mac/
│ │ ├── AppDelegate.h
│ │ ├── AppDelegate.m
│ │ ├── Base.lproj/
│ │ │ └── Main.storyboard
│ │ ├── Tor-Example-Mac-Bridging-Header.h
│ │ ├── ViewController.swift
│ │ └── main.m
│ ├── Podfile
│ ├── Tests/
│ │ ├── TORConfigurationTests.m
│ │ ├── TORControllerTests.m
│ │ ├── Tests-Info.plist
│ │ └── Tests-Prefix.pch
│ ├── Tor/
│ │ ├── AppDelegate.h
│ │ ├── AppDelegate.m
│ │ ├── Base.lproj/
│ │ │ └── Main.storyboard
│ │ ├── Launch Screen.storyboard
│ │ ├── Tor-Example-Bridging-Header.h
│ │ ├── Tor-Info.plist
│ │ ├── Tor-Prefix.pch
│ │ ├── ViewController.swift
│ │ └── main.m
│ ├── Tor.xcodeproj/
│ │ ├── project.pbxproj
│ │ ├── project.xcworkspace/
│ │ │ ├── contents.xcworkspacedata
│ │ │ └── xcshareddata/
│ │ │ └── IDEWorkspaceChecks.plist
│ │ └── xcshareddata/
│ │ └── xcschemes/
│ │ ├── Tor-Example-Mac.xcscheme
│ │ └── Tor-Example.xcscheme
│ └── Tor.xcworkspace/
│ ├── contents.xcworkspacedata
│ └── xcshareddata/
│ └── IDEWorkspaceChecks.plist
├── LICENSE
├── README.md
├── Tor/
│ ├── Assets/
│ │ └── .gitkeep
│ ├── Classes/
│ │ ├── Arti/
│ │ │ ├── TORArti.h
│ │ │ └── TORArti.m
│ │ ├── CTor/
│ │ │ ├── TORLogging.h
│ │ │ ├── TORLogging.m
│ │ │ ├── TORThread.h
│ │ │ ├── TORThread.m
│ │ │ ├── TORX25519KeyPair.h
│ │ │ └── TORX25519KeyPair.m
│ │ ├── Core/
│ │ │ ├── NSBundle+GeoIP.h
│ │ │ ├── NSBundle+GeoIP.m
│ │ │ ├── NSCharacterSet+PredefinedSets.h
│ │ │ ├── NSCharacterSet+PredefinedSets.m
│ │ │ ├── TORAuthKey.h
│ │ │ ├── TORAuthKey.m
│ │ │ ├── TORCircuit.h
│ │ │ ├── TORCircuit.m
│ │ │ ├── TORConfiguration.h
│ │ │ ├── TORConfiguration.m
│ │ │ ├── TORControlCommand.h
│ │ │ ├── TORControlReplyCode.h
│ │ │ ├── TORController.h
│ │ │ ├── TORController.m
│ │ │ ├── TORNode.h
│ │ │ ├── TORNode.m
│ │ │ ├── TOROnionAuth.h
│ │ │ └── TOROnionAuth.m
│ │ └── Onionmasq/
│ │ ├── Onionmasq.h
│ │ └── Onionmasq.m
│ ├── download.sh
│ ├── mmap-cache.patch
│ └── onionmasq.sh
├── Tor.podspec
├── build-xcframework.sh
└── docs/
├── Tor.json
└── index.html
Condensed preview — 69 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (349K chars).
[
{
"path": ".gitignore",
"chars": 4334,
"preview": "geoip\ngeoip6\ntor.xcframework\ntor-nolzma.xcframework\ntor.xcframework.zip\ntor-nolzma.xcframework.zip\narti.xcframework\narti"
},
{
"path": ".gitmodules",
"chars": 110,
"preview": "[submodule \"Tor/onionmasq\"]\n\tpath = Tor/onionmasq\n\turl = https://gitlab.torproject.org/tpo/core/onionmasq.git\n"
},
{
"path": "Arti.podspec",
"chars": 2611,
"preview": "Pod::Spec.new do |m|\n\n m.name = 'Tor'\n m.version = '408.22.1'\n m.summary = 'Tor.framewo"
},
{
"path": "Brewfile",
"chars": 88,
"preview": "brew \"automake\"\nbrew \"autoconf\"\nbrew \"libtool\"\nbrew \"gettext\"\nbrew \"po4a\"\nbrew \"rustup\"\n"
},
{
"path": "Example/Example-Mac/AppDelegate.h",
"chars": 242,
"preview": "//\n// AppDelegate.h\n// Tor_Example_Mac\n//\n// Created by Benjamin Erhart on 13.01.22.\n// Copyright © 2022 Benjamin Er"
},
{
"path": "Example/Example-Mac/AppDelegate.m",
"chars": 4970,
"preview": "//\n// AppDelegate.m\n// Tor_Example_Mac\n//\n// Created by Benjamin Erhart on 13.01.22.\n// Copyright © 2022 Benjamin Er"
},
{
"path": "Example/Example-Mac/Base.lproj/Main.storyboard",
"chars": 60786,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB\" version=\"3.0\" t"
},
{
"path": "Example/Example-Mac/Tor-Example-Mac-Bridging-Header.h",
"chars": 104,
"preview": "//\n// Use this file to import your target's public headers that you would like to expose to Swift.\n//\n\n"
},
{
"path": "Example/Example-Mac/ViewController.swift",
"chars": 1746,
"preview": "//\n// ViewController.swift\n// Tor-Example-Mac\n//\n// Created by Benjamin Erhart on 28.11.25.\n// Copyright © 2025 Benj"
},
{
"path": "Example/Example-Mac/main.m",
"chars": 356,
"preview": "//\n// main.m\n// Tor_Example_Mac\n//\n// Created by Benjamin Erhart on 13.01.22.\n// Copyright © 2022 Benjamin Erhart. A"
},
{
"path": "Example/Podfile",
"chars": 339,
"preview": "use_frameworks!\n\ndef tor\n# pod 'Tor/Arti',\n# :path => '../'\n# :podspec => '../Arti.podspec'\n pod 'Tor/GeoIP', # "
},
{
"path": "Example/Tests/TORConfigurationTests.m",
"chars": 507,
"preview": "//\n// TORConfigurationTests.m\n// Tor\n//\n// Created by Conrad Kramer on 8/11/15.\n//\n\n#import <XCTest/XCTest.h>\n\n@inter"
},
{
"path": "Example/Tests/TORControllerTests.m",
"chars": 5684,
"preview": "//\n// Tests.m\n// Tests\n//\n// Created by Conrad Kramer on 8/10/15.\n//\n\n#import <XCTest/XCTest.h>\n#import <Tor/Tor.h>\n\n"
},
{
"path": "Example/Tests/Tests-Info.plist",
"chars": 674,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
},
{
"path": "Example/Tests/Tests-Prefix.pch",
"chars": 132,
"preview": "// The contents of this file are implicitly included at the beginning of every test case source file.\n\n#ifdef __OBJC__\n"
},
{
"path": "Example/Tor/AppDelegate.h",
"chars": 275,
"preview": "//\n// AppDelegate.h\n// Tor\n//\n// Created by Benjamin Erhart on 01/13/2022.\n// Copyright (c) 2022 Benjamin Erhart. Al"
},
{
"path": "Example/Tor/AppDelegate.m",
"chars": 7320,
"preview": "//\n// AppDelegate.m\n// Tor\n//\n// Created by Benjamin Erhart on 01/13/2022.\n// Copyright (c) 2022 Benjamin Erhart. Al"
},
{
"path": "Example/Tor/Base.lproj/Main.storyboard",
"chars": 2073,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB\" version=\"3"
},
{
"path": "Example/Tor/Launch Screen.storyboard",
"chars": 4566,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard"
},
{
"path": "Example/Tor/Tor-Example-Bridging-Header.h",
"chars": 104,
"preview": "//\n// Use this file to import your target's public headers that you would like to expose to Swift.\n//\n\n"
},
{
"path": "Example/Tor/Tor-Info.plist",
"chars": 1788,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
},
{
"path": "Example/Tor/Tor-Prefix.pch",
"chars": 321,
"preview": "//\n// Prefix header\n//\n// The contents of this file are implicitly included at the beginning of every source file.\n//\n"
},
{
"path": "Example/Tor/ViewController.swift",
"chars": 1741,
"preview": "//\n// ViewController.swift\n// Tor-Example\n//\n// Created by Benjamin Erhart on 01.12.25.\n// Copyright © 2025 Benjamin"
},
{
"path": "Example/Tor/main.m",
"chars": 334,
"preview": "//\n// main.m\n// Tor\n//\n// Created by Benjamin Erhart on 01/10/2022.\n// Copyright (c) 2022 Benjamin Erhart. All right"
},
{
"path": "Example/Tor.xcodeproj/project.pbxproj",
"chars": 47101,
"preview": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 77;\n\tobjects = {\n\n/* Begin PBXBuildFile section *"
},
{
"path": "Example/Tor.xcodeproj/project.xcworkspace/contents.xcworkspacedata",
"chars": 148,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n version = \"1.0\">\n <FileRef\n location = \"self:Tor.xcodeproj\">"
},
{
"path": "Example/Tor.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist",
"chars": 238,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
},
{
"path": "Example/Tor.xcodeproj/xcshareddata/xcschemes/Tor-Example-Mac.xcscheme",
"chars": 2876,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n LastUpgradeVersion = \"2640\"\n version = \"1.3\">\n <BuildAction\n "
},
{
"path": "Example/Tor.xcodeproj/xcshareddata/xcschemes/Tor-Example.xcscheme",
"chars": 3633,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n LastUpgradeVersion = \"2640\"\n version = \"1.3\">\n <BuildAction\n "
},
{
"path": "Example/Tor.xcworkspace/contents.xcworkspacedata",
"chars": 221,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n version = \"1.0\">\n <FileRef\n location = \"group:Tor.xcodeproj\""
},
{
"path": "Example/Tor.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist",
"chars": 238,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
},
{
"path": "LICENSE",
"chars": 1245,
"preview": "Copyright (c) 2015-2026 The iCepa Contributors:\n\n- Conrad Kramer (https://conradkramer.com)\n- Chris Ballinger (http://ch"
},
{
"path": "README.md",
"chars": 7279,
"preview": "# Tor.framework\n\n[](https://cocoapods.org/pods/Tor)\n[!["
},
{
"path": "Tor/Assets/.gitkeep",
"chars": 0,
"preview": ""
},
{
"path": "Tor/Classes/Arti/TORArti.h",
"chars": 1725,
"preview": "//\n// TORArti.h\n// Tor\n//\n// Created by Benjamin Erhart on 02.02.23.\n//\n\n#import <Foundation/Foundation.h>\n#import <T"
},
{
"path": "Tor/Classes/Arti/TORArti.m",
"chars": 7247,
"preview": "//\n// TORArti.m\n// Tor\n//\n// Created by Benjamin Erhart on 02.02.23.\n//\n\n#import \"TORArti.h\"\n#import \"arti-mobile.h\"\n"
},
{
"path": "Tor/Classes/CTor/TORLogging.h",
"chars": 450,
"preview": "//\n// TORLogging.h\n// Tor\n//\n// Created by Benjamin Erhart on 9/9/17.\n//\n\n#import <Foundation/Foundation.h>\n#import <"
},
{
"path": "Tor/Classes/CTor/TORLogging.m",
"chars": 5838,
"preview": "//\n// TORLogging.m\n// Tor\n//\n// Created by Benjamin Erhart on 9/9/17.\n//\n\n#import \"TORLogging.h\"\n\n#import <event2/eve"
},
{
"path": "Tor/Classes/CTor/TORThread.h",
"chars": 587,
"preview": "//\n// TORThread.h\n// Tor\n//\n// Created by Conrad Kramer on 7/19/15.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_"
},
{
"path": "Tor/Classes/CTor/TORThread.m",
"chars": 1555,
"preview": "//\n// TORThread.m\n// Tor\n//\n// Created by Conrad Kramer on 7/19/15.\n//\n\n#import <feature/api/tor_api.h>\n\n#import \"TOR"
},
{
"path": "Tor/Classes/CTor/TORX25519KeyPair.h",
"chars": 3316,
"preview": "//\n// TORX25519KeyPair.h\n// Tor\n//\n// Created by Benjamin Erhart on 11.10.21.\n//\n\n#import <Foundation/Foundation.h>\n#"
},
{
"path": "Tor/Classes/CTor/TORX25519KeyPair.m",
"chars": 2775,
"preview": "//\n// TORX25519KeyPair.m\n// Tor\n//\n// Created by Benjamin Erhart on 11.10.21.\n//\n\n#import \"TORX25519KeyPair.h\"\n#impor"
},
{
"path": "Tor/Classes/Core/NSBundle+GeoIP.h",
"chars": 361,
"preview": "//\n// NSBundle+GeoIP.h\n// Tor\n//\n// Created by Benjamin Erhart on 02.12.21.\n//\n\n#import <Foundation/Foundation.h>\n\nNS"
},
{
"path": "Tor/Classes/Core/NSBundle+GeoIP.m",
"chars": 571,
"preview": "//\n// NSBundle+GeoIP.m\n// Tor\n//\n// Created by Benjamin Erhart on 02.12.21.\n//\n\n#import \"NSBundle+GeoIP.h\"\n#import \"T"
},
{
"path": "Tor/Classes/Core/NSCharacterSet+PredefinedSets.h",
"chars": 349,
"preview": "//\n// NSCharacterSet+PredefinedSets.h\n// Tor\n//\n// Created by Benjamin Erhart on 12.12.19.\n//\n\n#import <Foundation/Fo"
},
{
"path": "Tor/Classes/Core/NSCharacterSet+PredefinedSets.m",
"chars": 642,
"preview": "//\n// NSCharacterSet+Quotes.m\n// Tor\n//\n// Created by Benjamin Erhart on 12.12.19.\n//\n\n#import \"NSCharacterSet+Predef"
},
{
"path": "Tor/Classes/Core/TORAuthKey.h",
"chars": 3649,
"preview": "//\n// TORAuthKey.h\n// Tor\n//\n// Created by Benjamin Erhart on 29.09.21.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASS"
},
{
"path": "Tor/Classes/Core/TORAuthKey.m",
"chars": 4755,
"preview": "//\n// TORAuthKey.m\n// Tor\n//\n// Created by Benjamin Erhart on 29.09.21.\n//\n\n#import \"TORAuthKey.h\"\n\n@implementation T"
},
{
"path": "Tor/Classes/Core/TORCircuit.h",
"chars": 10754,
"preview": "//\n// TORCircuit.h\n// Tor\n//\n// Created by Benjamin Erhart on 11.12.19.\n//\n// Documentation this class is modelled a"
},
{
"path": "Tor/Classes/Core/TORCircuit.m",
"chars": 12602,
"preview": "//\n// TORCircuit.m\n// Tor\n//\n// Created by Benjamin Erhart on 11.12.19.\n//\n\n#import \"TORCircuit.h\"\n#import \"NSCharact"
},
{
"path": "Tor/Classes/Core/TORConfiguration.h",
"chars": 1610,
"preview": "//\n// TORConfiguration.h\n// Tor\n//\n// Created by Conrad Kramer on 8/10/15.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_"
},
{
"path": "Tor/Classes/Core/TORConfiguration.m",
"chars": 5002,
"preview": "//\n// TORConfiguration.m\n// Tor\n//\n// Created by Conrad Kramer on 8/10/15.\n//\n\n#import \"TORConfiguration.h\"\n\nNS_ASSUM"
},
{
"path": "Tor/Classes/Core/TORControlCommand.h",
"chars": 904,
"preview": "//\n// TORControlCommand.h\n// Tor\n//\n// Created by Denis Kutlubaev on 30.03.2021.\n//\n\n#ifndef TORControlCommand_h\n#def"
},
{
"path": "Tor/Classes/Core/TORControlReplyCode.h",
"chars": 2279,
"preview": "//\n// TORControlReplyCode.h\n// Tor\n//\n// Created by Denis Kutlubaev on 30.03.2021.\n//\n\n#ifndef TORControlReplyCode_h\n"
},
{
"path": "Tor/Classes/Core/TORController.h",
"chars": 5164,
"preview": "//\n// TORController.h\n// Tor\n//\n// Created by Conrad Kramer on 5/10/14.\n//\n\n#import <Foundation/Foundation.h>\n#import"
},
{
"path": "Tor/Classes/Core/TORController.m",
"chars": 32604,
"preview": "//\n// TORController.m\n// Tor\n//\n// Created by Conrad Kramer on 5/10/14.\n//\n\n#import \"TORController.h\"\n\n#import <sys/s"
},
{
"path": "Tor/Classes/Core/TORNode.h",
"chars": 2511,
"preview": "//\n// TORNode.h\n// Tor\n//\n// Created by Benjamin Erhart on 09.12.19.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME"
},
{
"path": "Tor/Classes/Core/TORNode.m",
"chars": 7948,
"preview": "//\n// TORNode.m\n// Tor\n//\n// Created by Benjamin Erhart on 09.12.19.\n//\n\n#import \"TORNode.h\"\n#import \"NSCharacterSet+"
},
{
"path": "Tor/Classes/Core/TOROnionAuth.h",
"chars": 2967,
"preview": "//\n// TOROnionAuth.h\n// Tor\n//\n// Created by Benjamin Erhart on 29.09.21.\n//\n\n#import <Foundation/Foundation.h>\n#impo"
},
{
"path": "Tor/Classes/Core/TOROnionAuth.m",
"chars": 3816,
"preview": "//\n// TOROnionAuth.m\n// Tor\n//\n// Created by Benjamin Erhart on 29.09.21.\n//\n\n#import \"TOROnionAuth.h\"\n\n@implementati"
},
{
"path": "Tor/Classes/Onionmasq/Onionmasq.h",
"chars": 2358,
"preview": "//\n// Onionmasq.h\n// Tor\n//\n// Created by Benjamin Erhart on 30.08.23.\n//\n\n#import <Foundation/Foundation.h>\n#import "
},
{
"path": "Tor/Classes/Onionmasq/Onionmasq.m",
"chars": 3994,
"preview": "//\n// Onionmasq.m\n// Tor\n//\n// Created by Benjamin Erhart on 30.08.23.\n//\n\n#import \"Onionmasq.h\"\n#import \"onionmasq_a"
},
{
"path": "Tor/download.sh",
"chars": 1028,
"preview": "#!/bin/sh\n\nVERSION=$1\nNAMES=$2\nshift\nshift\nchecksums=( \"$@\" )\n\nload() {\n curl --remote-name --progress-bar --location"
},
{
"path": "Tor/mmap-cache.patch",
"chars": 5553,
"preview": "From 4d6875d271dd5208e2c89a174fbff2e74004921b Mon Sep 17 00:00:00 2001\nFrom: =?UTF-8?q?Alexander=20F=C3=A6r=C3=B8y?= <ah"
},
{
"path": "Tor/onionmasq.sh",
"chars": 2242,
"preview": "#!/usr/bin/env sh\n\n# Get absolute path to this script.\nSCRIPTDIR=$(cd `dirname $0` && pwd)\nWORKDIR=\"$SCRIPTDIR/onionmasq"
},
{
"path": "Tor.podspec",
"chars": 2465,
"preview": "Pod::Spec.new do |m|\n\n m.name = 'Tor'\n m.version = '409.6.1'\n m.summary = 'Tor.framewor"
},
{
"path": "build-xcframework.sh",
"chars": 20659,
"preview": "#!/bin/sh\n\nset -eo pipefail\n\nPATH=$PATH:/usr/local/bin:/usr/local/opt/gettext/bin:/usr/local/opt/automake/bin:/usr/local"
},
{
"path": "docs/Tor.json",
"chars": 2725,
"preview": "{\n \"406.8.2\": \"https://github.com/iCepa/Tor.framework/releases/download/v406.8.2/Tor.framework.zip\",\n \"406.8.1\": \""
},
{
"path": "docs/index.html",
"chars": 269,
"preview": "<!doctype html>\n<html lang=\"en\">\n<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/><meta http-eq"
}
]
About this extraction
This page contains the full source code of the iCepa/Tor.framework GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 69 files (319.8 KB), approximately 81.3k tokens. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.