xCode got new updates that broke build of instrumented app

Mobile Testing, Android App Testing.
ngrishakin
Posts: 42
Joined: Fri Oct 04, 2013 9:47 pm

xCode got new updates that broke build of instrumented app

Post by ngrishakin » Fri Oct 04, 2013 9:50 pm

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

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

Post by Support Team » Wed Oct 09, 2013 7:09 am

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
XCodeBuildSettings_BaseSDK.png (27.55 KiB) Viewed 1379 times
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
.
Image

ngrishakin
Posts: 42
Joined: Fri Oct 04, 2013 9:47 pm

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

Post by ngrishakin » Thu Oct 10, 2013 11:35 pm

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

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

Post by Support Team » Mon Oct 14, 2013 8:06 am

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
.
Image

ngrishakin
Posts: 42
Joined: Fri Oct 04, 2013 9:47 pm

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

Post by ngrishakin » Mon Oct 14, 2013 5:00 pm

Ok I found a fix.
Don't use -all_load and -ObjC. Instead, add instruction -force_load libRxAutomationUni_411.a
and everything builds fine.