V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
plan9
V2EX  ›  iDev

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

  •  
  •   plan9 · 2013-07-11 12:57:07 +08:00 · 4342 次点击
    这是一个创建于 3951 天前的主题,其中的信息可能已经有所发展或是发生改变。
    双击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


    好费解啊。。。求解答
    5 条回复    1970-01-01 08:00:00 +08:00
    missdeer
        1
    missdeer  
       2013-07-11 13:20:02 +08:00
    Qt的这些Framework复制到里面后,executable的符号链接都处理过了么
    plan9
        2
    plan9  
    OP
       2013-07-11 13:33:30 +08:00
    @missdeer 需要处理哪些符号链接啊?可以讲详细一点吗
    plan9
        3
    plan9  
    OP
       2013-07-11 14:51:45 +08:00
    @plan9 你说的是executable的共享库吗?这个已经设置好了的
    如果不是的话可以详细给说明一下吗?拜求啊!
    missdeer
        4
    missdeer  
       2013-07-11 17:55:46 +08:00
    执行macdeployqt 脚本
    plan9
        5
    plan9  
    OP
       2013-07-11 18:18:16 +08:00
    @missdeer 没有用。。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   765 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 21:27 · PVG 05:27 · LAX 14:27 · JFK 17:27
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.