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.

Cannot read property 'Symbol(Symbol.iterator)' of undefined during react-native-schemes-manager all

See original GitHub issue

I’ve been trying to use the react-native-schemes-manager all with my xcodeSchemes set to

"xcodeSchemes": {
    "Debug": [
      "DebugStaging"
    ]
  }

I’m running node 7.10.0 and using "react-native-schemes-manager": "^1.0.0-beta.8", but keep getting the error

> react-native-schemes-manager all && (cd ios && pod install) && npm run check:node

Hiding schemes from node_modules xcode projects.
ios/live2leave.xcodeproj
 - [fix-script]: ios/live2leave.xcodeproj skipped
 ✔ [fix-libraries]: Debug -> DebugStaging created in node_modules/react-native-branch/ios/RNBranch.xcodeproj
/Users/johngill/Workspace/live2leave-mobile/node_modules/react-native-schemes-manager/src/fix-libraries.js:33
		for (const destinationBuildConfig of mappings[sourceBuildConfig]) {
		                                             ^

TypeError: Cannot read property 'Symbol(Symbol.iterator)' of undefined
    at updateProject (/Users/johngill/Workspace/live2leave-mobile/node_modules/react-native-schemes-manager/src/fix-libraries.js:33:48)
    at utilities.updateProjectsMatchingGlob (/Users/johngill/Workspace/live2leave-mobile/node_modules/react-native-schemes-manager/src/fix-libraries.js:82:10)
    at getFilesMatchingGlob (/Users/johngill/Workspace/live2leave-mobile/node_modules/react-native-schemes-manager/src/utilities.js:70:8)
    at glob (/Users/johngill/Workspace/live2leave-mobile/node_modules/react-native-schemes-manager/src/utilities.js:45:5)
    at f (/Users/johngill/Workspace/live2leave-mobile/node_modules/once/once.js:25:25)
    at Glob.<anonymous> (/Users/johngill/Workspace/live2leave-mobile/node_modules/glob/glob.js:151:7)
    at emitOne (events.js:96:13)
    at Glob.emit (events.js:191:7)
    at Glob._finish (/Users/johngill/Workspace/live2leave-mobile/node_modules/glob/glob.js:199:8)
    at done (/Users/johngill/Workspace/live2leave-mobile/node_modules/glob/glob.js:184:14)

Any thoughts you have would be appreciated

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
kylealwyncommented, Jun 29, 2017

Found my issue. I recently removed Debug field in xcodeSchemes config as it was causing some build issues but it seems to be required. You may want to try adding a Release key with an empty array as the value.

2reactions
thekevinbrowncommented, Jul 5, 2017

Yeah, the Debug scheme is definitely required as we copy its configuration all over the place. We should probably have a better error message for this though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property 'Symbol(Symbol.iterator)' of undefined
The error seems to me like it is suggesting 'this' in the prototype function is undefined, but 'this' is the users array for...
Read more >
cannot read property symbol(symbol.iterator) react - You.com
This error usually occurs when you try to iterate (for example, using a for loop) on an object which is not iterable (for...
Read more >
TypeError: Cannot read property 'Symbol(Symbol.iterator)' of ...
As long as i have ignoreElements() at the end of the epics, it works fine. Maybe I need to create a plunker to...
Read more >
Cannot read property 'Symbol(Symbol.iterator)' of undefined
Cannot read property 'Symbol(Symbol.iterator)' of undefined. This code works in Codepen but not here. app.js.
Read more >
[FTP Upload] Cannot read property 'Symbol(Symbol.iterator ...
[FTP Upload] Cannot read property 'Symbol(Symbol.iterator)' of undefined ... This issue is about FTP upload task in azure devops. ... All Posts (9)...
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