AnsweredAssumed Answered

Generated XCode build failing on qt_static_plugin_ArcGISRuntimePlugin() call for 10.2.6

Question asked by jon.g@39dn.com on Jul 13, 2017
Latest reply on Aug 16, 2017 by cris.elevatemaps

I'm working on releasing an update to a project created with ArcGIS 10.2.6 in Qt 5.5,  the project has since been verified to work on 5.6.2, and 5.7.1, 5.5 never worked for iOS so we switched to 5.6.2 and then 5.7.1.  It has been months since we ran a build, and now when I attempt to, I get linker errors.

 

Xcode is v8.2.1, OSX is 10.11.6 - I suspect an Xcode or OSX update is what destabilized this but I'm not sure how to fix it.

 

The command being run is:

 

Ld Debug-iphonesimulator/myProject.app/myProject normal x86_64
cd /Users/myUser/Documents/Qt/build-myProject-iphoneos_clang_Qt_5_6_2_for_iOS3-Release
export IPHONEOS_DEPLOYMENT_TARGET=6.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk -L/Users/myUser/Documents/Qt/build-myProject-iphoneos_clang_Qt_5_6_2_for_iOS3-Release/Debug-iphonesimulator -L/Users/myUser/arcgis/qt10.2.6/sdk/iOS/armv7/lib -L/Users/myUser/Qt/5.6/ios/plugins/platforms -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk/System/Library/Frameworks -L/Users/myUser/Qt/5.6/ios/lib -L/Users/myUser/Qt/5.6/ios/qml/QtQuick.2 -L/Users/myUser/Qt/5.6/ios/qml/ArcGIS/Runtime.10.26 -L/Users/myUser/Qt/5.6/ios/qml/QtQuick/Window.2 -L/Users/myUser/Qt/5.6/ios/qml/QtPositioning -L/Users/myUser/Qt/5.6/ios/qml/Qt/labs/settings -L/Users/myUser/Qt/5.6/ios/qml/ArcGIS/Extras.1.0 -L/Users/myUser/Qt/5.6/ios/qml/QtGraphicalEffects/private -L/Users/myUser/Qt/5.6/ios/plugins/iconengines -L/Users/myUser/Qt/5.6/ios/plugins/imageformats -L/Users/myUser/Qt/5.6/ios/plugins/qmltooling -L/Users/myUser/Qt/5.6/ios/plugins/bearer -L/Users/myUser/Qt/5.6/ios/plugins/position -L/Users/myUser/Qt/5.6/ios/plugins/sensors -F/Users/myUser/Documents/Qt/build-myProject-iphoneos_clang_Qt_5_6_2_for_iOS3-Release/Debug-iphonesimulator -filelist /Users/myUser/Documents/Qt/build-myProject-iphoneos_clang_Qt_5_6_2_for_iOS3-Release/myProject.build/Debug-iphonesimulator/myProject.build/Objects-normal/x86_64/myProject.LinkFileList -mios-simulator-version-min=6.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/myUser/Documents/Qt/build-myProject-iphoneos_clang_Qt_5_6_2_for_iOS3-Release/myProject.build/Debug-iphonesimulator/myProject.build/Objects-normal/x86_64/myProject_lto.o -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -headerpad_max_install_names -stdlib=libc++ -u _qt_registerPlatformPlugin -Wl,-e,_qt_main_wrapper -L/Users/myUser/arcgis/qt10.2.6/sdk/iOS/armv7/lib -L/Users/myUser/Qt/5.6/ios/plugins/platforms -framework UIKit -framework AssetsLibrary -L/Users/myUser/Qt/5.6/ios/lib -framework MobileCoreServices -framework OpenGLES -L/Users/myUser/Qt/5.6/ios/qml/QtQuick.2 -L/Users/myUser/Qt/5.6/ios/qml/ArcGIS/Runtime.10.26 -L/Users/myUser/Qt/5.6/ios/qml/QtQuick/Window.2 -L/Users/myUser/Qt/5.6/ios/qml/QtPositioning -L/Users/myUser/Qt/5.6/ios/qml/Qt/labs/settings -L/Users/myUser/Qt/5.6/ios/qml/ArcGIS/Extras.1.0 -L/Users/myUser/Qt/5.6/ios/qml/QtGraphicalEffects/private -L/Users/myUser/Qt/5.6/ios/plugins/iconengines -L/Users/myUser/Qt/5.6/ios/plugins/imageformats -L/Users/myUser/Qt/5.6/ios/plugins/qmltooling -L/Users/myUser/Qt/5.6/ios/plugins/bearer -L/Users/myUser/Qt/5.6/ios/plugins/position -L/Users/myUser/Qt/5.6/ios/plugins/sensors -framework CoreMotion -lz -lm -L/Users/myUser/Qt/5.6/ios/lib -framework MobileCoreServices -framework UIKit -lz -lm -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/myUser/Documents/Qt/build-myProject-iphoneos_clang_Qt_5_6_2_for_iOS3-Release/myProject.build/Debug-iphonesimulator/myProject.build/myProject.app.xcent -lEsriRuntimeQt -lqios_iphonesimulator_debug -framework Foundation -framework QuartzCore -framework CoreFoundation -framework CoreText -framework CoreGraphics -lQt5PlatformSupport_iphonesimulator_debug -lqtfreetype_iphonesimulator_debug -lQt5OpenGL_iphonesimulator_debug -framework Security -framework SystemConfiguration -lQt5Xml_iphonesimulator_debug -lQt5Script_iphonesimulator_debug -lqtquick2plugin_iphonesimulator_debug -lArcGISRuntimePlugin -lwindowplugin_iphonesimulator_debug -ldeclarative_positioning_iphonesimulator_debug -lqmlsettingsplugin_iphonesimulator_debug -lArcGISExtrasPlugin -lqtgraphicaleffectsprivate_iphonesimulator_debug -lqsvgicon_iphonesimulator_debug -lqdds_iphonesimulator_debug -lqicns_iphonesimulator_debug -lqico_iphonesimulator_debug -lqsvg_iphonesimulator_debug -lQt5Svg_iphonesimulator_debug -lQt5Widgets_iphonesimulator_debug -lqtga_iphonesimulator_debug -lqtiff_iphonesimulator_debug -lqwbmp_iphonesimulator_debug -lqwebp_iphonesimulator_debug -lqmldbg_debugger_iphonesimulator_debug -lqmldbg_inspector_iphonesimulator_debug -lQt5Quick_iphonesimulator_debug -lQt5Gui_iphonesimulator_debug -lqtharfbuzzng_iphonesimulator_debug -lqmldbg_local_iphonesimulator_debug -lqmldbg_native_iphonesimulator_debug -lqmldbg_profiler_iphonesimulator_debug -lqmldbg_server_iphonesimulator_debug -lqmldbg_tcp_iphonesimulator_debug -lQt5Qml_iphonesimulator_debug -lqgenericbearer_iphonesimulator_debug -lQt5Network_iphonesimulator_debug -lqtposition_cl_iphonesimulator_debug -framework CoreLocation -lqtposition_geoclue_iphonesimulator_debug -lQt5DBus_iphonesimulator_debug -lqtposition_positionpoll_iphonesimulator_debug -lQt5Positioning_iphonesimulator_debug -lqtsensors_generic_iphonesimulator_debug -lqtsensors_ios_iphonesimulator_debug -lQt5Sensors_iphonesimulator_debug -lQt5Core_iphonesimulator_debug -lqtpcre_iphonesimulator_debug -Xlinker -dependency_info -Xlinker /Users/myUser/Documents/Qt/build-myProject-iphoneos_clang_Qt_5_6_2_for_iOS3-Release/myProject.build/Debug-iphonesimulator/myProject.build/Objects-normal/x86_64/myProject_dependency_info.dat -o /Users/myUser/Documents/Qt/build-myProject-iphoneos_clang_Qt_5_6_2_for_iOS3-Release/Debug-iphonesimulator/myProject.app/myProject

 

 

