fix(ci): share-extension injector looked one dir too high for the xcodeproj
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 <noreply@anthropic.com>
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
require 'xcodeproj'
|
require 'xcodeproj'
|
||||||
require 'fileutils'
|
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')
|
PROJECT = File.join(ROOT, 'ios', 'App', 'App.xcodeproj')
|
||||||
SRC_DIR = File.join(ROOT, 'ios-share') # our checked-in extension sources
|
SRC_DIR = File.join(ROOT, 'ios-share') # our checked-in extension sources
|
||||||
APP_DIR = File.join(ROOT, 'ios', 'App')
|
APP_DIR = File.join(ROOT, 'ios', 'App')
|
||||||
|
|||||||
Reference in New Issue
Block a user