从Qt项目向AppleStore提交MacOS X应用程序

时间:2015-09-01 16:03:35

标签: ios xcode macos qt app-store

上下文

我必须向AppStore提交MacOSX应用程序。应用程序由Qt。

生成

我正在使用OSX 10.11和Xcode 7.0 beta(7A121l)

我尝试了什么

我创建了一个带有Qt的MacOSX应用程序,我必须提交给AppStore

当我用Qt生成.app文件时,它运行得很好。我不知道如何使用Application Loader for Mac创建要上传的二进制文件,因此我使用以下命令将该Qt项目导出到Xcode项目

qmake -spec macx-xcode Myproject.pro

它为我创建了一个Xcode项目。

问题 当我在Xcode中编译该应用程序时,找不到一些框架。

Ld Debug/track.app/Contents/MacOS/track normal x86_64
    cd /Users/User/development/projects/track/track_desktop
    export MACOSX_DEPLOYMENT_TARGET=10.7
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -L/Users/User/development/projects/track/track_desktop/Debug -L/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks -L/Users/User/Qt/5.5/clang_64/lib -F/Users/User/development/projects/track/track_desktop/Debug -F/Users/User/Qt/5.5/clang_64/lib -F/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks -filelist /Users/User/development/projects/track/track_desktop/track.build/Debug/track.build/Objects-normal/x86_64/track.LinkFileList -mmacosx-version-min=10.7 -F/System/Library/Frameworks -headerpad_max_install_names -Wl,-rpath,/Users/User/Qt/5.5/clang_64/lib -F/Users/User/Qt/5.5/clang_64/lib -framework Carbon -framework QtWidgets -framework QtGui -framework QtCore -framework DiskArbitration -framework IOKit -framework QtNetwork -framework OpenGL -framework AGL -Xlinker -dependency_info -Xlinker /Users/User/development/projects/track/track_desktop/track.build/Debug/track.build/Objects-normal/x86_64/track_dependency_info.dat -o /Users/User/development/projects/track/track_desktop/Debug/track.app/Contents/MacOS/track


ld: framework not found Carbon
clang: error: linker command failed with exit code 1 (use -v to see invocation)

另外:DiskArbitrationIOKitOpenGLAGL

结论

我认为qmake没有正确创建链接器路径。

问题

如何将这些库链接到我的Xcode项目以便编译和生成我的二进制文件?

这些答案和问题对我没有帮助: Qt Mac Deployment>我做到了 Qt Mac OS Deployment - You must supply an Apple ID - >他没有解释如何做到这一点 Qt Deployment for Mac, configuring executable inside bundle

0 个答案:

没有答案