You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
β― yarn cap doctor
π Capacitor Doctor π
Latest Dependencies:
@capacitor/cli: 4.6.0
@capacitor/core: 4.6.0
@capacitor/android: 4.6.0
@capacitor/ios: 4.6.0
Installed Dependencies:
@capacitor/android: not installed
@capacitor/cli: 4.5.0
@capacitor/core: 4.5.0
@capacitor/ios: 4.5.0
[success] iOS looking great! π
Platform(s)
iOS
Current Behavior
β― yarn cap run ios -l --external
β Copying web assets from build to ios/App/App/public in 31.11ms
β Creating capacitor.config.json in ios/App/App in 792.54ΞΌs
[info] Inlining sourcemaps
β copy ios in 94.23ms
β Updating iOS plugins in 6.29ms
[info] Found 4 Capacitor plugins for ios:
@capacitor/app@4.1.1
@capacitor/haptics@4.1.0
@capacitor/keyboard@4.1.0
@capacitor/status-bar@4.1.0
β Updating iOS native dependencies with pod install in 3.25s
β update ios in 3.27s
[error] SyntaxError: Unexpected token 'E', "Error: spawn ENOTDIR" is not valid JSON
at JSON.parse (<anonymous>)
at Object.getPlatformTargets
(/[...]/.yarn/cache/@capacitor-cli-npm-4.5.0-b394afdec0-4e8a545462.zip/node_modules/@capacitor/cli/dist/util/native-run.js:39:26)
at async Object.runIOS
(/[...]/.yarn/cache/@capacitor-cli-npm-4.5.0-b394afdec0-4e8a545462.zip/node_modules/@capacitor/cli/dist/ios/run.js:13:59)
at async run
(/[...]/.yarn/cache/@capacitor-cli-npm-4.5.0-b394afdec0-4e8a545462.zip/node_modules/@capacitor/cli/dist/tasks/run.js:74:9)
at async runCommand
(/[...]/.yarn/cache/@capacitor-cli-npm-4.5.0-b394afdec0-4e8a545462.zip/node_modules/@capacitor/cli/dist/tasks/run.js:61:13)
at async
/[...]/.yarn/cache/@capacitor-cli-npm-4.5.0-b394afdec0-4e8a545462.zip/node_modules/@capacitor/cli/dist/index.js:123:9
at async
/[...]/.yarn/cache/@capacitor-cli-npm-4.5.0-b394afdec0-4e8a545462.zip/node_modules/@capacitor/cli/dist/telemetry.js:26:13
at async Command.<anonymous>
(/[...]/.yarn/cache/@capacitor-cli-npm-4.5.0-b394afdec0-4e8a545462.zip/node_modules/@capacitor/cli/dist/util/cli.js:12:13)
Expected Behavior
Expected to be able to run the app on an external device successfully.
Code Reproduction
ionic start blank blank --type=react --capacitor
cd blank
yarn set version latest
yarn capacitor add ios
yarn cap run ios -l --external
# or: yarn ionic cap run ios -l --external
Other Technical Details
yarn --version output: 3.3.0
node --version output: v19.2.0
pod --version output (iOS issues only): 1.11.3
The text was updated successfully, but these errors were encountered:
Can you provide a sample app?
Those steps to reproduce don't seem correct, yarn capacitor add ios should fail as you haven't installed @capacitor/ios and yarn cap run ios -l --external is not correct neither, -l --external have no effect on capacitor run command, maybe you are using ionic instead of yarn? (i.e. ionic capacitor add ios)
Can you run npx native-run ios --list --json? looks like it's returning some error instead of the json with the list of the simulator/devices you have.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.
Bug Report
Capacitor Version
Platform(s)
Current Behavior
Expected Behavior
Expected to be able to run the app on an external device successfully.
Code Reproduction
Other Technical Details
yarn --version
output: 3.3.0node --version
output: v19.2.0pod --version
output (iOS issues only): 1.11.3The text was updated successfully, but these errors were encountered: