ios 8 how to debug Custom Keyboard?

后端 未结 4 1978
谎友^
谎友^ 2021-02-08 09:33

I have successfully created a Custom Keyboard with Swift on iOS 8 simulator.

Although it worked well, but I could not debug it. It is a contained target and was installe

4条回答
  •  忘了有多久
    2021-02-08 09:56

    It seems as of now apple didn't get support for debugging extension into simulator. I was having same issue but I observe that We can debug code if we execute application into device as below.

    1) Choose your Keyboard extension target.

    2) Go to Edit Scheme.

    3) In info tab select your Executable from drop down and check the option "Debug extensions and XPC services".

    Still several problems are there like we can't see output of NSLog but you can check the value of variables same as before or I suggest you to check this link It may work for displaying NSLog output KeyboardViewController NSLog IOS 8.

提交回复
热议问题