Skip to content
This repository has been archived by the owner on Jan 19, 2020. It is now read-only.

run into python script issue for generate storyboard ID #37

Open
caoer opened this issue Jan 19, 2016 · 3 comments
Open

run into python script issue for generate storyboard ID #37

caoer opened this issue Jan 19, 2016 · 3 comments

Comments

@caoer
Copy link

caoer commented Jan 19, 2016

report this:

error: Script error: string index out of range
Please report this to https://github.com/crushlovely/Amaro/issues and include the details below.

Traceback (most recent call last):
  File "/Users/caoer115/Documents/Projects/DUMMY/Scripts/GenerateStoryboardIDs.py", line 179, in <module>
    idList = IDList.fromFile(fn, prefix, needRestorationIDs)
  File "/Users/caoer115/Documents/Projects/DUMMY/Scripts/GenerateStoryboardIDs.py", line 92, in fromFile
    res._addIds(viewControllerIds, cls.VIEW_CONTROLLER)
  File "/Users/caoer115/Documents/Projects/DUMMY/Scripts/GenerateStoryboardIDs.py", line 78, in _addIds
    self._addId(id_, type_)
  File "/Users/caoer115/Documents/Projects/DUMMY/Scripts/GenerateStoryboardIDs.py", line 73, in _addId
    variableName = lib.variableNameForString(id_, self._defaultPrefixes, suffixes)
  File "/Users/caoer115/Documents/Projects/DUMMY/Scripts/AmaroLib.py", line 297, in variableNameForString
    result = self.smartLowerCase(result)
  File "/Users/caoer115/Documents/Projects/DUMMY/Scripts/AmaroLib.py", line 307, in smartLowerCase
    return s[0].lower() + s[1:]
IndexError: string index out of range
@userow
Copy link

userow commented Apr 4, 2017

Obviously, the .gitignore is included in Scripts directory. So, when downloading a project from GIT - no Scripts directory is present.

@userow
Copy link

userow commented Apr 4, 2017

No, I was mistaken.

@userow
Copy link

userow commented Apr 5, 2017

Just commented this out in a Build Phases - Generate Storyboard Identifier File. Probably, it is connected with xcode 8

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

No branches or pull requests

2 participants