Building DMG fails in Xcode

OS X 10.9.1, Xcode 5.0.2.

The targets for Framework, Static, and Shared Libraries build, but the the DMG
target fails:> CpResource /Users/ludwig/Library/Developer/Xcode/DerivedData/SDL-bgxholshkgnuiogqhtfiiqabdvua/Build/Products/Debug/Standard\ DMG /Users/ludwig/Library/Developer/Xcode/DerivedData/SDL-bgxholshkgnuiogqhtfiiqabdvua/Build/Products/Debug/SDL2.framework/Versions/A/Resources/Standard\ DMG

cd /Users/ludwig/Downloads/SDL2-2.0.1/Xcode/SDL
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -strip-debug-symbols -strip-tool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip -resolve-src-symlinks /Users/ludwig/Library/Developer/Xcode/DerivedData/SDL-bgxholshkgnuiogqhtfiiqabdvua/Build/Products/Debug/Standard\ DMG /Users/ludwig/Library/Developer/Xcode/DerivedData/SDL-bgxholshkgnuiogqhtfiiqabdvua/Build/Products/Debug/SDL2.framework/Versions/A/Resources

error: /Users/ludwig/Library/Developer/Xcode/DerivedData/SDL-bgxholshkgnuiogqhtfiiqabdvua/Build/Products/Debug/Standard DMG: No such file or directory

Strange. I just tried it and it worked fine for me. Did you change any
of the default Xcode settings (like where build products are places)
or change anything in the SDL Xcode project?

Thanks,
EricOn 1/25/14, Ludwig wrote:

OS X 10.9.1, Xcode 5.0.2.

The targets for Framework, Static, and Shared Libraries build, but the the
DMG
target fails:

CpResource
/Users/ludwig/Library/Developer/Xcode/DerivedData/SDL-bgxholshkgnuiogqhtfiiqabdvua/Build/Products/Debug/Standard
DMG
/Users/ludwig/Library/Developer/Xcode/DerivedData/SDL-bgxholshkgnuiogqhtfiiqabdvua/Build/Products/Debug/SDL2.framework/Versions/A/Resources/Standard
DMG
cd /Users/ludwig/Downloads/SDL2-2.0.1/Xcode/SDL
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude
.git -exclude .hg -strip-debug-symbols -strip-tool
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip
-resolve-src-symlinks
/Users/ludwig/Library/Developer/Xcode/DerivedData/SDL-bgxholshkgnuiogqhtfiiqabdvua/Build/Products/Debug/Standard
DMG
/Users/ludwig/Library/Developer/Xcode/DerivedData/SDL-bgxholshkgnuiogqhtfiiqabdvua/Build/Products/Debug/SDL2.framework/Versions/A/Resources

error:
/Users/ludwig/Library/Developer/Xcode/DerivedData/SDL-bgxholshkgnuiogqhtfiiqabdvua/Build/Products/Debug/Standard
DMG: No such file or directory


Beginning iPhone Games Development
http://playcontrol.net/iphonegamebook/

Strange. I just tried it and it worked fine for me. Did you change any
of the default Xcode settings (like where build products are places)
or change anything in the SDL Xcode project?

No, but one thing I may have done wrong was build the targets incrementally; is
one supposed to do the whole chain in one go? And if so, how is that done? I
don?t see a Build All command. (I?m sort of an Xcode noob, in case that?s not
obvious.)On Mon, 27 Jan 2014, Eric Wing wrote:

The DMG only uses the framework, not the shared and static library.
The DMG target is supposed to be setup to handle its dependencies
automatically for you.

I don’t normally build all the targets. I either build just the DMG or
the Framework and then the DMG. It shouldn’t matter if you built all
the targets, but maybe you found a bug.

Would you try cleaning everything, and just building the DMG.
In the menu, go to the Product option. Hold down the Option button on
your keyboard. The “Clean” item will transform to “Clean Build
Folder…”. Select that to clean everything.

Then in the Xcode toolbar, select the Standard DMG from the popup
button (usually to the right of the Run/Stop buttons). Then click the
Run button.

By the way, the DMG target is mostly for us to ship a release. You
don’t actually need to use this if you are building SDL yourself. You
can just grab the libraries directly.

Thanks,
EricOn 1/27/14, Ludwig wrote:

On Mon, 27 Jan 2014, Eric Wing wrote:

Strange. I just tried it and it worked fine for me. Did you change any
of the default Xcode settings (like where build products are places)
or change anything in the SDL Xcode project?

No, but one thing I may have done wrong was build the targets incrementally;
is
one supposed to do the whole chain in one go? And if so, how is that done?
I
don’t see a Build All command. (I’m sort of an Xcode noob, in case that’s
not
obvious.)


Beginning iPhone Games Development
http://playcontrol.net/iphonegamebook/

The DMG only uses the framework, not the shared and static library.
The DMG target is supposed to be setup to handle its dependencies
automatically for you.

I don’t normally build all the targets. I either build just the DMG or
the Framework and then the DMG. It shouldn’t matter if you built all
the targets, but maybe you found a bug.

Would you try cleaning everything, and just building the DMG.
In the menu, go to the Product option. Hold down the Option button on
your keyboard. The “Clean” item will transform to “Clean Build
Folder…”. Select that to clean everything.

Then in the Xcode toolbar, select the Standard DMG from the popup
button (usually to the right of the Run/Stop buttons). Then click the
Run button.

By the way, the DMG target is mostly for us to ship a release. You
don’t actually need to use this if you are building SDL yourself. You
can just grab the libraries directly.

Don?t know what I did wrong before, but it worked now, thanks.On Mon, 27 Jan 2014, Eric Wing wrote: