Page 1 of 1

xCode got new updates that broke build of instrumented app

Posted: Fri Oct 04, 2013 9:50 pm
by ngrishakin
2 days ago my xCode got updated to new version 5.0 (5A1413). After that the build with my instrumented app failed
""_OBJC_IVAR_$_UITouch._gestureView", referenced from:
-[UITouch(Synthesize) initInView:withRelX:withRelY:] in libRxAutomationUni_410.a(UITouch+Synthesize.o)"

I sow this error on a forum and it was related to iOS 7 that is not supported by Ranorex at the moment but I did not upgrade my test device.
It still runs 6. Any suggestion?
Thank you a lot

Re: xCode got new updates that broke build of instrumented app

Posted: Wed Oct 09, 2013 7:09 am
by Support Team
Its important to know the version of the SDK the application is compiled with. If I remember correctly, the XCode5 update will replace the iOS6 SDK with the iOS7 SDK as we had to manually reinstall the iOS6 SDK after we updated XCode at Ranorex.

To verify that you compile against iOS6 please select your project and go to the build settings tab and check that the value of the 'Base SDK' entry is 'iOS 6.x''.
XCodeBuildSettings_BaseSDK.png
Additionally please check what the deployment target of your app is ('General' tab).

If in the 'Base SDK', 'iOS 7' is listed you have to manually reinstall the iOS6 SDK and select it as the 'Base SDK'. Alternatively you can update to the latest version of Ranorex (4.1.1) which is compatible with iOS7.

Regards,
Philipp

Re: xCode got new updates that broke build of instrumented app

Posted: Thu Oct 10, 2013 11:35 pm
by ngrishakin
Philipp, I have manually reinstalled the iOS6 SDK. Changed Base SDK setting back to iOS 6.1 and added new library to my project libRxAutomationUni_411.a and a flag '-ObjC' and '-all_load'. But my build failed.
Linker could not find other third party libs that included to the project. These libraries are compiled with SDK 6.0. If I remove libRxAutomationUni_411.a project builds just fine.
Any idea?
Thanks,
Nikolay

Re: xCode got new updates that broke build of instrumented app

Posted: Mon Oct 14, 2013 8:06 am
by Support Team
I'm not quite sure how it is possible that the linker doesn't find the other libraries when the libRxAutomationUni_411.a is linked, but finds them otherwise (note, libRxAutomationUni_XXX.a is also compiled against the 6.1 SDK).

What is the exact error message the linker provides?

Would it be possible that you send us your project so that we can analyze the issue? It is quite hard to do so via online communication. If so, we will provide more information on how you can send us your project privately.

Regards,
Philipp

Re: xCode got new updates that broke build of instrumented app

Posted: Mon Oct 14, 2013 5:00 pm
by ngrishakin
Ok I found a fix.
Don't use -all_load and -ObjC. Instead, add instruction -force_load libRxAutomationUni_411.a
and everything builds fine.