[iOS] Error 65 during compilation
-
ok, when you open an example you need to do a few things:
-
click on an ios tag. This adds tag:"ios" the search box and only ios compatible apps will be visible.
-
select Qt 5.2.0 for iOS in the drop-down list that follows the search box (it's on the far right side and very easy to miss)
-
go to Projects and select iphoneos or iphonesimulator
The build works and you can run the app in the simulator and on the device. It worked for me.
-
-
I also get the mysterious "Error 65", trying to compile in Xcode I get a linker error: "Apple Mach-O Linker Error": Undefined symbols for architecture i386:
"std::ios_base::Init::Init()", referenced from:
___cxx_global_var_init in libQt5Qml_iphonesimulator_debug.a(qqmlbundle.o)
___cxx_global_var_init in libQt5Qml_iphonesimulator_debug.a(qv4regexpobject.o)
___cxx_global_var_init in libQt5Qml_iphonesimulator_debug.a(qv4object.o)
___cxx_global_var_init in libQt5Qml_iphonesimulator_debug.a(qv4globalobject.o)
___cxx_global_var_init in libQt5Qml_iphonesimulator_debug.a(qv4functionobject.o)
___cxx_global_var_init in libQt5Qml_iphonesimulator_debug.a(qv4mm.o)
___cxx_global_var_init in libQt5Qml_iphonesimulator_debug.a(qv4debugging.o)
..and some other linker error, did anyone figure that oout yet? it works for with a hello world QML project and my project works on Mac OS, but not iOS, weird.
-
And I have the same problem. Most of all examples are built and run successfully for simulator, but when I am trying to build them for device it falls with same:
=== BUILD TARGET validators OF PROJECT validators WITH CONFIGURATION Release ===
Check dependencies
Code Sign error: No matching provisioning profiles found: No provisioning profiles with a valid signing identity (i.e. certificate and private key pair) were found.
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 7.0'
make[1]: *** [iphoneos-release] Error 65
make: *** [release-iphoneos] Error 2
17:40:19: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project validators (kit: iphoneos-clang Qt 5.2.1 for iOS)
When executing step 'Make'Creating XCode project and attempt to build it ends with:
make: addressbook.xcodeproj/qt_makeqmake.mak: No such file or directory
make: *** No rule to make target `addressbook.xcodeproj/qt_makeqmake.mak'. -
hey guys, found a simple solution today, at least for my debug error 65 problem above.
the project was linked against the wrong c++ STD lib :o
I don't know why Qt Creator is trying to link against the wrong lib, but here is the fix I used:- open the project with XCode
- go to build settings
- select "all" and search for the linker options
- under "Other Linker Flags" change "-stdlib=libc++" to "-stdlib=libstdc++"
yeah that is all, a rebuild should work now. :)
note: I think the libstdc++ lib is the GNU version, don't knwo why the other isn't working maybe becaus ethe Qt libs are linked against libstdc++ and not libc++.
-
Problem still here...Qt 5.9 RC!!!!
No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "xxxxxxxxxx" with a private key was found.
Code signing is required for product type 'Application' in SDK 'iOS 10.2' -
@AlterX
up to Qt 5.8 something like this will work inside .pro:ios { ..... QMAKE_XCODE_CODE_SIGN_IDENTITY = "iPhone Developer" MY_DEVELOPMENT_TEAM.name = DEVELOPMENT_TEAM MY_DEVELOPMENT_TEAM.value = CDXXXXXX2B QMAKE_MAC_XCODE_SETTINGS += MY_DEVELOPMENT_TEAM ..... }
see see https://bugreports.qt.io/browse/QTCREATORBUG-16968
(take a look at all comments)the good news: Qt 5.9 and QtCreator 4.3 will make your life easier:
http://blog.qt.io/blog/2017/05/24/qt-creator-4-3-0-released/