and the errors are: 

 

ld: warning: ignoring file /Users/myUser/arcgis/qt10.2.6/sdk/iOS/armv7/lib/libEsriRuntimeQt.a, missing required architecture x86_64 in file /Users/myUser/arcgis/qt10.2.6/sdk/iOS/armv7/lib/libEsriRuntimeQt.a (2 slices)
ld: warning: ignoring file /Users/myUser/Qt/5.6/ios/qml/ArcGIS/Runtime.10.26/libArcGISRuntimePlugin.a, missing required architecture x86_64 in file /Users/myUser/Qt/5.6/ios/qml/ArcGIS/Runtime.10.26/libArcGISRuntimePlugin.a (2 slices)
ld: warning: ignoring file /Users/myUser/Qt/5.6/ios/qml/ArcGIS/Extras.1.0/libArcGISExtrasPlugin.a, missing required architecture x86_64 in file /Users/myUser/Qt/5.6/ios/qml/ArcGIS/Extras.1.0/libArcGISExtrasPlugin.a (2 slices)
Undefined symbols for architecture x86_64:
"qt_static_plugin_ArcGISRuntimePlugin()", referenced from:
__GLOBAL__sub_I_myProject_qml_plugin_import.cpp in myProject_qml_plugin_import.o
"qt_static_plugin_ArcGISExtrasPlugin()", referenced from:
__GLOBAL__sub_I_myProject_qml_plugin_import.cpp in myProject_qml_plugin_import.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

 

 

I have previously run 10.2.6 builds on this machine with no problem. I modified the .prf as per this question:

 

Can not build iOS for x86_64 processor architecture 

 

to no avail - I receive the same errors.

 

Do any of you guys have any suggestions or do you see what mistake I've made?

 

Thanks!

Outcomes