Xcode 4.4.1 Error Validating Mac Application: CFBundle Read from two packages cannot point to the same file

I am getting this error after upgrading to Xcode 4.4.1 + 10.8.2. (Both were done at the same time). This is when checking the archive from the Xcode project for the Mac app store.

Full error:

A two-bundle CFBundleexecutable may not point to the same file. The following common bundle path was found: MyAppName.app/Contents.

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

+4
source share
1 answer

After trying a few things, I was able to fix it. The problem here is that the Info.plist file was included in the build phase of the instance resources. Since this file has already been copied by Xcode elsewhere, it causes a conflict. I removed Info.plist from the copy instance resource assembly phase and fixed the problem.

Due to the obscure message given by Xcode, we hope that this will at least help others faster in the future.

+16
source

Source: https://habr.com/ru/post/1435598/


All Articles