x


CFBundleExecutable of (null) error on Xcode build

I keep getting this error. Once it happens I can not do any builds until it is fixed. I tried rebooting my mac including complete shut down and then turn on again later. Still I get the error. I also tried building to a new directory and overwriting old build directory. Sometimes loading a different project and building it works.

edit - I found that after getting the error if I start using "build" instead of "build & run" the problem goes away.

more ▼

asked Jan 14 '10 at 05:06 AM

Ryuuguu gravatar image

Ryuuguu
454 13 18 29

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

Hi, guys,

When Unity-iPhone 1.5.1 released, I believe there are a lot of people had a problem of "CFBundleExecutable of (null), which does not exist" in a popped up windows names "Can't install application".

And there will be some linking bug like "ldr 12-bit displacement out of range" in the Build log.

According to this article from AGON's web site: http://developer.agon-online.com/documentation/latest/sdk_versus_iphone_os.html

I've solved this problem today.

iPhone SDK version is different with iPhone OS, so that's how it is.

In the Unity-iPhone Project setting->Player->iPhone sdk Version, if we choose "iPhone OS 3.1.2", it would choose "iPhone Device 3.1.2" for SDK version (i.e. iPhone SDK 3.1.2), besides, it would caused XCode select your app. deployment and running target on iPhone OS 3.1.2., too.

The solution is so easy, you could still compile your project using SDK 3.1.2 for bug fixed and new features, and still running on OS 3.0 for larger base of customers. Very Happy

You only have to do it one time unless you have deleted your XCode project or cloned setting for distribution.

Here we go:

  1. Select "iPhone OS 3.1.2" in the Unity-iPhone option of "Project setting->Player->iPhone sdk Version"
  2. Select "Build & Run" in Unity. And an Error would happen. It's ok, we will correct it by the following steps.
  3. Click "Unity-iPhone" item in the "Groups & Files" of XCode window, and right-click to select "Get Info".
  4. Be sure "Configurations" is "All Configurations", and click the "Build" tab on the top, searching the "Architectures" setting, you must find out "Base SDK" in its sub items with the value: "iPhone Device 3.1.2". That means, we want to compile our project with SDK 3.1.2.
  5. Searchin the "Deployment" setting, you must find out "iPhone OS Deployment Target" in its sub items with the value: "iPhone OS 3.1.2". That's the reason caused "Can't Install Application" error!! Please change it into "iPhone OS 3.0".
  6. Close info window and exit the XCode.
  7. Return to Unity, and "Build & Run".

This solution would let AGON could be compiled normally in the same time.Wink

Good luck for you!!

more ▼

answered Jan 28 '10 at 06:46 PM

TOROPOT gravatar image

TOROPOT
53 1 1 3

(comments are locked)
10|3000 characters needed characters left

I asked this question on Stack Overflow for a different project. Does this help?

http://stackoverflow.com/questions/1724136/xcode-falsely-claims-cfbundleexecutable-to-be-null

more ▼

answered Jan 14 '10 at 07:26 PM

Kevin Laity gravatar image

Kevin Laity
214 13 13 25

Not sure yet but next time it happens I will try. I ma not sure if it is related but int the working project I switch to I am using enhancement pack(EP) so I don't ever use "build & run " from unity but do a build, EP add some files to the Xcode project and then when it is finished I call build in Xcode. So it could be something to do with build and run vs build or maybe not.

Jan 15 '10 at 02:46 AM Ryuuguu
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1999
x346
x121

asked: Jan 14 '10 at 05:06 AM

Seen: 2704 times

Last Updated: Jan 17 '10 at 03:31 AM