noracu 0.2.7 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,167 @@
1
+ """Where the phone screen sits inside the iPhone Mirroring window, remembered per window size.
2
+
3
+ Device run 2026-11-10 (macOS 27.2, window 280x620 pt): the phone screen does not fill the mirror
4
+ window. Around it is a transparent margin — a strip above the screen, where the window's own
5
+ controls show while the pointer rests there, and a thin edge on the other sides (the screen spans
6
+ x 0.0286-0.9714, y 0.0613-0.9871). A click on that margin never reaches the phone, and iOS cancels a
7
+ drag that starts or ends on it.
8
+
9
+ verify.screen_rect() finds the screen from one capture of the window. Two things were learned about
10
+ that capture on the same day:
11
+
12
+ - The phone's apps see a capture of the mirror window as a screenshot: LinkedIn and rednote each
13
+ raised their after-screenshot share sheet 1-4 s after every one. So the edges are measured once
14
+ per window size and macOS version and remembered in a small file, not measured before every
15
+ gesture.
16
+ - While the pointer rests on the strip above the screen the window draws its controls there, the
17
+ strip reads as solid and the measurement comes back as the whole window. Such a measurement is
18
+ not trusted and never remembered.
19
+
20
+ The file holds window sizes, the macOS version, the four edges and two timestamps — nothing from
21
+ the phone. It is best-effort: when it cannot be read or written, the edges are measured again.
22
+
23
+ While no trusted measurement is at hand, fallback() says where a point is certainly clear of the margin:
24
+ a tap or long press outside that part of the window is refused and a swipe's points are moved into it.
25
+ """
26
+
27
+ from __future__ import annotations
28
+
29
+ import json
30
+ import os
31
+ import platform
32
+ import time
33
+ from pathlib import Path
34
+
35
+ VERSION = 1
36
+ MIN_TOP = 0.02 # a trusted measurement shows a strip above the screen at least this tall (window units)
37
+ MAX_TOP = 0.25
38
+ MIN_SPAN = 0.5 # and a screen at least half the window wide and tall
39
+ UNTRUSTED_TTL_S = 600 # after an untrusted measurement a tap or long press does not measure again this long
40
+ MAX_SIZES = 16
41
+
42
+ # While the edges are not known (no trusted measurement), a point this close to the window's sides may be on the
43
+ # margin. Each band is the larger of a share of the window and a length in points: the one device measurement
44
+ # (280x620 pt window: 38 pt above the screen, 8 pt on the other sides) does not say whether another window size
45
+ # scales the margin or keeps it. Wider than what was measured, on purpose.
46
+ FALLBACK_TOP = (0.08, 48.0) # (share of the height, points)
47
+ FALLBACK_SIDE = (0.04, 12.0) # (share of the width, points)
48
+ FALLBACK_BOTTOM = (0.02, 12.0)
49
+
50
+
51
+ def cache_file() -> Path:
52
+ return Path.home() / "Library" / "Caches" / "noracu" / "phone-screen-rect.json"
53
+
54
+
55
+ def key(width, height) -> str:
56
+ """One entry per window size and macOS version (an update can redraw the window's frame)."""
57
+ return f"{int(round(width))}x{int(round(height))}@{platform.mac_ver()[0] or 'unknown'}"
58
+
59
+
60
+ def _edges(rect):
61
+ try:
62
+ x0, y0, x1, y1 = (float(v) for v in rect)
63
+ except (TypeError, ValueError):
64
+ return None
65
+ if any(v != v for v in (x0, y0, x1, y1)): # nan
66
+ return None
67
+ return (x0, y0, x1, y1)
68
+
69
+
70
+ def trusted(rect) -> bool:
71
+ """True for a measurement that shows the strip above the screen and a screen of plausible size.
72
+
73
+ (0, 0, 1, 1) — what the capture gives while the pointer rests on that strip — is not trusted,
74
+ and neither is anything with no strip above it: without one there is no telling the phone
75
+ screen from the window's own controls.
76
+ """
77
+ e = _edges(rect)
78
+ if e is None:
79
+ return False
80
+ x0, y0, x1, y1 = e
81
+ return (0.0 <= x0 < x1 <= 1.0 and MIN_TOP <= y0 <= MAX_TOP and y0 < y1 <= 1.0
82
+ and x1 - x0 >= MIN_SPAN and y1 - y0 >= MIN_SPAN)
83
+
84
+
85
+ def contains(rect, x: float, y: float) -> bool:
86
+ x0, y0, x1, y1 = rect
87
+ return x0 <= x <= x1 and y0 <= y <= y1
88
+
89
+
90
+ def fallback(width=None, height=None):
91
+ """The part of the window a point must be in to be sent while the screen's edges are not known:
92
+ (x0, y0, x1, y1), the window less a band at the top (where its own controls are) and along the other sides.
93
+ ``width`` / ``height`` are the window's size in points; without them the bands are shares of the window.
94
+ None when the window is too small to have such a part (the bands are never made thinner to fit)."""
95
+ def band(spec, size):
96
+ share, points = spec
97
+ try:
98
+ size = float(size)
99
+ except (TypeError, ValueError):
100
+ size = 0.0
101
+ return max(share, points / size) if size > 0 else share
102
+
103
+ side, top, bottom = band(FALLBACK_SIDE, width), band(FALLBACK_TOP, height), band(FALLBACK_BOTTOM, height)
104
+ if 2 * side >= 1.0 or top + bottom >= 1.0:
105
+ return None # a window this small has no part that is certainly clear of its margin
106
+ return (side, top, 1.0 - side, 1.0 - bottom)
107
+
108
+
109
+ def _load(path) -> dict:
110
+ try:
111
+ data = json.loads(Path(path).read_text(encoding="utf-8"))
112
+ except (OSError, ValueError):
113
+ return {}
114
+ if not isinstance(data, dict) or data.get("version") != VERSION:
115
+ return {}
116
+ sizes = data.get("sizes")
117
+ return {k: v for k, v in sizes.items() if isinstance(k, str) and isinstance(v, dict)} if isinstance(sizes, dict) else {}
118
+
119
+
120
+ def _save(path, sizes: dict) -> None:
121
+ try:
122
+ p = Path(path)
123
+ p.parent.mkdir(parents=True, exist_ok=True)
124
+ if len(sizes) > MAX_SIZES: # keep the most recently written entries
125
+ newest = sorted(sizes, key=lambda k: max(sizes[k].get("measured_at", 0), sizes[k].get("untrusted_at", 0)))
126
+ sizes = {k: sizes[k] for k in newest[-MAX_SIZES:]}
127
+ tmp = p.with_name(f"{p.name}.{os.getpid()}.tmp")
128
+ tmp.write_text(json.dumps({"version": VERSION, "sizes": sizes}, indent=1) + "\n", encoding="utf-8")
129
+ os.replace(tmp, p)
130
+ except OSError:
131
+ pass # best-effort: without the file the next call measures again
132
+
133
+
134
+ def remembered(k: str, path=None):
135
+ """The trusted edges remembered for the window size named by ``k``, else None. Never captures."""
136
+ rect = _load(path or cache_file()).get(k, {}).get("rect")
137
+ return _edges(rect) if trusted(rect) else None
138
+
139
+
140
+ def resolve(k: str, measure, *, retry_untrusted: bool, now: float | None = None, path=None):
141
+ """Return (rect, how) for the window size named by ``k``.
142
+
143
+ how is "remembered" (from the file, no capture), "measured" (one capture, trusted, now
144
+ remembered), "untrusted" (one capture that could not be trusted; rect is None and nothing is
145
+ remembered but the time) or "not_measured" (rect is None: an untrusted measurement was made less
146
+ than UNTRUSTED_TTL_S ago and ``retry_untrusted`` is False). ``measure()`` runs at most once and
147
+ its exceptions pass through; the caller decides what a failed capture means.
148
+ """
149
+ path = path or cache_file()
150
+ now = time.time() if now is None else now
151
+ sizes = _load(path)
152
+ entry = sizes.get(k, {})
153
+ if trusted(entry.get("rect")):
154
+ return _edges(entry["rect"]), "remembered"
155
+ seen = entry.get("untrusted_at")
156
+ if (not retry_untrusted and isinstance(seen, (int, float)) and not isinstance(seen, bool)
157
+ and 0 <= now - seen < UNTRUSTED_TTL_S):
158
+ return None, "not_measured"
159
+ rect = measure()
160
+ if trusted(rect):
161
+ edges = tuple(round(v, 4) for v in _edges(rect))
162
+ sizes[k] = {"rect": list(edges), "measured_at": int(now)}
163
+ _save(path, sizes)
164
+ return edges, "measured"
165
+ sizes[k] = {"untrusted_at": int(now)}
166
+ _save(path, sizes)
167
+ return None, "untrusted"
@@ -152,6 +152,62 @@ def window_luma(size: tuple[int, int] = (36, 78)) -> bytes:
152
152
  raise WindowError("the mirroring window frame is blank (a window transition)")
