XCode: 11.1 OS: 10.15 Test device: iPhone 5s, iOS: 12.4.2
Hi guys, I made a stupid mistake to immediately upgrade Xcode and MacOS, without waiting for a later stable version.
Anyway, if I made changes in my code, for example adding a NSLog() line, this addition is not updated on the app in my test device. To make it work, I have to uninstall the app from the test device, and reinstall it by running the code from Xcode. This happens every time I make changes in code. I have to delete the app on the device and reinstall it again.
I was looking for a solution on the internet, but didn't find any. I assume this is a Xcode bug, but I'm also curious if you have the same problem. If hope someone has a quick fix.
Update 1 On the simulator it works ok.
This happened to me, even changing something simple like a print would cause the breakpoints to stop working. I would have to reinstall the app on the test device every time I made a change for it to be reflected in the app. After I restarted the test phone, Xcode, and cleaned the build folder it worked for me.
Try to restart the test device, then run the app again. If this does not work:
Navigate to ~/library/MobileDevice/Provisioning Profiles/
Remove the.mobileprovision file that corresponds to the app you are working on. (you have to click on the files to see what they are, otherwise its just a long string)
Navigate to ~/library/Developer/Xcode/DerivedData/YOUR_APP_NAME
Remove the build folder
close Xcode, uninstall the app, restart the phone, open the Xcode project, clean the build folder, run the app
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.