Thiago,
This seems like black magic.
I have created a new project and tried to simply do in the .pro file:
LIBS += -framework Parse
It works. It just builds.
On the other hand, I have started commenting every single line on the pro file
of my project until having just exactly the same as the test project. Then I
have added:
LIBS += -framework Parse.
Guess what.. same problem… the Parse is replaced by “”
This is the output of my project:
Ld
/private/tmp/build-lk-iphoneos_clang_Qt_5_5_0_for_iOS-Debug/lk.build/Debug-iphoneos/lk.build/Objects-normal/arm64/lk
normal arm64
cd /tmp/build-lk-iphoneos_clang_Qt_5_5_0_for_iOS-Debug
export IPHONEOS_DEPLOYMENT_TARGET=5.1.1
export
PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
-arch arm64 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk
-L/private/tmp/build-lk-iphoneos_clang_Qt_5_5_0_for_iOS-Debug/Debug-iphoneos
-L/Users/nsantos/Qt/5.5/ios/plugins/platforms
-L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk/System/Library/Frameworks
-L/Users/nsantos/Qt/5.5/ios/lib
-L/Users/nsantos/Qt/5.5/ios/plugins/imageformats
-F/private/tmp/build-lk-iphoneos_clang_Qt_5_5_0_for_iOS-Debug/Debug-iphoneos
-filelist
/private/tmp/build-lk-iphoneos_clang_Qt_5_5_0_for_iOS-Debug/lk.build/Debug-iphoneos/lk.build/Objects-normal/arm64/lk.LinkFileList
-dead_strip -headerpad_max_install_names -stdlib=libc++ -u
_qt_registerPlatformPlugin -framework
-L/Users/nsantos/Qt/5.5/ios/plugins/platforms -framework UIKit -framework
AssetsLibrary -L/Users/nsantos/Qt/5.5/ios/lib -framework OpenGLES
-L/Users/nsantos/Qt/5.5/ios/plugins/imageformats -lz -lm
-miphoneos-version-min=5.1.1 -lqios_debug -framework Foundation -framework
QuartzCore -framework CoreFoundation -framework CoreText -framework
CoreGraphics -lQt5PlatformSupport_debug -lQt5DBus_debug -lqdds_debug
-lqicns_debug -lqico_debug -lqjp2_debug -lqmng_debug -lqtga_debug -lqtiff_debug
-lqwbmp_debug -lQt5Gui_debug -lqtharfbuzzng_debug -lQt5Core_debug
-lqtpcre_debug -Xlinker -dependency_info -Xlinker
/private/tmp/build-lk-iphoneos_clang_Qt_5_5_0_for_iOS-Debug/lk.build/Debug-iphoneos/lk.build/Objects-normal/arm64/lk_dependency_info.dat
-o
/private/tmp/build-lk-iphoneos_clang_Qt_5_5_0_for_iOS-Debug/lk.build/Debug-iphoneos/lk.build/Objects-normal/arm64/lk
ld: framework not found -L/Users/nsantos/Qt/5.5/ios/plugins/platforms
clang: error: linker command failed with exit code 1 (use -v to see invocation)
22:26:03: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project lk (kit: iphoneos-clang Qt 5.5.0 for iOS)
When executing step "Make"
22:26:03: Elapsed time: 00:03.
This is the pro file:
TEMPLATE = app
QT += qml quick
SOURCES += main.cpp
RESOURCES += qml.qrc
QMAKE_INFO_PLIST = Info.plist
LIBS += -framework Parse
# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =
# Default rules for deployment.
include(deployment.pri)
This is the output of the project:
Ld
/private/tmp/build-test2-iphoneos_clang_Qt_5_5_0_for_iOS-Debug/test2.build/Debug-iphoneos/test2.build/Objects-normal/arm64/test2
normal arm64
cd /tmp/build-test2-iphoneos_clang_Qt_5_5_0_for_iOS-Debug
export IPHONEOS_DEPLOYMENT_TARGET=5.1.1
export
PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
-arch arm64 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk
-L/private/tmp/build-test2-iphoneos_clang_Qt_5_5_0_for_iOS-Debug/Debug-iphoneos
-L/Users/nsantos/Qt/5.5/ios/plugins/platforms
-L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk/System/Library/Frameworks
-L/Users/nsantos/Qt/5.5/ios/lib -L/Users/nsantos/Qt/5.5/ios/qml/QtQuick.2
-L/Users/nsantos/Qt/5.5/ios/qml/QtQuick/Window.2
-L/Users/nsantos/Qt/5.5/ios/plugins/imageformats
-L/Users/nsantos/Qt/5.5/ios/plugins/qmltooling
-L/Users/nsantos/Qt/5.5/ios/plugins/bearer
-F/private/tmp/build-test2-iphoneos_clang_Qt_5_5_0_for_iOS-Debug/Debug-iphoneos
-filelist
/private/tmp/build-test2-iphoneos_clang_Qt_5_5_0_for_iOS-Debug/test2.build/Debug-iphoneos/test2.build/Objects-normal/arm64/test2.LinkFileList
-dead_strip -headerpad_max_install_names -stdlib=libc++ -u
_qt_registerPlatformPlugin -framework Parse
-L/Users/nsantos/Qt/5.5/ios/plugins/platforms -framework UIKit -framework
AssetsLibrary -L/Users/nsantos/Qt/5.5/ios/lib -framework OpenGLES
-L/Users/nsantos/Qt/5.5/ios/qml/QtQuick.2
-L/Users/nsantos/Qt/5.5/ios/qml/QtQuick/Window.2
-L/Users/nsantos/Qt/5.5/ios/plugins/imageformats
-L/Users/nsantos/Qt/5.5/ios/plugins/qmltooling
-L/Users/nsantos/Qt/5.5/ios/plugins/bearer -lz -lm -miphoneos-version-min=5.1.1
-lqios_debug -framework Foundation -framework QuartzCore -framework
CoreFoundation -framework CoreText -framework CoreGraphics
-lQt5PlatformSupport_debug -lQt5DBus_debug -framework Security -framework
SystemConfiguration -lqtquick2plugin_debug -lwindowplugin_debug -lqdds_debug
-lqicns_debug -lqico_debug -lqjp2_debug -lqmng_debug -lqtga_debug -lqtiff_debug
-lqwbmp_debug -lqmldbg_qtquick2_debug -lQt5Quick_debug -lQt5Gui_debug
-lqtharfbuzzng_debug -lqmldbg_tcp_debug -lQt5Qml_debug -lqgenericbearer_debug
-lQt5Network_debug -lQt5Core_debug -lqtpcre_debug -Xlinker -dependency_info
-Xlinker
/private/tmp/build-test2-iphoneos_clang_Qt_5_5_0_for_iOS-Debug/test2.build/Debug-iphoneos/test2.build/Objects-normal/arm64/test2_dependency_info.dat
-o
/private/tmp/build-test2-iphoneos_clang_Qt_5_5_0_for_iOS-Debug/test2.build/Debug-iphoneos/test2.build/Objects-normal/arm64/test2
This is the pro file:
TEMPLATE = app
QT += qml quick
SOURCES += main.cpp
RESOURCES += qml.qrc
QMAKE_INFO_PLIST = Info.plist
LIBS += -framework Parse
# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =
# Default rules for deployment.
include(deployment.pri)
The .pro are exactly the same!!! The only things that differs is the project
location. Build location is shadow build and is being done to /tmp
What the hell is going on here….
> On 10/07/2015, at 18:03, Thiago Macieira <[email protected]> wrote:
>
> On Friday 10 July 2015 07:55:55 Nuno Santos wrote:
>> Curiously, it seems that qmake whipes the reference to Parse framework.
>> Whenever -framework Parse is referenced, it removes Parse.
>
> The test I suggested would have found where "Parse" got removed.
>
> You probably have LIBS -= -framework Parse or something.
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
> Software Architect - Intel Open Source Technology Center
>
> _______________________________________________
> Interest mailing list
> [email protected]
> http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest