I’m having trouble debugging my Ionic React app built with Capacitor 5.5.0.
When I build locally and deploy via XCode, it’s fine; the app starts and I can log in and use all the features.
However, when I build using GitHub Actions and deploy via TestFlight, I see my splash screen and then I get a blank screen. I want to debug what is going wrong here, so I connected my iPhone via USB and in Safari, I tried to use Develop -> iPhone
from the menu, but it says “No inspectable applications.”
I have Developer mode and Web Inspector turned on for the iPhone.
In capacitor.config.ts
, I set webContentsDebbugingEnabled
to true. So what more do I need to do to debug a release build?
Here’s the full content of my capacitor.config.ts
:
// eslint-disable-next-line import/no-extraneous-dependencies
import { CapacitorConfig } from '@capacitor/cli';
const config: CapacitorConfig = {
appId: 'com.example.app',
appName: 'my AppI',
webDir: 'build',
plugins: {
CapacitorHttp: {
enabled: true,
},
CapacitorCookies: {
enabled: true,
},
PushNotifications: {
presentationOptions: ['badge', 'sound', 'alert'],
},
SplashScreen: {
// Show for five seconds.
launchShowDuration: 5000,
launchAutoHide: true,
showSpinner: true,
iosSpinnerStyle: 'large',
androidSpinnerStyle: 'large',
spinnerColor: '#007849',
},
},
server: {
// https://capacitorjs.com/docs/updating/5-0#update-androidscheme
androidScheme: 'http',
},
cordova: {
preferences: {
BILLING_KEY:
'123',
},
},
ios: {
webContentsDebuggingEnabled: true,
},
android: {
webContentsDebuggingEnabled: true,
},
};
export default config;