With the last version of Xcode (12.0), I do not succeed to run my App on my device without usb cable.
When connected, the app is installed and works well, but when I remove the cable the App closes and I cannot reopen it...
Then, I have an alert on Xcode saying "Lost connection to the debugger..."
I tried to modify the Runner configuration settings with Releaser and Debug, but same results.
For info: I am using Flutter sdk.
Please help..
Related
The app gets built and it even seems to get installed, but no icon shows up on home screen.
Any thoughts?
Give this a try:
Make sure you run current iOS and Xcode versions
Open iTunes and connect your device. Make sure you get to the usual device view that let's you sync etc.
Open Xcode and connect your device. Wait for it to finish processing symbol files etc. (Of course make sure, command line tools are installed...)
If you're being asked to trust the counterpart device do so.
Run tns platform clean ios
Try building and running your app
I've successfully compiled the Swift sample code onto my iPhone 6S, however, the status continues to remain in Trying to connect. I'm able to connect with the DJI app itself so it must be something to do with the code or some configuration. Any tips? Also, is there any way to connect to the Phantom with the iOS simulator or is it necessary to compile onto the device to be able to connect to the remote?
OSX: El Capitan 10.11.6
iPhone 6S with iOS 11.0.2
XCode 8.2
You should read the bridge app tutorial
http://developer.dji.com/mobile-sdk/documentation/ios-tutorials/BridgeAppDemo.html
so that you can run your app from the iOS simulator.
As to connecting with iOS 11.0.2 - if you open your app, then un-plug and reconnect the USB cable with your app in focus, how does it go? Some issues are being seen with multi-tasking apps into the DJI remote controllers, and it's an issue that is being worked on.
Hope that helps!
You might have to plug the lightning cable into the phone after the application has already launched, then your Phantom 4 will appear.
I am trying to debug my watch app. I build and try to run as usual. It says Build succeeded, installing to watch etc. but then, instead of launching my app, it says Finished running app on watch. I've restarted Xcode, reinstalled my app on watch etc. but no avail.
What am I doing wrong?
I've also restarted my Mac, my iPhone and my Watch. It then worked.
I restarted everything and it still didn't work. However, after the restart when I first run the app I received an error: Device doesn’t support wireless sync. With this, after disabling the wifi on the watch, things went back to normal.
From my experience, restarting all devices (iPhone, watch, and mac) sometimes allows the app to build on the watch, but it is very frustrating and a long process for a "maybe."
Especially when I get the Device doesn't support wireless sync. the most consistent solve has been disabling wifi on both the watch and the iPhone. Also, have the iPhone connected directly to the computer with a genuine cord.
Good luck.
Also, if you were using the simulator, stop it and quit the simulator before trying to compile to the real device.
You just have to attach the Xcode debugger to the process which is running on the watch!
Xcode -> Debug -> Attach to Process > "name of your app watch extension"
After that Xcode displays "Running ... Extension on Apple Watch" and you can start debugging
Xcode gives me this message every-time I try running my app on my iPhone. (Works fine on the simulator.) (And this occurs in every project I have.) (I also just downloaded Xcode again.)
This is the message I get.
App Installation Failed.
Unknown Error Occurred.
How do I fix this error?
Unplugging iOS Device and plugging it back it in fixed it for me.
Alright, it was a simple fix:
Go into Xcode Preferences -> Accounts -> More Info. Hit the refresh icon.
Clean your project. Project -> Clean.
Force quit Xcode.
Reboot Mac and Device.
If you have the same App but downloaded from AppStore, I suggest to remove the App manually from your device, then try to run the new version with XCode.
After following the suggestions in this thread (restarting iPhone, cleaning Xcode project, quitting and re-launching Xcode) and others (setting Team to None then back to my Team) and unplugging and replugging Lightning connector from my iPhone 6 I was still experiencing this problem. Xcode would even display an error that my iPhone 6 was locked, even though it was not.
I was able to fix it by unplugging the USB-A connector of the USB to Lightning cable from my MacBook Pro, then plugging it back in. I'm not sure why that made the difference, but glad that it did resolve this annoying problem.
I have this issue regularly. There are a number of techniques that help me overcome it, including the classic "turn it off and back on again."
One thing that isn't mentioned here is that the iPhone should be switched on, unlocked, connected to the mac and then the app should be run (with the iPhone unlocked). Don't lock it!
Make sure your device name doesn't have any emoji (Xcode 11.0)
if you using vpn services, then you need to turn off vpn. Works for me
I have been running an app on my ipod that I've been developing for a while now and all of a sudden it won't run. I haven't changed xcode or macos; I've deleted the derived data folder; I've restarted the device, computer and xcode and cleaned.
The error I'm getting is: "could not start debugserver on MyDevice when trying to launch My.app"
My provisioning profile and device are green. I can't understand what I could possibly have changed.
Any ideas?
Thanks.
Restart Xcode and the device and you should be fine.
just CMD+shift+K, clean you project. when it's done, it should be work. at least for me.
Try deleting the installed application from your phone. That worked for me as none of the above methods did.
I had this issue while I was testing iOS beta. I updated iOS version on device and I had to restart xcode and then reconnect to
Restart xcode.
Unplug iPhone/iPad from usb cable (If connected with usb cable).
Turn off wifi and connect again (If you are using wifi debug).
Clean project.
Run your app again.