pathForResource returns null

前端 未结 5 1345
清酒与你
清酒与你 2021-02-02 06:50

I\'m trying to load some .applescript files in my project.

Copied them into the \"Supporting Files\" directory like this:

5条回答
  •  借酒劲吻你
    2021-02-02 07:14

    In addition to what Zaph said, be sure that you are not running in 'Release' mode.

    There was a time where I forgot to change that setting back, and the symbols were stripped, thus making NSBundle incapable of resolving the path.

提交回复
热议问题