Skip to content

Building from Source

Maurice Parker edited this page Oct 1, 2021 · 6 revisions

You can build and test Zavala without a paid developer account.

git clone https://github.com/vincode-io/Zavala.git

You can locally override the Xcode settings for code signing by creating a DeveloperSettings.xcconfig file locally at the appropriate path. This allows for a pristine project with code signing set up with the appropriate developer ID and certificates, and for dev to be able to have local settings without needing to check in anything into source control.

Make a directory SharedXcodeSettings next to where you have this repository.

The directory structure is:

aDirectory/
  SharedXcodeSettings/
    DeveloperSettings.xcconfig
  Zavala
    Zavala.xcodeproj

Example:

If your Zavala Xcode project file is at: /Users/Shared/git/Zavala/Zavala.xcodeproj

Create your DeveloperSettings.xcconfig file at /Users/Shared/git/SharedXcodeSettings/DeveloperSettings.xcconfig

Then create a plain text file in it: SharedXcodeSettings/DeveloperSettings.xcconfig and give it the contents:

CODE_SIGN_IDENTITY[sdk=macosx*] = Mac Developer
CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Developer
CODE_SIGN_IDENTITY[sdk=iphonesimulator*] = iPhone Developer
DEVELOPMENT_TEAM = <Your Team ID>
CODE_SIGN_STYLE = Automatic
ORGANIZATION_IDENTIFIER = <Your Domain Name Reversed>
DEVELOPER_ENTITLEMENTS = -dev
PROVISIONING_PROFILE_SPECIFIER =

Set DEVELOPMENT_TEAM to your Apple supplied development team. You can use Keychain Access to find your development team ID. Set ORGANIZATION_IDENTIFIER to a reversed domain name that you control or have made up. Note that PROVISIONING_PROFILE_SPECIFIER should not have a value associated with it.

You can now open the Zavala.xccodeproj in Xcode.

Now you should be able to build without code signing errors and without modifying the Zavala Xcode project. This is a special build of Zavala with some functionality disabled. For example iCloud syncing is disabled because you need a paid developer account to build for it.

If you have any problems, we will help you out in Discussions.

Originally written for the NetNewsWire project.

Clone this wiki locally