Swift debugger does not show variable values when importing ObjC framework

后端 未结 6 1674
灰色年华
灰色年华 2020-12-02 20:11

When I create a new OS X \"Game\" project with Sprite Kit, and set a breakpoint anywhere I can see the variable values just fine:

6条回答
  •  再見小時候
    2020-12-02 20:42

    1. The Optimization level is not set to None for the Debug configuration. Be sure to set it to None for Objective-C apps as shown in Figure 1 and for Swift apps as shown in Figure 2.

    1. The Build Configuration pop-up menu is set to Release in the scheme editor's Run action settings pane. In Xcode, open the scheme editor by choosing Product > Scheme > Edit Scheme…, select the Run action for your app in the scheme actions pane, then set Build Configuration to Debug as seen in Figure 3.

提交回复
热议问题