Status: much more severe than iris/mobile's gap. ios/ only contains a
single subdirectory (AreteWidgets/) and no main target sources, no Podfile, no
.xcodeproj. The whole iOS native project needs to be generated from scratch.
Closes #57 for arete; broader native scaffolding is tracked in #61.
What's present#
apps/arete/mobile/ios/
└── AreteWidgets/ # WidgetKit extension source only
That's the entire iOS scaffold. There is no main app target, no AppDelegate, no Info.plist, no LaunchScreen, no Assets.xcassets, no Podfile, no .xcodeproj.
What's missing (everything)#
ios/Arete/— main app target source files:AppDelegate.swift(or .mm if using bridging mode)Info.plistwith the bundle identifierArete.entitlementsfor push, biometrics, locationLaunchScreen.storyboardAssets.xcassets/- main bundle source folders mirroring the JS routes
ios/Arete.xcodeproj/project.pbxprojios/Arete.xcworkspace/(created bypod install)ios/Podfileandios/Podfile.properties.jsonindex.jsat the package root registering the RN component viaAppRegistry.registerComponent('Arete', () => App)metro.config.jsfor the bundlerbabel.config.jswith the RN preset
The android/ directory has the same problem — only app/ is present without
the surrounding gradle scaffolding.
Generate#
Because nothing scaffolding-side exists, the only safe path is a fresh RN CLI init:
RN_VERSION="$(node -e "console.log(require('./apps/arete/mobile/package.json').dependencies['react-native'])")"
npx @react-native-community/cli@latest init Arete \
--version "$RN_VERSION" \
--directory /tmp/arete-scaffold
# Copy the full ios + android trees + bundler config into our package
cp -r /tmp/arete-scaffold/ios/* apps/arete/mobile/ios/
cp -r /tmp/arete-scaffold/android/* apps/arete/mobile/android/
cp /tmp/arete-scaffold/index.js apps/arete/mobile/
cp /tmp/arete-scaffold/metro.config.js apps/arete/mobile/
cp /tmp/arete-scaffold/babel.config.js apps/arete/mobile/
# Preserve the AreteWidgets/ + android/app/ that were already in tree
# (the CLI's `cp` is non-destructive because we copied subtrees, not
# whole `ios/` / `android/` over with --delete)
# Update Info.plist bundle ID and display name to match the previous
# convention used by the AreteWidgets target.
# Add the AreteWidgets extension target via Xcode → File → New → Target
rm -rf /tmp/arete-scaffold
cd apps/arete/mobile/ios && pod install
cd ../android && ./gradlew assembleDebug
After scaffolding, run scripts/check-ios-toolchain.sh to confirm the host
toolchain (Xcode 15+ / Ruby 3.x / CocoaPods 1.15+).
Until scaffolding lands#
- arete/mobile is NOT buildable as a native app right now. Running
pnpm iosorpnpm androidwill fail. pnpm typecheck(npx tsc --noEmit) andpnpm test(jest) are the only working dev loops; the JS sources are still meaningful TypeScript modules.mobile-build-smoke.ymldeliberately excludes arete/mobile until this scaffold lands.- Jest test runs (38 failing suites as of audit) are tracked separately under #70 — those failures are test-logic drift, not scaffolding gaps, and can be debugged from the JS side alone.