Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rhcpfan opened this issue Apr 16, 2016 · 1 comment
Open

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

rhcpfan opened this issue Apr 16, 2016 · 1 comment

Comments

@rhcpfan
Copy link

rhcpfan commented Apr 16, 2016

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

@rhcpfan
Copy link
Author

rhcpfan commented Apr 16, 2016

I tested now and if I run the build script manually (with -p, -s, -o parameters) it generates the Settings.swift file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant