[Interest] First impressions on Qt 5.5 - Unable to link with several frameworks on my current project when building for iOS

Nuno Santos nunosantos at imaginando.pt
Tue Jul 7 08:39:56 CEST 2015


Trying to do the same on my other app results in a completely different problem. The other app also links with Bolts, MobileCoreServices, AdSupport, etc but the output was:

Undefined symbols for architecture armv7:
  "_OBJC_METACLASS_$_XCTestCase", referenced from:
      _OBJC_METACLASS_$_QtTestLibWrapper in libQt5Test_debug.a(qxctestlogger.o)
      _OBJC_METACLASS_$_QtTestLibTest in libQt5Test_debug.a(qxctestlogger.o)
  "_OBJC_CLASS_$_XCTestDriver", referenced from:
      objc-class-ref in libQt5Test_debug.a(qxctestlogger.o)
  "_OBJC_CLASS_$_XCTestCase", referenced from:
      _OBJC_CLASS_$_QtTestLibWrapper in libQt5Test_debug.a(qxctestlogger.o)
      _OBJC_CLASS_$_QtTestLibTest in libQt5Test_debug.a(qxctestlogger.o)
  "_OBJC_CLASS_$_XCTestSuite", referenced from:
      objc-class-ref in libQt5Test_debug.a(qxctestlogger.o)
      _OBJC_CLASS_$_QtTestLibTests in libQt5Test_debug.a(qxctestlogger.o)
  "_OBJC_METACLASS_$_XCTestSuite", referenced from:
      _OBJC_METACLASS_$_QtTestLibTests in libQt5Test_debug.a(qxctestlogger.o)
  "_OBJC_CLASS_$_XCTestProbe", referenced from:
      objc-class-ref in libQt5Test_debug.a(qxctestlogger.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Any ideas?

Regards,

Nuno

> On 07/07/2015, at 07:28, Nuno Santos <nunosantos at imaginando.pt> wrote:
> 
> Hi,
> 
> Today I have tried Qt 5.5 on my main app. 
> 
> Development version on desktop built and run just fine.
> 
> On iOS, building seemed ok (despite more than a half million warnings) but linking failed.
> 
> I’m currently linking with Parse.framework and Bolts.framework (also from Parse) and clang says : no such file or directory Bolts, but the file is there. 
> 
> Debug/.build/obj/LK.build/Debug-iphoneos/LK.build/Objects-normal/arm64/LK_dependency_info.dat -o /tmp/build-lk-iphoneos_clang_Qt_5_5_0_for_iOS-Debug/.build/obj/LK.build/Debug-iphoneos/LK.build/Objects-normal/arm64/LK
> clang: error: no such file or directory: ‘Bolts'
> 
> I usually need to manually copy the additional frameworks to the iPhoneOS.framework directory and it’s already there. It was building correctly for 5.4
> 
> The most strange thing is… If I comment out the Bolts.framework, now it complains about the missing MobileCoreServices which is a Apple bundled framework, and if I comment out MobileCoreServices, it will complain about the missing AdSupport. If I comment this one out, it will compain about :-1: error: framework not found -L/Users/nsantos/Qt/5.5/ios/plugins/platforms
> 
> This is at least weird… 
> 
> Does anyone has a clue why this is happening? Feeling frustrated now.
> 
> Thanks in advance,
> 
> Regards,
> 
> Nuno
> 
> 
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest




More information about the Interest mailing list