capacitor: bug: `npx cap run iOS` does not deploy app to physical device
Bug Report
Capacitor Version
npx cap doctor ios
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 4.6.2
@capacitor/core: 4.6.2
@capacitor/android: 4.6.2
@capacitor/ios: 4.6.2
Installed Dependencies:
@capacitor/cli: 4.6.2
@capacitor/core: 4.6.2
@capacitor/ios: 4.6.2
@capacitor/android: 4.6.2
[success] iOS looking great! 👌
Platform(s)
- iOS
Current Behavior
When npx cap run iOS targets a simulator, everything works as expected.
When npx cap run iOS targets a physical device, the command gives a success output (see below), but the app is not deployed on the device.
✔ Copying web assets from out to ios/App/App/public in 98.45ms
✔ Creating capacitor.config.json in ios/App/App in 807.00μs
[info] Found 1 Cordova plugin for ios:
pushy-cordova@1.0.51
[info] Inlining sourcemaps
✔ copy ios in 166.14ms
✔ Updating iOS plugins in 4.70ms
[info] Found 14 Capacitor plugins for ios:
@byteowls/capacitor-filesharer@4.0.0
@capacitor-community/bluetooth-le@2.1.0
@capacitor-community/keep-awake@3.0.0
@capacitor/app@4.1.1
@capacitor/camera@4.1.4
@capacitor/device@4.1.0
@capacitor/dialog@4.1.0
@capacitor/keyboard@4.1.1
@capacitor/local-notifications@4.1.4
@capacitor/network@4.1.0
@capacitor/preferences@4.0.2
@capacitor/share@4.1.0
@capacitor/status-bar@4.1.1
@sentry/capacitor@0.11.0
[info] Found 1 Cordova plugin for ios:
pushy-cordova@1.0.51
✔ Updating iOS native dependencies with pod install in 2.24s
Is there a way to run the command in a verbose mode ?
My setup uses XCode Version 14.2 (14C18), might it be linked ? (though it works fine when using the “run” button in XCode)
Expected Behavior
The app should be deployed to the phone.
Code Reproduction
I get the exact same result with @capacitor/create-app;
Other Technical Details
npm --version output: 8.19.2
node --version output: v18.12.1
pod --version output (iOS issues only): 1.11.3 (homebrew on M1 Mac)
device iOS version: 16.3
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 19 (7 by maintainers)
Seeing the same problem. Would love to hear about workarounds!