GYB: Command PhaseScriptExecution failed with a nonzero exit code

I am using GYB to test it and have made the following code:

//  test.swift.gyb
//  gyb_test
//  Created by Ethan Uppal on 1/17/19.
//  Copyright © 2019 Ethan Uppal. All rights reserved.

import Foundation

%{ abilities = ['strength', 'dexterity', 'constitution',
                'intelligence', 'wisdom', 'charisma']
class Character {
    var name: String
    % for ability in abilities:
    var ${type}: Int
    % end

However, when I try to build I get the following error:

I believe it should be var ${ability}: Int

1 Like

The script phase that you have set up to invoke the gyb script appears to have a placeholder for the path (line 5: ./path/to/gyb). Replace that path in your script with the actual path to the gyb executable script.

1 Like

I put ./Documents/gyb and still not working

./Documents/ is a pretty weird path--that expands to (whatever the current working directory is)/Documents/gyb. Where is the gyb script you're trying to invoke?