Removing Sparkle from App Store version

236 Views Asked by At

OK, so I have 2 different builds, an App Store release, and one for my website.

At the end of my Build Phases list, I have a Run Script phase with the following:

if [ "${CONFIGURATION}" = "AppStore (Debug)" ] || [ "${CONFIGURATION}" = "AppStore (Release)"]; then
rm -rf "$TARGET_BUILD_DIR/$FRAMEWORKS_FOLDER_PATH/Sparkle.framework"
fi

Which actually deletes the Sparkle framework from its contents.

And when building for AppStore (Release), the final bundle is working fine (no Sparkle.framework in the bundle contents whatsoever)

However, when I archive and try to submit to the app store, I'm getting a bunch of errors complaining about the inclusion of Sparkle (+ when I look into the archive, all of a sudden Sparkle is there!)

What's going on? Is my script not being executed when archiving?

Any ideas?

0

There are 0 best solutions below