git.iko.soy/rowtype-yoga/purescript-yoga-react-native
on main help sign in
Fix Ghostty build: remove invalid __bridge cast, add GameController framework
commit777ec760457b170ef42c9ccd1ad0153628523e46 authorMark <mark.eibes@gmail.com> dateThu 19 Feb 2026, 21:28 (7 months ago) parent36c7474
3 files changed+10−6
example-macos/ios/build/generated/autolinking/autolinking.json+2−2 example-macos/macos/YogaReactExample-macOS/RCTGhosttyTerminalManager.m+2−2 example-macos/macos/YogaReactExample.xcodeproj/project.pbxproj+6−2
example-macos/ios/build/generated/autolinking/autolinking.json+2−2
@@ -303,7 +303,7 @@
303303 {
304304 "name": "--terminal <string>",
305305 "description": "Launches the Metro Bundler in a new window using the specified terminal path.",
306− "default": "zed"
306+ "default": "iTerm.app"
307307 },
308308 {
309309 "name": "--binary-path <string>",
@@ -471,7 +471,7 @@
471471 {
472472 "name": "--terminal <string>",
473473 "description": "Launches the Metro Bundler in a new window using the specified terminal path.",
474− "default": "zed"
474+ "default": "iTerm.app"
475475 },
476476 {
477477 "name": "--appId <string>",
example-macos/macos/YogaReactExample-macOS/RCTGhosttyTerminalManager.m+2−2
@@ -82,7 +82,7 @@ static void rt_read_clipboard(void *ud, ghostty_clipboard_e clipboard,
8282 void *state) {
8383 NSPasteboard *pb = [NSPasteboard generalPasteboard];
8484 NSString *str = [pb stringForType:NSPasteboardTypeString];
85− ghostty_surface_t surface = (__bridge ghostty_surface_t)ud;
85+ ghostty_surface_t surface = ud;
8686 if (str) {
8787 ghostty_surface_complete_clipboard_request(surface,
8888 str.UTF8String,
@@ -93,7 +93,7 @@ static void rt_read_clipboard(void *ud, ghostty_clipboard_e clipboard,
9393static void rt_confirm_read_clipboard(void *ud, const char *text,
9494 void *state,
9595 ghostty_clipboard_request_e req) {
96− ghostty_surface_t surface = (__bridge ghostty_surface_t)ud;
96+ ghostty_surface_t surface = ud;
9797 ghostty_surface_complete_clipboard_request(surface, text, state, true);
9898}
9999
example-macos/macos/YogaReactExample.xcodeproj/project.pbxproj+6−2
@@ -16,7 +16,6 @@
1616 AA0000032437B4B30078DB4F /* RCTFinderViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = AA0000022437B4B30078DB4F /* RCTFinderViewManager.m */; };
1717 AA0000052437B4B30078DB4F /* RCTNativeShowcaseManager.m in Sources */ = {isa = PBXBuildFile; fileRef = AA0000042437B4B30078DB4F /* RCTNativeShowcaseManager.m */; };
1818 AA0000072437B4B30078DB4F /* RCTMacOSControlsManager.m in Sources */ = {isa = PBXBuildFile; fileRef = AA0000062437B4B30078DB4F /* RCTMacOSControlsManager.m */; };
19− DD0000012437B4B30078DB4F /* RCTGhosttyTerminalManager.m in Sources */ = {isa = PBXBuildFile; fileRef = DD0000002437B4B30078DB4F /* RCTGhosttyTerminalManager.m */; };
2019 BB0000012437B4B30078DB4F /* windy_tree.riv in Resources */ = {isa = PBXBuildFile; fileRef = BB0000002437B4B30078DB4F /* windy_tree.riv */; };
2120 BB0000032437B4B30078DB4F /* light_switch.riv in Resources */ = {isa = PBXBuildFile; fileRef = BB0000022437B4B30078DB4F /* light_switch.riv */; };
2221 BB0000052437B4B30078DB4F /* rating_animation.riv in Resources */ = {isa = PBXBuildFile; fileRef = BB0000042437B4B30078DB4F /* rating_animation.riv */; };
@@ -37,6 +36,7 @@
3736 CC0000152437B4B30078DB4F /* partyblob.gif in Resources */ = {isa = PBXBuildFile; fileRef = CC0000162437B4B30078DB4F /* partyblob.gif */; };
3837 CC0000172437B4B30078DB4F /* typingcat.gif in Resources */ = {isa = PBXBuildFile; fileRef = CC0000182437B4B30078DB4F /* typingcat.gif */; };
3938 CC0000192437B4B30078DB4F /* ultraparrot.gif in Resources */ = {isa = PBXBuildFile; fileRef = CC00001A2437B4B30078DB4F /* ultraparrot.gif */; };
39+ DD0000012437B4B30078DB4F /* RCTGhosttyTerminalManager.m in Sources */ = {isa = PBXBuildFile; fileRef = DD0000002437B4B30078DB4F /* RCTGhosttyTerminalManager.m */; };
4040 DEB487CCA36791EC34548205 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 2F264B867F71A9A4C58140DE /* PrivacyInfo.xcprivacy */; };
4141/* End PBXBuildFile section */
4242
@@ -57,7 +57,6 @@
5757 AA0000022437B4B30078DB4F /* RCTFinderViewManager.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RCTFinderViewManager.m; sourceTree = "<group>"; };
5858 AA0000042437B4B30078DB4F /* RCTNativeShowcaseManager.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RCTNativeShowcaseManager.m; sourceTree = "<group>"; };
5959 AA0000062437B4B30078DB4F /* RCTMacOSControlsManager.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RCTMacOSControlsManager.m; sourceTree = "<group>"; };
60− DD0000002437B4B30078DB4F /* RCTGhosttyTerminalManager.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RCTGhosttyTerminalManager.m; sourceTree = "<group>"; };
6160 BB0000002437B4B30078DB4F /* windy_tree.riv */ = {isa = PBXFileReference; lastKnownFileType = file; path = windy_tree.riv; sourceTree = "<group>"; };
6261 BB0000022437B4B30078DB4F /* light_switch.riv */ = {isa = PBXFileReference; lastKnownFileType = file; path = light_switch.riv; sourceTree = "<group>"; };
6362 BB0000042437B4B30078DB4F /* rating_animation.riv */ = {isa = PBXFileReference; lastKnownFileType = file; path = rating_animation.riv; sourceTree = "<group>"; };
@@ -78,6 +77,7 @@
7877 CC0000162437B4B30078DB4F /* partyblob.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = partyblob.gif; sourceTree = "<group>"; };
7978 CC0000182437B4B30078DB4F /* typingcat.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = typingcat.gif; sourceTree = "<group>"; };
8079 CC00001A2437B4B30078DB4F /* ultraparrot.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = ultraparrot.gif; sourceTree = "<group>"; };
80+ DD0000002437B4B30078DB4F /* RCTGhosttyTerminalManager.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RCTGhosttyTerminalManager.m; sourceTree = "<group>"; };
8181 ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
8282/* End PBXFileReference section */
8383
@@ -513,6 +513,7 @@
513513 INFOPLIST_FILE = "YogaReactExample-macos/Info.plist";
514514 LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
515515 LIBRARY_SEARCH_PATHS = (
516+ "$(SDKROOT)/usr/lib/swift",
516517 "$(inherited)",
517518 "$(HOME)/code/ghostty/zig-out/lib",
518519 );
@@ -529,6 +530,7 @@
529530 "-framework QuartzCore",
530531 "-framework IOSurface",
531532 "-framework Carbon",
533+ "-framework GameController",
532534 );
533535 PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.$(PRODUCT_NAME:rfc1034identifier)";
534536 PRODUCT_NAME = YogaReactExample;
@@ -553,6 +555,7 @@
553555 INFOPLIST_FILE = "YogaReactExample-macos/Info.plist";
554556 LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
555557 LIBRARY_SEARCH_PATHS = (
558+ "$(SDKROOT)/usr/lib/swift",
556559 "$(inherited)",
557560 "$(HOME)/code/ghostty/zig-out/lib",
558561 );
@@ -569,6 +572,7 @@
569572 "-framework QuartzCore",
570573 "-framework IOSurface",
571574 "-framework Carbon",
575+ "-framework GameController",
572576 );
573577 PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.$(PRODUCT_NAME:rfc1034identifier)";
574578 PRODUCT_NAME = YogaReactExample;