pkgbuild created package does not install correctly
Moved Applications

The Installer is likely updating the first copy of the application it finds and not the application in the default install location.

This behaviour is deliberate and allows users to move applications, while retaining the ability to use Installer packages to apply updates.

As a developer you probably have numerous copies of the target application on your Mac. It is likely the last copy you – or Xcode – launched is the one being updated. This can include copies within hidden build folders.

Enforce the Location with BundleIsRelocatable

Setting BundleIsRelocatable flag to false forces Installer.app to use the exact path provided by the package.

Without this flag set, the Installer.app will search the target Mac for matching applications and write the new copy to the discovered location.


Try your installer with a clean Mac with a fresh copy of OS X.
Look closely at the log output from Installer.app or installer; you will see entries regarding the search and final location of the relocated application.


Report the Bug

That the Installer still created the parent company folder does feel like an error. Please report a bug with Apple.