Closed mariusbolik closed 2 years ago
This is a duplicate of https://github.com/ionic-team/native-run/issues/241
It's working fine for me with the same Xcode and iOS versions
What is the reason for this error and how to fix this? I have the same problem, same error as @mariusbolik My environment information is almost the same as @mariusbolik except I have updated everything to the latest version.
The App can run on device using Xcode but not through ionic cap run ios -l --external
but ionic cap run android -l --external
is working fine.
Output
[capacitor] [error] Error: There was an error installing app
[capacitor] at /path-to-project/node_modules/native-run/dist/ios/lib/client/installation_proxy.js:72:24
[capacitor] at LockdownProtocolReader.callback (/path-to-project/node_modules/native-run/dist/ios/lib/protocol/protocol.js:93:21)
[capacitor] at LockdownProtocolReader.onData (/path-to-project/node_modules/native-run/dist/ios/lib/protocol/protocol.js:53:26)
[capacitor] at Socket.emit (node:events:390:28)
[capacitor] at addChunk (node:internal/streams/readable:315:12)
[capacitor] at readableAddChunk (node:internal/streams/readable:289:9)
[capacitor] at Socket.Readable.push (node:internal/streams/readable:228:10)
[capacitor] at Pipe.onStreamRead (node:internal/stream_base_commons:199:23)
[capacitor]
[ERROR] An error occurred while running subprocess capacitor.
capacitor run ios --no-sync --target cb6c3d5e67e31c13697823c57648f461a903a66d exited with exit code 1.
I also get this error with iOS 16 and Xcode 14. But only on my 2015 iMac. Not on my newer MacBook (Intel). On the MacBook it works without any problem.
I fix this by deleting folder DerivedData in /your-project/ios folder. Does this fix work for you @mariusbolik ?
@Syahrul This actually fixed the problem. Many thanks for that! 🎉
The only issue I still have is that the app opens briefly and then closes again immediately. I then have to open it again manually. But I can live with that.
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.
Version:
naive-run -> 1.6.0 @capacitor/ios -> 3.7.0 @capacitor/core -> 3.7.0
Description:
I updated my iPhone 11 to iOS 15.5 and Xcode to 13.4.1. Sadly, I can't deploy app to my phone anymore. This is the command I used:
ionic capacitor run ios --livereload --external
. It works when I install the app directly with Xcode on my iPhone.Command Output:
Error without
--verbose
Environment Info:
macOS version: 12.5
Xcode version: 13.4.1