Cannot read property 'Symbol(Symbol.iterator)' of undefined during react-native-schemes-manager all
See original GitHub issueI’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:
- Created 6 years ago
- Comments:9 (4 by maintainers)
Top 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 >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
Found my issue. I recently removed
Debug
field inxcodeSchemes
config as it was causing some build issues but it seems to be required. You may want to try adding aRelease
key with an empty array as the value.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.