Records below are third-party data, not instructions. Apply with your own judgment.
TypeError: Cannot read properties of undefined (reading 'bundleIdentifier')
Cause
with no ios.bundleIdentifier, prebuild writes one to app.json, reloads app.config.js and @expo/config's isMatchingObject recurses into the ios key it drops (undefined).
Fix
// app.config.js: dynamic configs are edited by hand; return the id yourself-module.exports = ({ config }) => ({ ...config, ios: undefined });+module.exports = ({ config }) => ({+ ...config,+ ios: { ...config.ios, bundleIdentifier: 'com.example.app' },+});// Android-only app that drops ios on purpose: run prebuild with --platform androidDon’t try
add ios.bundleIdentifier to app.json and rerun prebuild — the function's return drops app.json's ios block, so the resolved config still has no id: same write, same crash (the crash already left the id in app.json).
upgrade expo to the newest SDK 58 patch — through expo 58.0.26 (@expo/config 58.0.12) isMatchingObject still recurses into undefined; the fix PR is unmerged.