153
153
 
154
154
 
155
+ # Device run 2026-11-10 (iPhone Mirroring on macOS 27.2, window 280x620 pt): the phone screen does not
156
+ # fill the mirror window. Above it is a transparent strip (where the window controls show on hover) and
157
+ # around the other sides a thin transparent margin; the screen spans x 0.0286-0.9714, y 0.0613-0.9871 of
158
+ # the window. iOS cancels a drag that ends on that margin: an App Switcher card swiped from y 0.55 to
159
+ # y 0.03 stayed put (0 pixels changed) while the same swipe to y 0.12 closed it, and a share sheet dragged
160
+ # down to y 0.995 never closed. imctl printed "swiped" every time.
161
+ SCREEN_ALPHA_SIZE = (140, 310)
162
+
163
+
164
+ def screen_rect_from_alpha(alpha: bytes, w: int, h: int, threshold: int = 128):
165
+ """Normalized (x0, y0, x1, y1) of the opaque phone screen in a w*h alpha map (row 0 = top).
166
+
167
+ Reads the middle row and the middle column only, so the rounded corners do not matter, and reads
168
+ alpha rather than colour, so a black app edge still counts as screen. Raises WindowError when
169
+ either line has no opaque pixel (a blank or transparent frame).
170
+ """
171
+ if len(alpha) != w * h:
172
+ raise ValueError(f"alpha map is {len(alpha)} bytes, expected {w * h}")
173
+ mid_row, mid_col = h // 2, w // 2
174
+ cols = [x for x in range(w) if alpha[mid_row * w + x] >= threshold]
175
+ rows = [y for y in range(h) if alpha[y * w + mid_col] >= threshold]
176
+ if not cols or not rows:
177
+ raise WindowError("the mirror frame shows no opaque phone screen (blank or transparent frame)")
178
+ return (cols[0] / w, rows[0] / h, (cols[-1] + 1) / w, (rows[-1] + 1) / h)
179
+
180
+
181
+ def screen_rect(size: tuple[int, int] = SCREEN_ALPHA_SIZE):
182
+ """Where the phone screen sits inside the mirroring window, normalized (x0, y0, x1, y1).
183
+
184
+ The same window pixels as window_luma (CGWindowListCreateImage, frame ignored, nominal
185
+ resolution, so the image matches the window bounds that taps and swipes are normalized to),
186
+ drawn into an alpha-only bitmap. Raises WindowError when the window is missing or off screen,
187
+ or its image cannot be read.
188
+ """
189
+ import Quartz
190
+
191
+ w, h = size
192
+ wi = get_window_info()
193
+ if not wi:
194
+ raise WindowError("iPhone Mirroring window not found")
195
+ if not wi.get("onscreen", False):
196
+ raise WindowError(
197
+ "the mirroring window is not on screen "
198
+ "(hidden, minimized or on another Space)"
199
+ )
200
+ img = _capture_window_image(wi["id"])
201
+ if img is None:
202
+ raise WindowError("could not read the mirroring window's image")
203
+ buf = bytearray(w * h) # bitmap backing store; never resized while ctx lives
204
+ ctx = Quartz.CGBitmapContextCreate(buf, w, h, 8, w, None, Quartz.kCGImageAlphaOnly)
205
+ if ctx is None:
206
+ raise WindowError("CGBitmapContextCreate failed")
207
+ Quartz.CGContextDrawImage(ctx, Quartz.CGRectMake(0, 0, w, h), img)
208
+ return screen_rect_from_alpha(bytes(buf), w, h)
209
+
210
+
155
211
  def is_capture_error(exc: BaseException) -> bool:
