Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3360396
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:59:14+00:00 2026-05-18T02:59:14+00:00

I am currently using IOS SDK 4.0.2 and learning how to do UIAutomation. Unfortunately

  • 0

I am currently using IOS SDK 4.0.2 and learning how to do UIAutomation. Unfortunately I found that in the Simulator, when I try running a simple Java script test (that just assigns variables) I get the following error.

Unexpected error in -[UIATarget_0x5d04f60 frontMostApp], /SourceCache/UIAutomation_Sim/UIAutomation-37/Framework/UIATargetElements.m line 437,

Here is the “Script” I was trying to run

   function iDontDoAnything() {
      var target = UIATarget.localTarget();
      var app = target.frontMostApp();
      var navBar = app.navigationBar();
      UIALogger.logPass("it passed");
}

  UIALogger.logStart("First Tester Test");
  iDontDoAnything();

And I figured out that this is because I am getting a null returned when frontMostApp() is called. The test runs fine/passes on the actual device with 4.0.2.

Main Question: Is there a way to solve this problem in 4.0.2 on the simulator? I have noted a solution for the earlier version (4.0.1) that had this problem – tried it with no success.

Not much documentation out there yet, any advice would be much appreciated!

Lauren

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T02:59:15+00:00Added an answer on May 18, 2026 at 2:59 am

    Did you check if simulator has the accessibity.plist?

    I found this on https://devforums.apple.com/message/261883#261883 they recommend: “Copy ~/Library/Application Support/iPhone Simulator/4.0/Library/Preferences/com.apple.Accessibility.plist to ~/Library/Application Support/iPhone Simulator/4.0.1/Library/Preferences” and it worked for me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are currently using a somewhat complicated deployment setup that involves a remote SVN
How do I like a page using the new Facebook iOS SDK? (http://github.com/facebook/facebook-ios-sdk) I'm
The recent upgrade to XCode 3.2.4 and iOS SDK 4.1 lead to that my
I have an application that was originally written using iOS 3.1 Last week I
I am using iOS SDK 4.2 and followed this tutorial: http://mobileorchard.com/hello-there-a-corelocation-tutorial/ , and got
When using a UIDatePicker in iOS SDK, there is always an entry Today at
I just came to realize that my project is currently using methods that are
I'm building an application that has a media player in it (I'm using iOS
I am using MonoDevelop version 2.4.2 with iOS SDK 4 installed. I am encountering
I am currently using the people picker in IOS to show the list of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.