sincoew wrote:Hi Ranorex,
When we add a linker flag "-ObjC -all_load", it cause many linker errors after adding this flag only.
What's the usage of the linker flag "-ObjC -all_load" ?

We need the linker flags to make sure, that the Ranorex automation classes get loaded at runtime. Because none of the Ranorex automation classes is used by the user application at compile time, the linker would otherwise optimize them away and not invoke the static load methods that hook up all the automation functionality at application startup.

It would help us a lot, if you could post the concrete error messages produced by the linker.

sincoew wrote:
And we try to build other sample code, we find error = "pointer being freed was not allocated".

sincoew wrote:
And we try to build other sample code, we find error = "pointer being freed was not allocated".

We were able to track the issue down. It seems it only occurs on real devices, in the simulator everything works as expected (possible work around until next Ranorex version is released). A fix for this problem will be released with the next Ranorex version.