The application cannot be opened because its executable is missing

后端 未结 5 704
半阙折子戏
半阙折子戏 2020-12-15 07:44

I have an application that I have been developing for some time now. Recently launching the application via a double click presents a dialog that says \"You can\'t open the

5条回答
  •  执笔经年
    2020-12-15 07:48

    The problem is likely due to an invalid CFBundleExecutable property value in the Info.plist file you are copying into the application.

    In Xcode projects the default value for this property is a special variable (placeholder) value (${EXECUTABLE_NAME}) that is expanded (replaced) when the build system builds the application. Are you sure you need to copy this file manually? Maybe you can add a script build phase that makes whatever changes you need after it has been expanded and copied into place by the normal build process.

    While you are at it, you should check for other placeholder values in the file. It is likely that you will need to fill in CFBundleName (others may also be necessary, depending on your application type).

提交回复
热议问题