Xcode build but not run on device

1k Views Asked by At

I was in the process of adding a third party library (GPUImage), I actually managed to get it all in and installed on the device. Woohoo!

Then...well you know the story. It doesn't work anymore.

Now when ever I try to build to my device it will "Build successfully" then immediately go to "Finished running".

My setup: iPhone 4 iOS 5.1.1 OS X Lion Xcode 4.3.2

I have:

  • Tried:
    1. Adding in armv6
    2. -all_load
    3. Restarting xcode
    4. Restarting device
    5. Removing device from the organizer then adding it back.
    6. Restarting computer.
    7. Cleaning project and rebuilding
    8. Removing the "Requirements" (?) from the pList (although this app is for iOS 5.0 or higher).

None of these seem to work. If anyone has had this problem PLEEEASE help! I am about to lose my sanity.

In the mean time I will try archiving and doing and OTA install and see if that works.

Thank you very much for your time,

Cory

P.S - I have already seen all the other post on here so please don't paste links to them :)

3

There are 3 best solutions below

0
On BEST ANSWER

Not sure what fixed my problem but with the new Xcode version the problem stopped. Thank you everyone for your help.

0
On

Problem of Project, Scheme and Target names. This all must be a same. Try rename to same name

"AppName" and "Appname" is not true. Must be "AppName" and "AppName", or "Appname" and "Appname".

1
On

I have the same problem - I have the latest XCode iOS SDK 5.1 - but my iPhone is updated with the latest iOS version 5.1.1

Not sure how to solve this as Apple havent released the new SDK. Pretty shit to be honest, as I can't test on my device.