question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fix-script fails if no debug configuration given

See original GitHub issue

Steps 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:open
  • Created 6 years ago
  • Reactions:10
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

10reactions
lc3t35commented, Aug 11, 2018

+1, maybe just indicate in README that Debug: [] should be at least added in xcodeSchemes

"xcodeSchemes": {
    "Debug": [],
    "Release": []
  }

script can run without “mappings[sourceBuildConfig] is not iterable” error with this config

0reactions
thekevinbrowncommented, Feb 15, 2019

@kevinEsherick that’d be great.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found