Cannot create a release build

Asked by Jon

Hi, I recently installed sparkle in an app I'm working on which was in the 'Debug' active build configuration (using xcode 2.5, OSX 10.4.11). All was working fine until I decided to create a release build.

Now whenever I try to create a build it gives the error:
pbxcp: warning: couldn't strip: /Users/Jon/Documents/Development/Release/CraftyTags.app/Contents/Frameworks/Sparkle.framework/Versions/A/Sparkle: No such file or directory

How can I fix this? It still builds when I set it to 'debug' but not in 'release'

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
Sparkle Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Hofman (cmhofman) said :
#1

The sparkle proejcts as it is set up is not compatible with Xcode 2.x, you need Leopard and Xcode 3.x to build Sparkle from source, or modify the build settings (and perhaps some source too).

Revision history for this message
John Schneider (john-blueghostsoftware) said :
#2

Hello,

I created a test application on Tiger using xcode 2.5 adding Sparkle per the documentation. The test project builds fine with a debug build, but fails in a release build as Jon shows.

I get the same error:
PBXCp build/Release/SparkTest.app/Contents/Frameworks/Sparkle.framework Sparkle.framework
    cd /Users/bgs/Documents/LearningCocoa/SparkTest
    /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -strip-debug-symbols -resolve-src-symlinks /Users/bgs/Documents/LearningCocoa/SparkTest/Sparkle.framework /Users/bgs/Documents/LearningCocoa/SparkTest/build/Release/SparkTest.app/Contents/Frameworks
strip: for architecture x86_64 object: /Users/bgs/Documents/LearningCocoa/SparkTest/Sparkle.framework/Versions/A/Sparkle malformed object (unknown load command 7)
pbxcp: warning: couldn't strip: /Users/bgs/Documents/LearningCocoa/SparkTest/build/Release/SparkTest.app/Contents/Frameworks/Sparkle.framework/Versions/A/Sparkle: Unknown error: 0

I have discovered that if I turn off "Strip Debug Symbols During Copy" the project then builds fine and the Sparkle updating process works fine.

Question is, is the an acceptable solution? Given the error I'm curious if the current release of Sparkle contains a file that Xcode 2.5 cannot deal with during the copy phase?

Many Thanks,

John

Revision history for this message
Andy Matuschak (andymatuschak) said :
#3

Even if it builds, there might be some very subtle or obscure bugs. Proceed with caution and at your own risk!

Revision history for this message
John Schneider (john-blueghostsoftware) said :
#4

Andy,

I just want to be clear here. Should the latest version of Sparkle be expected to work with apps built with Tiger and Xcode 2.5. I am NOT building Sparkle, I just want to use the published framework in a project I'm building with 2.5. For many reasons mostly supporting existing clients, I have not been able to upgrade to Leopard / Xcode 3.0.

Thanks,

John

Revision history for this message
Andy Matuschak (andymatuschak) said :
#5

I *suspect* that it'll work, but that's an unsupported configuration.

Revision history for this message
John Schneider (john-blueghostsoftware) said :
#6

First. thanks for you time I really appreciate the quick responses.

Would an Xcode 3.0 build targeting Tiger be supported, or is Tiger just not supported?
My clients have not updated to Leopard.

Revision history for this message
Andy Matuschak (andymatuschak) said :
#7

No problem!

An Xcode 3.1/3.5 build targeting Tiger is indeed supported; an Xcode 2.5 build targeting anything isn't supported.

Can you help with this problem?

Provide an answer of your own, or ask Jon for more information if necessary.

To post a message you must log in.