双击MyApp.app没有任何反应,在终端下open MyApp.app出现下面的错误信息
$ open my.app/
LSOpenURLsWithRole() failed with error -10810 for the file my.app
app文件目录大致如下
├── Frameworks
│ ├── QtCore.framework
│ ├── QtGui.framework
│ ├── QtOpenGL.framework
│ ├── QtPrintSupport.framework
│ └── QtWidgets.framework
├── Info.plist
├── MacOS
│ └── executablefile
├── PlugIns
│ ├── accessible
│ ├── imageformats
│ ├── platforms
│ └── printsupport
└── Resources
└── qt.conf
但是奇怪的是把executablefile换成run.sh,然后在run.sh里面运行executablefile就可以双击打开了
新的app目录是这样的
├── Frameworks
│ ├── QtCore.framework
│ ├── QtGui.framework
│ ├── QtOpenGL.framework
│ ├── QtPrintSupport.framework
│ └── QtWidgets.framework
├── Info.plist
├── MacOS
│ ├── executablefile
│ └── run.sh
├── PlugIns
│ ├── accessible
│ ├── imageformats
│ ├── platforms
│ └── printsupport
└── Resources
└── qt.conf
好费解啊。。。求解答
$ open my.app/
LSOpenURLsWithRole() failed with error -10810 for the file my.app
app文件目录大致如下
├── Frameworks
│ ├── QtCore.framework
│ ├── QtGui.framework
│ ├── QtOpenGL.framework
│ ├── QtPrintSupport.framework
│ └── QtWidgets.framework
├── Info.plist
├── MacOS
│ └── executablefile
├── PlugIns
│ ├── accessible
│ ├── imageformats
│ ├── platforms
│ └── printsupport
└── Resources
└── qt.conf
但是奇怪的是把executablefile换成run.sh,然后在run.sh里面运行executablefile就可以双击打开了
新的app目录是这样的
├── Frameworks
│ ├── QtCore.framework
│ ├── QtGui.framework
│ ├── QtOpenGL.framework
│ ├── QtPrintSupport.framework
│ └── QtWidgets.framework
├── Info.plist
├── MacOS
│ ├── executablefile
│ └── run.sh
├── PlugIns
│ ├── accessible
│ ├── imageformats
│ ├── platforms
│ └── printsupport
└── Resources
└── qt.conf
好费解啊。。。求解答