Skip to content

Commit 9b81024

Browse files
Merge branch 'master' of https://github.com/SysdataSpA/R.objc
2 parents af5c89a + 9a2eb1a commit 9b81024

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

Readme.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ this avoids including any binary files into your project.
8383
8484
7. Repeat point 3 and 4 for every target in your project
8585
86-
87-
 
88-
8986
At every build, the generated file will update automatically and there's no need
9087
to do anything.
9188
@@ -111,7 +108,7 @@ You can add these options to customize R.objc behaviour:
111108
112109
- `-p` (or `--path`): **MANDATORY** path to the root of the project or from where you want the scan to begin
113110
114-
- `-e` (or `--excluded`): excluded dir path; all dirs within this path will be excluded; you can use `-e` option more than once
111+
- `-e` (or `--excluded`): excluded dir path; all dirs within this path will be excluded; you can use `-e` option more than once, e.g. `-e $(SRCROOT)/Pods` `-e $(SRCROOT)/Carthage`
115112
116113
- `-v` (or `--verbose`): verbose logging
117114
@@ -123,7 +120,7 @@ You can add these options to customize R.objc behaviour:
123120
124121
- `--skip-images`: jump the images step
125122
126-
- `--skip-themes`: jump the themes step
123+
- `--skip-themes`: jump the themes step. Use this to avoid Giotto import error
127124
128125
- `--skip-storyboards`: jump the storyboards step
129126
@@ -209,7 +206,15 @@ Example:
209206
R.theme.constants.COLOR_TEXT_LIGHT // reference to a constant in the theme
210207
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
211208
212-
 
209+
### Troubleshooting
210+
1. You may want to exclude Pods and/or Carthage dirs. To do so pass:
211+
```-e $(SRCROOT)/Pods -e $(SRCROOT)/Carthage```
212+
2. ```R.h:2:9: Module 'Giotto' not found```
213+
Add `pod 'Giotto'` to Podfile or pass `--skip-themes` parameter.
214+
215+
3. ```Duplicate interface definition for class 'R<some-resource-name>'```
216+
Check in the filesystem if there are more than one resource file with the same name:
217+
```find <path-project-dir> -iname *<some-resource-name>*``` Replace <some-resource-name> with actual resource from Xcode output.
213218
214219
Contribute
215220
----------

0 commit comments

Comments
 (0)