Xcode 11: Changes in code not updated to app or breakpoint doesn't work

后端 未结 2 853
鱼传尺愫
鱼传尺愫 2021-01-16 03:03

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

相关标签:
2条回答
  • 2021-01-16 03:47

    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

    0 讨论(0)
  • 2021-01-16 03:53

    Try changing the Build System to Legacy:

    File > Project Settings > Build System

    The new Build System has some problems with app cache.

    0 讨论(0)
提交回复
热议问题