Mac OS X 10.8.4下程序打包成xxx.app以后双击xxx.app无法启动

2013-07-11 12:57:07 +08:00
 plan9
双击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


好费解啊。。。求解答
4391 次点击
所在节点    iDev
5 条回复
missdeer
2013-07-11 13:20:02 +08:00
Qt的这些Framework复制到里面后,executable的符号链接都处理过了么
plan9
2013-07-11 13:33:30 +08:00
@missdeer 需要处理哪些符号链接啊?可以讲详细一点吗
plan9
2013-07-11 14:51:45 +08:00
@plan9 你说的是executable的共享库吗?这个已经设置好了的
如果不是的话可以详细给说明一下吗?拜求啊!
missdeer
2013-07-11 17:55:46 +08:00
执行macdeployqt 脚本
plan9
2013-07-11 18:18:16 +08:00
@missdeer 没有用。。。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/75446

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX