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 6963169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:45:17+00:00 2026-05-27T15:45:17+00:00

I have an app that works fine in the debug mode on the device.

  • 0

I have an app that works fine in the debug mode on the device. I sent the app to the App Store and it works fine, except for iPhone 3G.

My test(debug) device is an iPhone 3G and it works just fine in debug, but when I downloaded the app and installed it via the App Store, it didn’t work on my iPhone as well.

I had some NSLogs in the code and thought that that might be the problem, but even after the removal of NSLog, the same thing happens on iPhone 3G.

The problem is that I’m using the following code:

- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
    mouseSwiped = YES;

    UITouch *touch = [touches anyObject];   
    CGPoint currentPoint = [touch locationInView:self.view];
    currentPoint.y -= 20;


    UIGraphicsBeginImageContext(self.view.frame.size);
    [drawImage.image drawInRect:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
    CGContextSetLineCap(UIGraphicsGetCurrentContext(), kCGLineCapRound);
    CGContextSetLineWidth(UIGraphicsGetCurrentContext(), 5.0);
    CGContextSetRGBStrokeColor(UIGraphicsGetCurrentContext(), 1.0, 0.0, 0.0, 1.0);
    CGContextBeginPath(UIGraphicsGetCurrentContext());
    CGContextMoveToPoint(UIGraphicsGetCurrentContext(), lastPoint.x, lastPoint.y);
    CGContextAddLineToPoint(UIGraphicsGetCurrentContext(), currentPoint.x, currentPoint.y);
    CGContextStrokePath(UIGraphicsGetCurrentContext());
    drawImage.image = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();

    lastPoint = currentPoint;

}

and on an iPhone 3G this does not draw right. It just makes horizontal lines. This works fine on other devices.

What could be going wrong here?

  • 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-27T15:45:17+00:00Added an answer on May 27, 2026 at 3:45 pm

    There is a known bug with the LLVM compiler in Xcode 4.2 that leads to incorrect results when using CGPoints, etc. on the ARMv6 architecture. This is detailed in this thread on the Apple Developer Forums. ARMv6 is what is used for pre-iPhone 3G S devices (such as your iPhone 3G), so that’s why you’d see it there.

    The bug is related to incorrect Thumb code generation for the ARMv6 builds of your application. I describe how to selectively disable Thumb for just that older architecture (while preserving performance on the unaffected ARMv7 build) in my answer here.

    Some people have said that Xcode 4.2.1 has a fixed version of LLVM which addresses this, but I can’t confirm that. Read gparker’s comment near the end of this Apple Developer Forum thread to see where this has been fixed.

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

Sidebar

Related Questions

i have a very small utilty app written in c# that works fine on
I have downloaded the Websphere 2.1 App Server and verified that it works fine.
I have a problem - my app works fine on the simulator, but on
I have a mixed MVC and Web Forms environment that works just fine in
I have an app that worked perfectly fine w/ ios 4.x the app works
I have a GWT 2.3 app that works fine in IE8 and pretty much
This is probably a setting error somewhere. I have a django app that works
Story: One of the app that i have works on python 2.4 and other
have an app that finds your GPS location successfully, but I need to be
I have an app that executes commands on a Linux server via SSH just

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.