#262 Xcode build failure on MacOS

closed-wont-fix
nobody
5
2013-05-26
2013-04-28
Stephen A
No

I am getting the following build error when trying to build GemRB on Mac OS X 10.8 using Xcode 4.6.2 and clang 4.2.0 (apple flavor):

-----
PhaseScriptExecution "CMake PostBuild Rules" build/gemrb/gemrb.build/Debug/gemrb.build/Script-8590E9F4E66D4172A1976709.sh
cd /Users/thefiddler/dev/projects/gemrb
/bin/sh -c /Users/thefiddler/dev/projects/gemrb/build/gemrb/gemrb.build/Debug/gemrb.build/Script-8590E9F4E66D4172A1976709.sh

echo "Compiling GemRB.xib"
Compiling GemRB.xib
/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile /Users/thefiddler/dev/projects/gemrb/build/gemrb/gemrb.app/Contents/Resources/GemRB.nib ../../apple/CocoaWrapper/mac/nibs/GemRB.xib
/* com.apple.ibtool.errors */
/Users/thefiddler/dev/projects/gemrb/apple/CocoaWrapper/mac/nibs/GemRB.xib: error: Compilation failed. Unable to write to path: /Users/thefiddler/dev/projects/gemrb/build/gemrb/gemrb.app/Contents/Resources/GemRB.nib
Underlying Errors:
Description: The file “GemRB.nib” doesn’t exist.
Failure Reason: The file doesn’t exist.
Underlying Errors:
Description: The operation couldn’t be completed. No such file or directory
Failure Reason: No such file or directory
Description: “GemRB.nib” couldn’t be removed.
Failure Reason: The file doesn’t exist.
Underlying Errors:
Description: The operation couldn’t be completed. No such file or directory
Failure Reason: No such file or directory
make: *** [gemrb_buildpart_0] Error 1
-----

The project files were generated with CMake 2.8-10 and I am building with all dependencies/plugins bar VLC.

I have also tried generating plain makefiles and these work correctly, as long as I don't enable parallel builds (e.g. make -j4). I don't know if this is somehow related, since Xcode is always using parallel builds.

Any ideas?

Discussion

  • Brad Allred
    Brad Allred
    2013-04-29

    Use the supplied Xcode project please.

     
  • Jaka Kranjc
    Jaka Kranjc
    2013-05-26

    • status: open --> closed-wont-fix