Building from Source
Build Provenance from source with Xcode — get the latest in-development features on iOS, tvOS, and macOS
To get the very latest in-development build, you will need to build from source with Xcode. There are no shortcuts. Provenance is a large project with required dependencies and submodules that help enable efficient development. Check that you meet the requirements. Follow each and every step. Make no assumptions. Do not skip anything.
Setup (install requirements and dependencies)
Build Source to device (Xcode)
(Optional) Enable Advanced Features
💢 If you get stuck, check out Troubleshooting.
Get Source
Source Options
Clone
Cloning is how you pull the source code from GitHub. Choose your preferred method:
Make sure you have the latest version of the Xcode command-line tools installed:
xcode-select --install(Optional) Choose an install directory with
cd [path](drag & drop a folder on Terminal aftercdto get directory path).Download source with HTTPS:
Continue to Setup…
Tower is a powerful commercial git client that can automate a lot of the tasks you'd otherwise be using commandline for, such as stashing changes. It is however, not free.
Purchase/Download Tower
Launch Tower and Add Your Service Account:
GitHub(Optional) In Menubar: Select
Tower→Preferences(or use⌘,shortcut):Set a 'default directory for clone repositories' such as
~Documents/GitHub
In Menubar: Select
File→Clone Git Repository(or use⌃⌘Cshortcut):Remote URL:
https://github.com/Provenance-Emu/Provenance.git☑️ Initialize Submodules
Continue to Setup…
Download
🚫 Due to the inclusion of submodules this method no longer works. Do not manually download source as .zip…
Build Source
Open the Provenance Xcode workspace:
Provenance.xcworkspace⚠️ Do not use the .xcodeproj file or you will have build errors!

Go to Preferences via Menubar:
Xcode→Preferencesor use⌘,shortcut.Select Accounts tab.
Click
+Sign in with your personal or developer Apple ID. If you don't have one, click
Create Apple IDor go to appleid.apple.com.
Copy CodeSigning.xcconfig.sample to CodeSigning.xcconfig and modify the file replacing DEVELOPMENT_TEAM with your Team ID and ORG_IDENTIFIER with a bundle identifier that is registered to you.
If you have a paid Apple Developer account, you can find your Team ID at https://developer.apple.com/account/#/membership
If you have a free Apple Developer account, you need to generate a new signing certificate. To do so, follow the steps in [iOS App Signer][3] to create a new Xcode project and generate a provisioning profile. After saving the project, open project.pbxproj inside your newly created .xcproj and look for DEVELOPMENT_TEAM. Copy this value to CodeSigning.xcconfig and your unique identifier to ORG_IDENTIFIER.
Set DEVELOPER_ACCOUNT_PAID = YES if you used a paid Apple Developer account in order to automatically request the increased memory limit entitlement from Apple.
After updating CodeSigning.xcconfig, re-open the project (remember to use Provenance.xcworkspace when opening the project).
If using a free Apple Developer account, Turn OFF these Capabilities for all targets:
App Groups
iCloud
Multipath
Push Notifications
Siri
Select a
-Releaseprofile from the Scheme Menu and connect your device(s) and select in the Destination Menu:

If you are…
Paid Apple Developer: Continue to Enable Advanced Features…
Free Apple Developer: Hit the
▶︎(Run) button.
Provenance will compile and run on your device. Unless testing, hit
◼︎(Stop). Done.
💢 If you get stuck, check out Troubleshooting.
Advanced Features
If you haven't made one previously, add a new App Group ID:
group.[change-this].provenanceto your Apple Developer portal, or continue to next step and see if it allows you to add an App Group ID automatically when using+in App Groups.[Re-]enable Capabilities on your target(s), with the following settings:
iOS:
Provenance:
App Groups🔲
group.provenance-emu.provenance☑️
group.[change-this].provenance
iCloud
Multipath
Push Notifications
Siri
Spotlight:
App Groups
iCloud🔘Specify custom containers:
🔲 `iCloud.com.provenance-emu.provenance`
☑️ `iCloud.com.[change-this].provenance`
tvOS:
ProvenanceTV:
App Groups🔲
group.provenance-emu.provenance☑️
group.[change-this].provenance
iCloud
Push Notifications
TopShelf:
App Groups🔲
group.provenance-emu.provenance☑️
group.[change-this].provenance

Define the value for
PVAppGroupIdinPVAppConstants.swiftwith your App Group ID.
Hit the
▶︎(Run) button to build to your device.Provenance will compile and run on your device. Unless testing, hit
◼︎(Stop). Done
Troubleshooting
If you are having trouble building or sideloading the app, check for your issue here or below in Known Issues.
⚠️ Known Issues
Database model incompatibility error
This means there have been changes to the database model which is no longer compatible with your previous build. In order to update you must clean install (delete app and re-install, not build or install over over existing app). If you would like to migrate your save games and states, you can refer to Restoring Files.
🏍 You can install a duplicate app for testing by using a different bundle ID than your previous/main install.
Last updated