I’ve made an Expo app. I’m making an attempt to eject from Expo. To do that, I’ve run the command npx expo prebuild. This appropriately generates the android listing. Nonetheless, the ios listing is just not generated.
By way of analysis, I’ve discovered that I might want to use a Mac OS machine to generate the ios listing. Nonetheless, I haven’t got entry to a Mac OS machine. Is there a distinct solution to generate the ios listing?
Might I generate the ios listing utilizing GitHub Actions? How?
I’ve tried to make use of the next .yml file:
runs-on: macos-latest
steps:
- makes use of: actions/checkout@v2
- identify: Arrange Node.js
makes use of: actions/setup-node@v2
with:
node-version: "20"
- identify: Set up Dependencies
run: npm set up
- identify: Set up Expo CLI
run: npm set up -g expo-cli
- identify: Run expo prebuild to generate iOS and Android directories
run: npx expo prebuild
- identify: Verify if ios listing exists
run: |
if [ ! -d "ios" ]; then
echo "iOS listing doesn't exist!"
exit 1
fi
- identify: Verify if android listing exists
run: |
if [ ! -d "android" ]; then
echo "Android listing doesn't exist!"
exit 1
fi
This works. I’ve added the next traces to the top of the file:
- identify: Add iOS listing as artifact
makes use of: actions/upload-artifact@v2
with:
identify: ios-directory
path: ios/
- identify: Add Android listing as artifact
makes use of: actions/upload-artifact@v2
with:
identify: android-directory
path: android/
This causes the next error within the Arrange job part:
Present runner model: '2.323.0'
Working System
macOS
14.7.4
23H420
Runner Picture
Picture: macos-14-arm64
Model: 20250331.1204
Included Software program: https://github.com/actions/runner-images/blob/macos-14-arm64/20250331.1204/pictures/macos/macos-14-arm64-Readme.md
Picture Launch: https://github.com/actions/runner-images/releases/tag/macos-14-arm64percent2F20250331.1204
Runner Picture Provisioner
GITHUB_TOKEN Permissions
Contents: learn
Metadata: learn
Packages: learn
Secret supply: Actions
Put together workflow listing
Put together all required actions
Getting motion obtain data
Obtain immutable motion package deal 'actions/checkout@v2'
Model: 2.7.0
Digest: sha256:95d28907bc868c0bab52f05f1f84cf8416c9415fba4c92519bc0b83bdce1eae3
Supply commit SHA: ee0669bd1cc54295c223e0bb666b733df41de1c5
Obtain immutable motion package deal 'actions/setup-node@v2'
Model: 2.5.2
Digest: sha256:a8e87bde4bf0e0cb7e65a7900c98100538686fbd712bdd87ab6643ebf7a0a248
Supply commit SHA: 7c12f8017d5436eb855f1ed4399f037a36fbd9e8
Error: Lacking obtain data for actions/upload-artifact@v2
