Skip to content

Command /bin/sh failed with exit code 1 #9

@rhcpfan

Description

@rhcpfan

Hello!
I was trying to integrate this kit into my project. These are the steps I have followed:

  • Installed xcodeproj via sudo gem install xcodeproj
  • Added SettingsKit to my podfile
  • Ran pod install
  • Created a settings.bundle (straight from XCode)
  • Added the Run script phase
  • Copied the script code in the run script phase
  • Added the path to the Root.plist file
  • Added the path to the desired output file (Settings.swift)

I am getting this error at build:

/Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.28.2/lib/xcodeproj/plist_helper.rb:112:in match: invalid byte sequence in US-ASCII (ArgumentError) from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.28.2/lib/xcodeproj/plist_helper.rb:112:in match from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.28.2/lib/xcodeproj/plist_helper.rb:112:in block in file_in_conflict? from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.28.2/lib/xcodeproj/plist_helper.rb:112:in each_line from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.28.2/lib/xcodeproj/plist_helper.rb:112:in each from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.28.2/lib/xcodeproj/plist_helper.rb:112:in any? from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.28.2/lib/xcodeproj/plist_helper.rb:112:in file_in_conflict? from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.28.2/lib/xcodeproj/plist_helper.rb:66:in read from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.28.2/lib/xcodeproj/plist_helper.rb:13:in read_plist from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.28.2/lib/xcodeproj/project.rb:193:in initialize_from_file from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.28.2/lib/xcodeproj/project.rb:95:in open from /Users/slowhand/Projects/TestProject/Pods/SettingsKit/cli/integrator.rb:12:in integrate from /Users/slowhand/Projects/TestProject/Pods/SettingsKit/build:48:in <main> SettingsKit: Parsing /Users/slowhand/Projects/TestProject/TestProject/Settings.bundle/Root.plist... SettingsKit: Rendering Settings.swift... Command /bin/sh failed with exit code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions