Six Foot Three Foot
Six Foot Three Foot

Reputation: 646

Xcode 4.4.1 Error Validating Mac app : CFBundleExecutable of two bundles may not point to the same file

I'm hitting this error after upgrading to Xcode 4.4.1 + 10.8.2. (Both were done at the same time). This is when validating an archive from an Xcode project for the mac app store.

The full error is :

CFBundleexecutable of two bundles may not point to the same file. The following shared bundle path have been found: MyAppName.app/Contents.

I'm not really sure what this means, the same exact source compiled without errors on 10.7.x Xcode 4.3.x. However I need to compile on 10.8.x & XCode 4.4.x+.

Upvotes: 7

Views: 1088

Answers (2)

Ahmadreza Shamimi
Ahmadreza Shamimi

Reputation: 73

enter image description here

Open Your Project in Xcode:
•   Launch Xcode and open your project.
2.  Check the Build Phases:
•   In the project navigator, select your app’s target.
•   Go to the Build Phases tab.
3.  Locate the ‘Copy Bundle Resources’ Phase:
•   Expand the Copy Bundle Resources section.
4.  Remove Info.plist from the List:
•   Look for the Info.plist file in the list of resources being copied.
•   Select it and click the - button to remove it from this phase.
Note: Don’t worry—removing Info.plist from this phase won’t harm your app. Xcode already handles its inclusion elsewhere.
5.  Clean and Rebuild the Project:
•   Go to the menu bar and select Product > Clean Build Folder.
•   After cleaning, build your project again to ensure the issue is resolved.

Upvotes: 0

Six Foot Three Foot
Six Foot Three Foot

Reputation: 646

After trying a few things, I was able to fix it. The issue here was the Info.plist file was included in the 'copy bundle resources' build phase. Since this file is already copied by XCode elsewhere, it was causing the conflict. I removed the Info.plist from the 'copy bundle resources' build phase, and that fixed the issue.

Due to the unclear message given by XCode, hopefully this will at least help others a bit more quickly in the future.

Upvotes: 30

Related Questions