fix-script fails if no debug configuration given
See original GitHub issueSteps to reproduce the behavior
Install plugin, but do not enter any Debug entries in package.json
"xcodeSchemes": {
"Release": ["ReleaseAlpha", "ReleaseBeta"]
}
Expected behavior
fix-scripts to run successfully. This can be fixed by passing an empty array into debug.
"xcodeSchemes": {
"Debug": [],
"Release": ["ReleaseAlpha", "ReleaseBeta"]
}
Actual behavior
/Users/chuck/Projects/aramis/node_modules/react-native-schemes-manager/src/fix-libraries.js:33
for (const destinationBuildConfig of mappings[sourceBuildConfig]) {
^
TypeError: mappings[sourceBuildConfig] is not iterable
at updateProject (/Users/chuck/Projects/aramis/node_modules/react-native-schemes-manager/src/fix-libraries.js:33:48)
at utilities.updateProjectsMatchingGlob (/Users/chuck/Projects/aramis/node_modules/react-native-schemes-manager/src/fix-libraries.js:86:10)
at getFilesMatchingGlob (/Users/chuck/Projects/aramis/node_modules/react-native-schemes-manager/src/utilities.js:70:8)
at glob (/Users/chuck/Projects/aramis/node_modules/react-native-schemes-manager/src/utilities.js:45:5)
at f (/Users/chuck/Projects/aramis/node_modules/once/once.js:25:25)
at Glob.<anonymous> (/Users/chuck/Projects/aramis/node_modules/glob/glob.js:151:7)
at Glob.emit (events.js:160:13)
at Glob._finish (/Users/chuck/Projects/aramis/node_modules/glob/glob.js:197:8)
at done (/Users/chuck/Projects/aramis/node_modules/glob/glob.js:182:14)
at Glob._processGlobStar2 (/Users/chuck/Projects/aramis/node_modules/glob/glob.js:637:12)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:10
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Troubleshooting | Apps Script - Google Developers
There is an error in your script that doesn't have a corresponding error message. Try debugging your script and see if you can...
Read more >Fix program errors and improve code - Visual Studio (Windows)
The default build configuration is Debug. The easiest way to build your project is to press F7, but you can also start the...
Read more >Troubleshooting common PHP debugging issues | PhpStorm ...
Establishing a Zero-Configuration debugging session may fail with no breakpoints hit and therefore the script not suspended. This may happen if ...
Read more >Debugging Your Scripts - Indigo Rose Software
If you put that script into an event right now and try it, you will see that nothing appears to happen. This is...
Read more >Debugging in Google Apps Script - Jeff Everhart
In this example, if you open up the 'Failure Notification Settings' menu, we get several options. While creating the script and during its ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
+1, maybe just indicate in README that Debug: [] should be at least added in xcodeSchemes
script can run without “mappings[sourceBuildConfig] is not iterable” error with this config
@kevinEsherick that’d be great.