From 59310419ba230f4ace0d9b77f724abdfb7af7637 Mon Sep 17 00:00:00 2001 From: sravan Date: Fri, 24 Jul 2026 15:28:20 +0530 Subject: [PATCH] fix(ci): share-extension injector looked one dir too high for the xcodeproj MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Codemagic log: "xcodeproj not found at /Users/builder/clone/ios/App/App.xcodeproj" — missing the `mobile/` segment. The script lives in mobile/scripts, so __dir__ is mobile/scripts and `File.expand_path('../..', __dir__)` resolved to the REPO ROOT, not mobile/. The project is at mobile/ios/App/App.xcodeproj. Changed to '..' so ROOT = mobile, which fixes PROJECT, SRC_DIR, APP_DIR and the entitlements path together. Co-Authored-By: Claude Opus 4.8 --- mobile/scripts/add-share-extension.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/scripts/add-share-extension.rb b/mobile/scripts/add-share-extension.rb index 6f292e6..e6f0c70 100644 --- a/mobile/scripts/add-share-extension.rb +++ b/mobile/scripts/add-share-extension.rb @@ -20,7 +20,7 @@ require 'xcodeproj' require 'fileutils' -ROOT = File.expand_path('../..', __dir__) # repo/mobile +ROOT = File.expand_path('..', __dir__) # repo/mobile (this script is in mobile/scripts) PROJECT = File.join(ROOT, 'ios', 'App', 'App.xcodeproj') SRC_DIR = File.join(ROOT, 'ios-share') # our checked-in extension sources APP_DIR = File.join(ROOT, 'ios', 'App')