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 · Jul 11, 2013 · 5292 views
    This topic created in 4774 days ago, the information mentioned may be changed or developed.
    双击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 replies    1970-01-01 08:00:00 +08:00
    missdeer
        1
    missdeer  
       Jul 11, 2013
    Qt的这些Framework复制到里面后,executable的符号链接都处理过了么
    plan9
        2
    plan9  
    OP
       Jul 11, 2013
    @missdeer 需要处理哪些符号链接啊?可以讲详细一点吗
    plan9
        3
    plan9  
    OP
       Jul 11, 2013
    @plan9 你说的是executable的共享库吗?这个已经设置好了的
    如果不是的话可以详细给说明一下吗?拜求啊!
    missdeer
        4
    missdeer  
       Jul 11, 2013
    执行macdeployqt 脚本
    plan9
        5
    plan9  
    OP
       Jul 11, 2013
    @missdeer 没有用。。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1127 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 18:11 · PVG 02:11 · LAX 11:11 · JFK 14:11
    ♥ Do have faith in what you're doing.