156
212
  """True when ``exc`` means the pixels a check needed are not the phone's.
157
213
 
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 noracu contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,228 @@
1
+ // !$*UTF8*$!
2
+ {
3
+ archiveVersion = 1;
4
+ objectVersion = 56;
5
+ classes = {
6
+ };
7
+ objects = {
8
+
9
+ /* Begin PBXBuildFile section */
10
+ 1A600001 /* NoracuRunner.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1A000001 /* NoracuRunner.swift */; };
11
+ 1A600002 /* RunnerServer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1A000002 /* RunnerServer.swift */; };
12
+ 1A600003 /* RunnerCommands.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1A000003 /* RunnerCommands.swift */; };
13
+ /* End PBXBuildFile section */
14
+
15
+ /* Begin PBXFileReference section */
16
+ 1A000001 /* NoracuRunner.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NoracuRunner.swift; sourceTree = "<group>"; };
17
+ 1A000002 /* RunnerServer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerServer.swift; sourceTree = "<group>"; };
18
+ 1A000003 /* RunnerCommands.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerCommands.swift; sourceTree = "<group>"; };
19
+ 1A000004 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = text; path = README.md; sourceTree = "<group>"; };
20
+ 1A000005 /* LICENSE */ = {isa = PBXFileReference; lastKnownFileType = text; path = LICENSE; sourceTree = "<group>"; };
21
+ 1A200000 /* NoracuRunnerUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = NoracuRunnerUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
22
+ /* End PBXFileReference section */
23
+
24
+ /* Begin PBXGroup section */
25
+ 1A100000 /* Products */ = {
26
+ isa = PBXGroup;
27
+ children = (
28
+ 1A200000 /* NoracuRunnerUITests.xctest */,
29
+ );
30
+ name = Products;
31
+ sourceTree = "<group>";
32
+ };
33
+ 1A100001 /* NoracuRunnerUITests */ = {
34
+ isa = PBXGroup;
35
+ children = (
36
+ 1A000001 /* NoracuRunner.swift */,
37
+ 1A000002 /* RunnerServer.swift */,
38
+ 1A000003 /* RunnerCommands.swift */,
39
+ );
40
+ path = NoracuRunnerUITests;
41
+ sourceTree = "<group>";
42
+ };
43
+ 1A100002 /* main */ = {
44
+ isa = PBXGroup;
45
+ children = (
46
+ 1A100001 /* NoracuRunnerUITests */,
47
+ 1A000004 /* README.md */,
48
+ 1A000005 /* LICENSE */,
49
+ 1A100000 /* Products */,
50
+ );
51
+ sourceTree = "<group>";
52
+ };
53
+ /* End PBXGroup section */
54
+
55
+ /* Begin PBXNativeTarget section */
56
+ 1A300000 /* NoracuRunnerUITests */ = {
57
+ isa = PBXNativeTarget;
58
+ buildConfigurationList = 1A400000 /* Build configuration list for PBXNativeTarget "NoracuRunnerUITests" */;
59
+ buildPhases = (
60
+ 1A500000 /* Sources */,
61
+ );
62
+ buildRules = (
63
+ );
64
+ dependencies = (
65
+ );
66
+ name = NoracuRunnerUITests;
67
+ packageProductDependencies = (
68
+ );
69
+ productName = NoracuRunnerUITests;
70
+ productReference = 1A200000 /* NoracuRunnerUITests.xctest */;
71
+ productType = "com.apple.product-type.bundle.ui-testing";
72
+ };
73
+ /* End PBXNativeTarget section */
74
+
75
+ /* Begin PBXProject section */
76
+ 1A900000 /* Project object */ = {
77
+ isa = PBXProject;
78
+ attributes = {
79
+ BuildIndependentTargetsInParallel = 1;
80
+ LastSwiftUpdateCheck = 1540;
81
+ LastUpgradeCheck = 1540;
82
+ TargetAttributes = {
83
+ 1A300000 = {
84
+ CreatedOnToolsVersion = 15.4;
85
+ };
86
+ };
87
+ };
88
+ buildConfigurationList = 1A800000 /* Build configuration list for PBXProject "NoracuRunner" */;
89
+ compatibilityVersion = "Xcode 14.0";
90
+ developmentRegion = en;
91
+ hasScannedForEncodings = 0;
92
+ knownRegions = (
93
+ en,
94
+ Base,
95
+ );
96
+ mainGroup = 1A100002 /* main */;
97
+ productRefGroup = 1A100000 /* Products */;
98
+ projectDirPath = "";
99
+ projectRoot = "";
100
+ targets = (
101
+ 1A300000 /* NoracuRunnerUITests */,
102
+ );
103
+ };
104
+ /* End PBXProject section */
105
+
106
+ /* Begin PBXSourcesBuildPhase section */
107
+ 1A500000 /* Sources */ = {
108
+ isa = PBXSourcesBuildPhase;
109
+ buildActionMask = 2147483647;
110
+ files = (
111
+ 1A600001 /* NoracuRunner.swift in Sources */,
112
+ 1A600002 /* RunnerServer.swift in Sources */,
113
+ 1A600003 /* RunnerCommands.swift in Sources */,
114
+ );
115
+ runOnlyForDeploymentPostprocessing = 0;
116
+ };
117
+ /* End PBXSourcesBuildPhase section */
118
+
119
+ /* Begin XCBuildConfiguration section */
120
+ 1A700001 /* Debug */ = {
121
+ isa = XCBuildConfiguration;
122
+ buildSettings = {
123
+ CODE_SIGN_STYLE = Automatic;
124
+ DEVELOPMENT_TEAM = "";
125
+ GENERATE_INFOPLIST_FILE = YES;
126
+ IPHONEOS_DEPLOYMENT_TARGET = 17.0;
127
+ NORACU_BUNDLE_PREFIX = "dev.noracu.t$(DEVELOPMENT_TEAM)";
128
+ PRODUCT_BUNDLE_IDENTIFIER = "$(NORACU_BUNDLE_PREFIX).runner";
129
+ PRODUCT_NAME = "$(TARGET_NAME)";
130
+ SDKROOT = iphoneos;
131
+ SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
132
+ SWIFT_VERSION = 5.0;
133
+ TARGETED_DEVICE_FAMILY = "1,2";
134
+ };
135
+ name = Debug;
136
+ };
137
+ 1A700002 /* Release */ = {
138
+ isa = XCBuildConfiguration;
139
+ buildSettings = {
140
+ CODE_SIGN_STYLE = Automatic;
141
+ DEVELOPMENT_TEAM = "";
142
+ GENERATE_INFOPLIST_FILE = YES;
143
+ IPHONEOS_DEPLOYMENT_TARGET = 17.0;
144
+ NORACU_BUNDLE_PREFIX = "dev.noracu.t$(DEVELOPMENT_TEAM)";
145
+ PRODUCT_BUNDLE_IDENTIFIER = "$(NORACU_BUNDLE_PREFIX).runner";
146
+ PRODUCT_NAME = "$(TARGET_NAME)";
147
+ SDKROOT = iphoneos;
148
+ SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
149
+ SWIFT_VERSION = 5.0;
150
+ TARGETED_DEVICE_FAMILY = "1,2";
151
+ };
152
+ name = Release;
153
+ };
154
+ 1A710001 /* Debug */ = {
155
+ isa = XCBuildConfiguration;
156
+ buildSettings = {
157
+ ALWAYS_SEARCH_USER_PATHS = NO;
158
+ CLANG_ENABLE_MODULES = YES;
159
+ CLANG_ENABLE_OBJC_ARC = YES;
160
+ CLANG_WARN_BOOL_CONVERSION = YES;
161
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
162
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
163
+ COPY_PHASE_STRIP = NO;
164
+ DEBUG_INFORMATION_FORMAT = dwarf;
165
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
166
+ ENABLE_TESTABILITY = YES;
167
+ GCC_C_LANGUAGE_STANDARD = gnu17;
168
+ GCC_DYNAMIC_NO_PIC = NO;
169
+ GCC_OPTIMIZATION_LEVEL = 0;
170
+ GCC_PREPROCESSOR_DEFINITIONS = (
171
+ "DEBUG=1",
172
+ "$(inherited)",
173
+ );
174
+ MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
175
+ MTL_FAST_MATH = YES;
176
+ ONLY_ACTIVE_ARCH = YES;
177
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
178
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
179
+ };
180
+ name = Debug;
181
+ };
182
+ 1A710002 /* Release */ = {
183
+ isa = XCBuildConfiguration;
184
+ buildSettings = {
185
+ ALWAYS_SEARCH_USER_PATHS = NO;
186
+ CLANG_ENABLE_MODULES = YES;
187
+ CLANG_ENABLE_OBJC_ARC = YES;
188
+ CLANG_WARN_BOOL_CONVERSION = YES;
189
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
190
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
191
+ COPY_PHASE_STRIP = NO;
192
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
193
+ ENABLE_NS_ASSERTIONS = NO;
194
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
195
+ GCC_C_LANGUAGE_STANDARD = gnu17;
196
+ GCC_OPTIMIZATION_LEVEL = s;
197
+ MTL_ENABLE_DEBUG_INFO = NO;
198
+ SWIFT_COMPILATION_MODE = wholemodule;
199
+ SWIFT_OPTIMIZATION_LEVEL = "-O";
200
+ VALIDATE_PRODUCT = YES;
201
+ };
202
+ name = Release;
203
+ };
204
+ /* End XCBuildConfiguration section */
205
+
206
+ /* Begin XCConfigurationList section */
207
+ 1A400000 /* Build configuration list for PBXNativeTarget "NoracuRunnerUITests" */ = {
208
+ isa = XCConfigurationList;
209
+ buildConfigurations = (
210
+ 1A700001 /* Debug */,
211
+ 1A700002 /* Release */,
212
+ );
213
+ defaultConfigurationIsVisible = 0;
214
+ defaultConfigurationName = Release;
215
+ };
216
+ 1A800000 /* Build configuration list for PBXProject "NoracuRunner" */ = {
217
+ isa = XCConfigurationList;
218
+ buildConfigurations = (
219
+ 1A710001 /* Debug */,
220
+ 1A710002 /* Release */,
221
+ );
222
+ defaultConfigurationIsVisible = 0;
223
+ defaultConfigurationName = Release;
224
+ };
225
+ /* End XCConfigurationList section */
226
+ };
227
+ rootObject = 1A900000 /* Project object */;
228
+ }
@@ -0,0 +1,69 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Scheme
3
+ LastUpgradeVersion = "2700"
4
+ version = "1.7">
5
+ <BuildAction
6
+ parallelizeBuildables = "YES"
7
+ buildImplicitDependencies = "YES">
8
+ <BuildActionEntries>
9
+ <BuildActionEntry
10
+ buildForTesting = "YES"
11
+ buildForRunning = "NO"
12
+ buildForProfiling = "NO"
13
+ buildForArchiving = "NO"
14
+ buildForAnalyzing = "NO">
15
+ <BuildableReference
16
+ BuildableIdentifier = "primary"
17
+ BlueprintIdentifier = "1A300000"
18
+ BuildableName = "NoracuRunnerUITests.xctest"
19
+ BlueprintName = "NoracuRunnerUITests"
20
+ ReferencedContainer = "container:NoracuRunner.xcodeproj">
21
+ </BuildableReference>
22
+ </BuildActionEntry>
23
+ </BuildActionEntries>
24
+ </BuildAction>
25
+ <TestAction
26
+ buildConfiguration = "Debug"
27
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29
+ shouldUseLaunchSchemeArgsEnv = "YES"
30
+ shouldAutocreateTestPlan = "YES">
31
+ <Testables>
32
+ <TestableReference
33
+ skipped = "NO">
34
+ <BuildableReference
35
+ BuildableIdentifier = "primary"
36
+ BlueprintIdentifier = "1A300000"
37
+ BuildableName = "NoracuRunnerUITests.xctest"
38
+ BlueprintName = "NoracuRunnerUITests"
39
+ ReferencedContainer = "container:NoracuRunner.xcodeproj">
40
+ </BuildableReference>
41
+ </TestableReference>
42
+ </Testables>
43
+ </TestAction>
44
+ <LaunchAction
45
+ buildConfiguration = "Debug"
46
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
47
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
48
+ launchStyle = "0"
49
+ useCustomWorkingDirectory = "NO"
50
+ ignoresPersistentStateOnLaunch = "NO"
51
+ debugDocumentVersioning = "YES"
52
+ debugServiceExtension = "internal"
53
+ allowLocationSimulation = "YES">
54
+ </LaunchAction>
55
+ <ProfileAction
56
+ buildConfiguration = "Release"
57
+ shouldUseLaunchSchemeArgsEnv = "YES"
58
+ savedToolIdentifier = ""
59
+ useCustomWorkingDirectory = "NO"
60
+ debugDocumentVersioning = "YES">
61
+ </ProfileAction>
62
+ <AnalyzeAction
63
+ buildConfiguration = "Debug">
64
+ </AnalyzeAction>
65
+ <ArchiveAction
66
+ buildConfiguration = "Release"
67
+ revealArchiveInOrganizer = "YES">
68
+ </ArchiveAction>
69
+ </Scheme>