software-mansion / setup-ci

CLI to spin your CI/CD for react-native!
MIT License
160 stars 1 forks source link

fix: ios app name resolution on linux #118

Closed km1chno closed 2 months ago

km1chno commented 2 months ago

Why

npx expo prebuild on linux generates ios/ directory without {iOSProjectName}.xcworkspace.

When running npx expo prebuild && ls -al ios | awk -F' ' '{print $NF}' in expo project, the results are:

macos

.gitignore
.xcode.env
.xcode.env.local
Podfile
Podfile.lock
Podfile.properties.json
Pods
build
{iOSProjectName}
{iOSProjectName}.xcodeproj
{iOSProjectName}.xcworkspace

linux

.gitignore
.xcode.env
Podfile
Podfile.properties.json
{iOSProjectName}
{iOSProjectName}.xcodeproj

Solution

Evaluate iOSAppName based on ios/*.xcodeproj instead of ios/*.xcworkspace.

Other changes

Change jest workflow runner from macos-latest to ubuntu-latest.